Maxime Coste
5d0ea2936d
Ignore errors in write_stdout
...
Fixes #2418
2018-09-23 17:16:09 +10:00
Maxime Coste
fa993768da
Merge remote-tracking branch 'eraserhd/script-docs'
2018-09-23 17:06:25 +10:00
Maxime Coste
49645f8efc
Merge remote-tracking branch 'laelath/spell-clear'
2018-09-23 17:05:51 +10:00
Maxime Coste
5df264376e
Merge remote-tracking branch 'eraserhd/fix-clojure-numbers'
2018-09-23 17:01:12 +10:00
Jason Felice
538f2a74c7
Fix clojure numbers
...
- Fix issue where numbers which were part of symbols were highlighted.
- Fix issue where hexidecimals weren't highlighted past the 'x'
2018-09-22 16:16:36 -04:00
Maxime Coste
9c1c763a37
Reject hook names that are not alphanumeric _ or - or start with -
...
Fixes #2414
2018-09-22 22:11:21 +10:00
Maxime Coste
9db9fe612d
Merge remote-tracking branch 'Screwtapello/cleanup-hook-docs'
2018-09-22 22:05:47 +10:00
Maxime Coste
3f4c86b12f
Merge remote-tracking branch 'Delapouite/rename-completions'
2018-09-22 22:02:58 +10:00
Tim Allen
3819304589
hooks.asciidoc: Make sure all parts of the hook command are described.
...
Also, some minor grammar fixes.
2018-09-22 18:43:56 +10:00
Justin Frank
5700587926
added spell-clear convenience command
2018-09-21 12:30:13 -07:00
Jason Felice
6c4593b18a
Document that -f
starts with whole file selected
2018-09-21 10:01:20 -04:00
Delapouite
d8747bc1e0
Add completion for rename-buffer, rename-client and rename-session
2018-09-20 19:01:47 +02:00
Maxime Coste
1e2a389c6f
Merge remote-tracking branch 'Screwtapello/describe-text-expansion'
2018-09-20 21:14:39 +10:00
Maxime Coste
fd107b8b5e
Merge remote-tracking branch 'Delapouite/remove-hooks'
2018-09-20 21:14:22 +10:00
Maxime Coste
8618b286c5
Merge remote-tracking branch 'laelath/highlighter-fixes'
2018-09-20 21:14:01 +10:00
Tim Allen
00bdb041b0
Describe the %val{text} expansion.
2018-09-20 12:46:52 +10:00
Delapouite
425aa56eaf
Use remove-hooks regex in rc
2018-09-19 19:59:57 +02:00
Maxime Coste
7956e893be
Merge remote-tracking branch 'laelath/git-hide-diff'
2018-09-18 22:30:50 +10:00
Maxime Coste
0fca6ae3dd
Merge remote-tracking branch 'Screwtapello/code-regions-for-markdown'
2018-09-18 22:30:07 +10:00
Tim Allen
9e142c6643
markdown.kak: Use lookahead/lookbehind assertions for formatting spans.
...
Previously, one of the syntaxes for italic was (greatly summarized) something
like this:
[^_]_[^_]+_[^_]
That is to say, the regex matched the blanks on both sides of the italic span,
as well as the actual span content. That means that if you had consecutive
italic words:
_some_ _italic_ _words_
...only the odd-numbered words would be highlighted: the space after "_some_"
was counted as part of that span, so it wasn't available as part of "_italic_"
and therefore "_italic_" wouldn't be highlighted. Likewise, if the first word
in a buffer was italic, it wouldn't be highlighted because the first underscore
was not preceded by a non-underscore character!
Now we use lookahead/lookbehind assertions, which don't count as part of the
matched span, so consecutive spans don't interfere with one another.
Fixes #2111 .
2018-09-18 19:21:28 +10:00
Tim Allen
535abe2ba7
markdown.kak: Clean up code-block and code-span formatting.
...
Previously, a code block was anything between triple-backtics, including inline
blocks:
some text ```
not a codeblock, but highlighted as one
``` other text
and even if the closing backticks had the wrong indent:
```
this is a code block containing a triple backtick
```
this is still a code block, but Kakoune thinks otherwise
```
Now we use the -match-capture flag to ensure the start and end fences have
exactly the same indent.
Previously, the generic code-block region was defined first, which meant that
it took priority over all the language-specific highlighters. Now we define
the generic code-block highlighting *after* the others, which fixes #2304 .
Previously, code-spans were defined as ordinary inline markup, but in Markdown
ordinary formatting doesn't work inside code-spans. Therefore, they are now
regions unto themselves, defined according to section 6.3 of the CommonMark
spec <https://spec.commonmark.org/0.28/#code-spans >, which addresses a comment
on #2111 .
2018-09-18 19:18:32 +10:00
Jason Felice
fbd733f49c
Homebrew Brewfile is ruby
2018-09-17 10:29:05 -04:00
Maxime Coste
af8dd681d5
Merge remote-tracking branch 'laelath/kakrc-hook-fix'
2018-09-17 20:11:50 +10:00
Justin Frank
f6d5b23122
fixed hooks running when entered character was not alone on the line
2018-09-16 20:53:23 -07:00
Justin Frank
391e58625f
fixed mistakenly indenting matching characters
2018-09-16 17:05:32 -07:00
Justin Frank
2c753889ca
changed order of git hide-diff in menus
2018-09-16 13:52:17 -07:00
Jan-Jaap Korpershoek
35dca5866c
Update documentation of region highlighter to match change in 2e0e206951
2018-09-16 19:38:18 +02:00
Justin Frank
f422b8c725
added git hide-diff
convenience command
2018-09-16 00:30:46 -07:00
Justin Frank
4bb87ef430
macros always end at the start of a line comment
2018-09-15 10:52:18 -07:00
Justin Frank
e32d5ec88e
tweaked some of the c-family highlighting of defines
2018-09-14 19:03:49 -07:00
Maxime Coste
ba9d97ffa7
Small formatting fix
2018-09-13 20:45:43 +10:00
Maxime Coste
cd44e3afd7
Merge branch 'patch-1' of https://github.com/Epictek/kakoune
2018-09-13 20:45:18 +10:00
Maxime Coste
c8fd1e1cf6
Merge remote-tracking branch 'laelath/c-indent-edits'
2018-09-13 20:42:04 +10:00
Justin Frank
de839d14c4
added test for deindentation
2018-09-12 12:25:36 -07:00
Kieran Coldron
fc99a36206
Update readme with void and termux install
2018-09-12 15:58:41 +01:00
Maxime Coste
0c3d9ccd20
Change remove-hooks to take a regular expression
...
All hooks whose group match this regex will be removed.
Fixes #2380 .
2018-09-12 21:26:21 +10:00
Maxime Coste
b8d312cfe0
Merge remote-tracking branch 'laelath/kakrc-indent-edit'
2018-09-12 21:01:33 +10:00
Maxime Coste
87a71ec1bd
Merge remote-tracking branch 'Delapouite/doc-missing-chars'
2018-09-12 21:00:02 +10:00
Maxime Coste
8536adc5ac
Merge remote-tracking branch 'eraserhd/2367-surround-with-tight-nesting'
2018-09-12 20:57:59 +10:00
Maxime Coste
4c22cf7d3f
Merge remote-tracking branch 'Screwtapello/no-selecting-in-wincreate'
2018-09-12 20:53:38 +10:00
Maxime Coste
d3be78cca2
Only commit undo groups when buffer was modified
...
This fixes an interaction with kak-lsp that would trigger undo group
commit when setting a buffer option value.
2018-09-12 20:02:57 +10:00
Justin Frank
22bda7a7d2
removed unnecessary gi in matching deindent hook
2018-09-12 00:04:05 -07:00
Justin Frank
852d22a543
changed opening matching regexes to be simpler
2018-09-12 00:04:05 -07:00
Justin Frank
2f0b0d468c
added auto deindent to kak files
2018-09-12 00:04:05 -07:00
Justin Frank
fa9d13700a
Added deindenting of single statements
2018-09-11 21:21:25 -07:00
Tim Allen
f7d8f7a9e1
docs: Describe which Win* hooks use a draft context.
...
Also, rewrote the description of WinDisplay since it wasn't obvious to me what
"bound" meant in this context.
2018-09-11 20:56:12 +10:00
Maxime Coste
beb5d00992
Merge remote-tracking branch 'lenormf/fix-hook-once'
2018-09-11 19:52:54 +10:00
Maxime Coste
d65c99a448
Further fixes in go-tools.kak to improve its robustness
2018-09-10 21:22:32 +10:00
Maxime Coste
73b6f0994f
Merge remote-tracking branch 'swdunlop/master'
2018-09-10 21:18:07 +10:00
Maxime Coste
d57203f41f
Merge remote-tracking branch 'laelath/clang-fixes'
2018-09-10 19:41:08 +10:00