Maxime Coste
b464822f1b
Merge branch 'fsharp-filetype-bugfix' of http://github.com/pema99/kakoune
2019-11-11 21:57:01 +11:00
Maxime Coste
d2d0e629fa
Merge remote-tracking branch 'lenormf/spell-lang'
2019-11-11 21:51:57 +11:00
pema99
43b8f1338b
Fix literal '"' in fsharp highlighting.
2019-11-11 06:25:37 +01:00
lePerdu
a805844e20
Fix type, variable, and function patterns
...
The old ones are functionally correct (I think), but are un-necessarily
complex and not don't semantically fit what they are trying to match.
2019-11-10 19:35:11 -05:00
lePerdu
a0d6d8a03f
Remove where
keyword and add port
keyword
2019-11-10 19:24:12 -05:00
lePerdu
44bc51a90a
Put -
first in character class patterns
...
If `-` is not first or last in a character classes, it matches a range based on
the character code. This applies to special characters as well as to
alphanumeric characters.
2019-11-10 18:29:07 -05:00
lePerdu
7c455db52e
Properly highlight Elm operators
...
- Highlight `=` and `|` as keywords (like `->` and `:`)
- Highlight custom operators (I guess they aren't really custom as of Elm 0.19
but there are still a bunch "built in").
2019-11-10 18:12:45 -05:00
lePerdu
166049f128
Highlight multiline strings in Elm
2019-11-10 18:12:17 -05:00
lePerdu
3232ba8a4c
Use elm-format for formatcmd in Elm
2019-11-10 18:11:36 -05:00
lePerdu
6aab2f54dd
Copy doc comment (///) prefix to new lines
2019-11-09 09:41:11 -05:00
lePerdu
2167374496
Add Gluon highlighting/indent
2019-11-09 09:22:19 -05:00
Maxime Coste
11975b7f31
Merge remote-tracking branch 'AJChapman/dhall'
2019-11-09 09:09:14 +11:00
Maxime Coste
88944c7b6a
Merge remote-tracking branch 'nhey/fsharp-filetype'
2019-11-09 09:06:44 +11:00
Frank LENORMAND
a7bf625236
rc modeline: Support spelling language options
2019-11-08 17:56:36 +01:00
Nikolaj Hey Hinnerskov
1f19b44b88
Add syntax highlighting for F#
...
Co-authored-by: pema99 <pemamalling@gmail.com>
2019-11-08 13:01:36 +01:00
Frank LENORMAND
be8d0e6726
rc spell: Allow storing a language in an option
...
This commit adds a `spell_lang` option that will be used by the
`spell` command when no language is passed to it directly.
Setting a buffer/window local option allows using `:spell` seamlessly
across several buffers, written in different languages.
2019-11-08 12:44:55 +01:00
Maxime Coste
d5f2744e59
Merge remote-tracking branch 'JJK96/xml'
2019-11-07 20:16:58 +11:00
Maxime Coste
f13239764b
Merge branch 'patch/fix-python-operator-highlighter' of http://github.com/cipharius/kakoune
2019-11-07 20:08:59 +11:00
Maxime Coste
50a4964910
Merge remote-tracking branch 'Delapouite/patch-3'
2019-11-07 20:06:02 +11:00
Maxime Coste
44047a69c5
Fix c-family include highlighting
2019-11-05 17:35:44 +11:00
Jan-Jaap Korpershoek
fcc8ed5df3
[html] Fix indentation when entering a newline while in the middle of a tag
...
Example:
```
<tag>|</tag>
```
Then press enter
Old behaviour:
```
<tag>
</tag>
```
New behaviour:
```
<tag>
</tag>
```
I also added a test for it
2019-11-03 12:25:02 +01:00
Alex Chapman
6a3421d285
Add support for quoted labels, empty record values and their type
2019-10-30 10:22:31 +11:00
Alex Chapman
9381277274
Add Dhall multi-line string literals
2019-10-30 10:22:23 +11:00
Alex Chapman
80a4e66622
Add syntax support for the Dhall configuration language.
2019-10-30 10:22:12 +11:00
cipharius
988b92d948
Fix python operator highlighter
2019-10-27 15:49:04 +02:00
Bruno Heridet
3726fd000c
filetype: add support for .make extension
...
While building fish-shell which uses `cmake`, a lot of regular Makefiles are generated with this extension.
2019-10-25 14:14:30 +02:00
Maxime Coste
5b34a6ed81
Merge remote-tracking branch 'eraserhd/tmux-version-check'
2019-10-23 22:36:11 +11:00
Maxime Coste
74275b82e1
Merge remote-tracking branch 'lenormf/python-highlight-module'
2019-10-23 22:32:10 +11:00
Maxime Coste
a49ae162f4
Add a -verbatim switch to evaluate-commands for perfect forwarding
...
-verbatim will disable argument parsing in evaluate-commands, making
it possible to forward a single command to a different context without
triggering a reparsing of the arguments.
Fixes -try-client support in grep.kak
Closes #3153
2019-10-23 22:30:23 +11:00
Maxime Coste
362021c1d3
Merge remote-tracking branch 'lenormf/key-semicolon'
2019-10-23 22:10:06 +11:00
Jason Felice
6f443537e4
Accept tmux pre-release and rc versions
2019-10-22 10:25:41 -04:00
Frank LENORMAND
e3ba7f7d56
rc swift: Remove highlighting of non-standard comments
...
Highlighting arbitrary words in Swift comments should be done from the
user configuration, plus hardcoding the `red` color doesn't play well
with all colorschemes.
2019-10-22 11:12:10 +02:00
Frank LENORMAND
21614cb06e
src: Create a <semicolon> named key
...
This commit allows using the <semicolon> expansion in commands, instead
of `\;`.
It makes commands look more elegant, and prevents new-comers from
falling into the trap of using <a-;> without escaping the semicolon.
2019-10-22 11:02:06 +02:00
Frank LENORMAND
2ed70ad5cc
rc man: Expose the actual buffer-space's width
...
Fixes #675
2019-10-20 21:38:58 +02:00
Frank LENORMAND
38746b169e
rc python: Highlight modules in import statements
2019-10-20 20:21:08 +02:00
Maxime Coste
a5d662f7fe
Fix d.kak invonluntary modification
2019-10-17 22:39:07 +11:00
Maxime Coste
e4fb70ebec
Replace ModeChange hooks by ModePush and ModePop
...
Remove deprecated InsertBegin, InsertEnd, NormalBegin, NormalEnd
hooks.
Closes #2545
2019-10-16 20:45:53 +11:00
Maxime Coste
a1a63901c1
Merge branch 'patch-1' of https://github.com/chaoky/kakoune
2019-10-15 20:46:40 +11:00
Maxime Coste
e4f815e350
Merge remote-tracking branch 'occivink/alt-fail'
2019-10-09 19:18:45 +11:00
Maxime Coste
5430f6ccad
Simplify argument pass through in git wrapper script
...
Fixes #2869
2019-10-09 17:40:57 +11:00
Olivier Perret
fac05f3ea0
[rc] Use 'fail' when the alternative file cannot be found
...
This makes it possible to implement a fallback strategy using 'try .. catch',
for cases where the alternative file is not stored in a subdirectory
2019-10-08 18:06:54 +02:00
Leonardo Dias ~Lordie
220d5b6e72
fixed regex for matching words
...
the regex for matching words was matching some characters that elm does not parse
added <_> and <->> as keywords
2019-10-02 03:46:23 -03:00
Leonardo Dias ~Lordie
32648d6cf4
Better elm syntax lighting
...
this will only highlight elm 0.19 (latest) properly
very close to how https://ellie-app.com/ highlights
- anything that starts with an upper case letter is a type
- anything that starts with a lower case letter is a function
- function declaration is just a function at the start of a line
note: the default color scheme looks too colorful
2019-10-01 23:44:54 -03:00
Maxime Coste
d793ca76b6
Merge branch 'haskell' of http://github.com/evanrelf/kakoune
2019-10-01 20:07:29 +10:00
Maxime Coste
f2e5582f34
Merge remote-tracking branch 'eraserhd/pr/master/extra_word_chars-on-window'
2019-10-01 20:06:03 +10:00
Maxime Coste
9421e28eb5
Merge remote-tracking branch 'occivink/grep-space'
2019-10-01 18:35:26 +10:00
Olivier Perret
b376e3b662
grep: fix for filenames containg spaces
2019-09-30 23:54:31 +02:00
Evan Relf
c544e01b7d
Add additional syntax highlighting for Haskell
...
- Function names in type signatures are now highlighted
- Quasiquotes are now highlighted
2019-09-28 15:38:43 -07:00
Jason Felice
f88cf7ffb4
rc, doc: set extra_word_chars on buffer, not window
...
For clojure.kak and haskell.kak, set extra_word_chars on the buffer
and not the window, so that the buffer's word db is updated correctly
for word completion.
Document this.
Also, minor refactor of clojure.kak.
Closes #3108
2019-09-26 09:55:02 -04:00
Maxime Coste
370693afd8
Do not autoscroll on grep results
...
Closes #3100
2019-09-26 20:30:38 +10:00
Maxime Coste
891a9f5fe6
Merge remote-tracking branch 'lenormf/fix-git-tools'
2019-09-22 09:29:19 +10:00
Maxime Coste
271b1d4f2f
Add a clang_directory option to set PWD when completing
...
This matches the directory entry in compilation databases
format.
2019-09-17 21:50:21 +10:00
Maxime Coste
8cca77c949
Accept docstrings with last line not fully indented
...
When trimming indent, the last line, if only containing
whitespaces does not need to match the indent, so that
this indentation style works:
-docstring %{
indented string
}
2019-09-17 21:48:00 +10:00
Maxime Coste
6d085f995e
Merge remote-tracking branch 'andreyorst/universal-git-path'
2019-09-16 07:06:50 +10:00
Andrey Orst
cab4908f1d
cd to file's dir
2019-09-15 22:29:33 +03:00
Maxime Coste
33a00c7031
Fix clang completion support with modern clang
2019-09-15 11:48:25 +10:00
Maxime Coste
90f83780a5
Rename formatter.kak to format.kak and alias format to format-buffer
2019-09-15 10:52:06 +10:00
Maxime Coste
6ee71191af
Merge remote-tracking branch 'codesoap/background_blocks'
2019-09-15 09:29:26 +10:00
Maxime Coste
7aec8b2231
Merge remote-tracking branch 'stevenyvr987/add-hyperlink-support-to-man-plugin'
2019-09-15 09:05:12 +10:00
Maxime Coste
54ba6a44c8
Merge remote-tracking branch 'occivink/refactor-format'
2019-09-15 09:01:19 +10:00
Maxime Coste
fb60eea66d
Merge remote-tracking branch 'lenormf/fix-latex'
2019-09-15 09:00:25 +10:00
Olivier Perret
82d99aa12b
Refactor formatter.kak
...
The 'format' command is split into two, 'format-selections' and
'format-buffer' which relies on the former.
2019-09-12 18:53:06 +02:00
Maxime Coste
64511baceb
Merge remote-tracking branch 'mogenson/editorconfig'
2019-09-08 22:57:14 +10:00
Frank LENORMAND
1aea592b76
rc latex: Highlight DTX and STY files
2019-09-05 10:19:39 +02:00
Frank LENORMAND
b3287a74cb
rc latex: Highlight .cls files as LaTeX
...
When .cls files are opened, the local `filetype` option is automatically
set to `tex`, which isn't supported.
2019-08-24 20:36:34 +02:00
Michael Mogenson
37ded5e400
Check if buffile is path before loading editorconfig settings
...
Check if buffile is a full path by checking for the beginning
'/' character in editorconfig-load command. This avoids a parsing
error from feeding a *scratch*/*debug*/*grep*/etc. buffer name to the
editorcofig command. Don't clear editorconfig hooks until after checking
for a valid bufffile path. This way, opening the *debug* buffer will
not clear the hooks from a previously parsed .editorconfig file. If
trim_trailing_whitespace is true, print the hook directly from awk. This
removes the need to save a editorcofig_trim_trailing_whitespace option.
Note: Setting the max_line_length requires a window to be created.
Therefore, a global hook to load .editorconfig settings should be:
hook global WinCreate .* %{editorconfig-load}
2019-08-20 14:55:17 -04:00
Maxime Coste
292efe1b37
Merge remote-tracking branch 'andreyorst/patch-2'
2019-08-19 22:30:16 +10:00
Maxime Coste
7d8fb135a9
Merge remote-tracking branch 'codesoap/makefile'
2019-08-19 22:25:18 +10:00
Maxime Coste
5e2f123baf
Merge branch 'master' of https://github.com/aecepoglu/kakoune
2019-08-19 22:24:14 +10:00
Maxime Coste
349586b464
Merge remote-tracking branch 'andreyorst/fix-rust-meta-attributes'
2019-08-19 22:20:13 +10:00
Maxime Coste
0f5389700e
Merge remote-tracking branch 'nhey/master'
2019-08-19 22:19:29 +10:00
Andrey Orst
427153b8e9
remove wrong '+' from awk regex
2019-08-12 22:18:26 +03:00
nhey
4722db7103
Highlight parenthesized paths. Also change '()' to '§' for module quoting.
2019-08-12 18:07:32 +02:00
tawsi-melek
3f405b00f1
Revert back to previous char literal highlighter as it's more precise
2019-08-12 17:17:20 +02:00
tawsi-melek
228a8dd9ae
Fix some more edge cases
...
* Adapt the char literal highlighter from c-family.kak
* Fix line comment adjacent to char literal not being highlighted
* Fix single quote terminating a double quote string
2019-08-12 16:40:35 +02:00
tawsi-melek
1c58e5aa90
Improve single line comments
...
* '#' now gets highlighted as a char literal
* Remove highlighting for comment tags and escape sequences
2019-08-08 22:47:22 +02:00
tawsi-melek
93e64b4541
Some more improvements
...
* Fix keywords in comments being highlighted
* Highlight Nim's escape sequences for strings
* Highlight common comment tags
* Add on/off to the highlighted boolean values
* Remove redundant regex highlighter for comments
* Fix autoindent indenting lines more than it should
2019-08-08 21:17:55 +02:00
Andrey Orst
396236f728
support raw strings withing the meta attributes
2019-08-07 11:37:02 +03:00
Andrey Orst
3156ecacc3
fix #3043
2019-08-06 17:02:51 +03:00
tawsi-melek
5ca0b9baa3
Enum too
2019-08-06 00:00:38 +02:00
tawsi-melek
ff7397b593
nim.kak: Add auto-indent after tuple and object
...
Before:
```nim
type
MyType = tuple
myint: int # This line needs to be indented manually
```
After:
```nim
type
MyType = tuple
myint: int # Lines after 'tuple' are now indented automatically
```
2019-08-05 22:02:56 +02:00
Maxime Coste
6eec6e656d
Merge remote-tracking branch 'lenormf/fix-python-decorators'
2019-08-04 20:21:20 +10:00
Jason Felice
ba672623bc
Insert Clojure ns directive for new files
2019-07-31 09:38:09 -04:00
codesoap
e502097d01
makefile.kak: require whitespace after target
2019-07-30 14:43:11 +02:00
codesoap
6e86766966
makefile.kak: remove reqex mismatch between highlight and indent
2019-07-30 10:00:04 +02:00
codesoap
4c3795faa2
makefile.kak: Refine regex for target
...
Multiple targets and the target separators ':', '::' and '!' are now
supported.
2019-07-30 09:55:25 +02:00
Frank LENORMAND
ff52bd7027
rc python: Highlight indented decorators with .
...
Make sure decorators are on their own line, and don't stop highlighting at
the first dot when they are imported, e.g.
```
import enum
@enum.unique
class A(enum.Enum):
…
```
Ideally highlighting shouldn't stop at the first parenthesis either
(e.g. `@foo(['1'])`), but the current code somewhat highlights the contents
of the parens already, which is good enough in most cases.
2019-07-26 13:01:58 +03:00
Maxime Coste
550feb1706
Merge remote-tracking branch 'andreyorst/rust-highlighting'
2019-07-25 17:48:04 +10:00
Maxime Coste
6e1e79ed19
Merge branch 'master' of http://github.com/cglogic/kakoune
2019-07-25 17:26:41 +10:00
Oleh Hushchenkov
8fc705d4cc
Fix c-family indent on opening curly brace after if-else
2019-07-25 09:58:33 +03:00
Maxime Coste
65327da4cf
Merge remote-tracking branch 'laelath/markdown-lazy-load'
2019-07-24 17:38:00 +10:00
Justin Frank
a15ff0ffc3
Move module aliases to after main module definition
2019-07-22 23:48:30 -07:00
Justin Frank
8941002ce0
Give hooks a group so they're cleaned up
2019-07-22 19:03:04 -07:00
Justin Frank
89b50daa66
Use module alias pattern for markdown dynamic loading
2019-07-22 19:01:40 -07:00
aecepoglu
8691c1557a
ocaml.kak fix '"' and char literals
2019-07-22 23:49:15 +03:00
Andrey Orst
677d1efb23
move regex highlighters to the top, add method, field and function hl
2019-07-22 22:32:26 +03:00
codesoap
090c0b4db1
Allow / in target when highlighting in makefile.kak
2019-07-22 17:32:25 +02:00
Andrey Orst
3c0a350079
require module the old way
2019-07-22 18:22:44 +03:00
Andrey Orst
a81eb158be
extend Rust highlighting
2019-07-22 15:56:29 +03:00
Maxime Coste
837416ea38
Merge remote-tracking branch 'MarSoft/nix-syntax'
2019-07-21 12:36:56 +10:00
Maxime Coste
d05ef24471
Merge remote-tracking branch 'gaeulbyul/css-comment'
2019-07-21 12:34:28 +10:00
Maxime Coste
268af7f61c
Merge remote-tracking branch 'lenormf/patch-1'
2019-07-21 12:14:57 +10:00
Maxime Coste
27fce78eac
Merge remote-tracking branch 'codesoap/ledger'
2019-07-21 12:08:42 +10:00
Gaeulbyul
bd257ceb7d
css.kak: Highlight comment inside declaration
2019-07-18 01:33:57 +09:00
codesoap
0bd57817b3
Configure comment_line for the ledger filetype
2019-07-12 14:02:06 +02:00
David Ross
27ed20582f
Add complete extra_word_chars for lisp
...
See https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node27.html .
2019-07-06 12:25:46 -07:00
David Ross
e65740873d
Treat '-' as an word character in lisp
...
'-' is part of identifiers in most or all lisps.
Strategy for implementing this copied from https://github.com/mawww/kakoune/blob/master/rc/filetype/scss.kak#L20 .
2019-07-05 06:44:45 -07:00
codesoap
2d15c13c1e
ledger.kak: Automatically indent postings in transactions
2019-07-02 09:49:52 +02:00
codesoap
710ebabcb8
Add ledger filetype
2019-07-01 20:49:55 +02:00
Frank LENORMAND
a735c06714
rc git: Fix the indentation of misaligned commands
2019-07-01 12:56:51 +00:00
Maxime Coste
5c219cc743
Merge remote-tracking branch 'sjjf/sh_indent_v2'
2019-07-01 22:00:31 +10:00
Maxime Coste
2e3e0c47bb
Merge remote-tracking branch 'greenfork/fix-ruby-end-autoinsertion'
2019-06-30 10:30:40 +10:00
Simon Fowler
b2459f5ecb
Remove the sh_auto_indent option.
...
We now auto indent by default, with the option to disable it handled by
the `diabled_hooks` mechanism.
2019-06-29 12:34:14 +10:00
codesoap
ca2741fe20
Rename ModuleLoad hook to ModuleLoaded
...
This clarifies, that the hook is run *after* the module is loaded.
2019-06-25 19:16:47 +02:00
Frank LENORMAND
e5b9761818
rc filetype d: Highlight quoted backticks properly
...
Fixes #2970
2019-06-24 10:18:43 +03:00
Frank LENORMAND
b5321f3d1b
rc filetype d: Highlight line tokens properly
2019-06-24 10:12:29 +03:00
Maxime Coste
2422c2dcd1
Merge branch 'repl' of https://github.com/codesoap/kakoune
2019-06-23 12:05:15 +10:00
Maxime Coste
4b7b5d077c
Make quoting opt-in by using $kak_quoted_...
2019-06-23 12:04:21 +10:00
Dmitry Matveyev
68cdfb9b9d
Add more ending blocks for ruby "end" keyword autoinsertion
2019-06-21 13:55:14 +03:00
Simon Fowler
04005b06b0
Add support for basic auto-indenting of sh code.
...
This attempts to support a simple formatting and intentation style for
plain sh syntax (and other sh-compatible code which doesn't stray too
far from portable sh).
The complexity of sh syntax means that we have to be opinionated -
attempting to be more flexible would require extensive context
awareness, and would require something more akin to a proper
autoformatting tool or a language server.
The formatting style used here makes use of vertical whitespace as the
primary delimiter, so that code ends up looking like this:
if [ $foo = "bar" ]; then
thing1
else
thing2
fi
for i in foo bar baz; do
thing1
thing2
done
case "$foo" in
bar) thing1;;
baz)
thing1
thing2
;;
esac
Since the formatting style used is very opinionated the 'sh_auto_indent'
option can be used to disable auto-indentation, with the default set to
'no'.
2019-06-20 13:19:15 +10:00
Maxime Coste
59e43c8f0c
Merge remote-tracking branch 'lePerdu/latex-indent'
2019-06-19 23:03:20 +10:00
Maxime Coste
64b6bfa8ba
Merge remote-tracking branch 'dgmulf/awk'
2019-06-19 23:02:21 +10:00
Maxime Coste
27902fa05f
Merge remote-tracking branch 'greenfork/add-dart-highlighting-for-private-classes'
2019-06-19 23:01:56 +10:00
Maxime Coste
791dafbc97
Merge branch 'master' of http://github.com/codesoap/kakoune
2019-06-19 23:01:11 +10:00
codesoap
df03a8850c
Comment on the escape sequence for setting the terminal's title
2019-06-18 11:52:33 +02:00
codesoap
9d8fb8bc31
Print escape sequence to set the window title
...
Using xdotool was probably a little less portable, because it relied on
the newly created window to be activated by the window manager.
2019-06-18 11:41:59 +02:00
codesoap
feebad14b0
Set the REPL window title using xdotool
...
As mentioned in issue #2973 , the -t argument for setting the terminal
title was not very portable.
2019-06-18 09:58:32 +02:00
Daniel Mulford
952f919214
Basic language support for Awk
2019-06-17 22:12:15 -07:00
Dmitry Matveyev
aaa078f7c3
Add Dart highliting for private classes
2019-06-17 22:11:19 +03:00
Dmitry Matveyev
bd22b28d39
Fix Dart highlighting of annotations
2019-06-16 11:53:19 +03:00
Maxime Coste
9d52822702
Merge remote-tracking branch 'greenfork/ruby-do-keyword-support'
2019-06-15 10:55:44 +10:00
Maxime Coste
d801c18a54
Merge remote-tracking branch 'alexherbo2/crystal'
2019-06-15 10:52:59 +10:00
Maxime Coste
f4f361e212
Merge remote-tracking branch 'ath3/editorconfig-max_line_length'
2019-06-15 10:51:54 +10:00
codesoap
38d3432d1a
Make the readtags command configurable in ctags.kak
...
On OpenBSD the command that comes with the universal-ctags package is
called 'ureadtags'.
2019-06-14 13:21:33 +02:00
ath3
8c7d447574
max_line_length support for editorconfig
2019-06-13 00:03:45 +02:00
Dmitry Matveyev
01159a9e72
Add support for autoformatting after do keyword in Ruby
2019-06-12 09:03:24 +03:00
Alex Leferry 2
d97688b624
Update Crystal
2019-06-11 18:33:08 +02:00
Maxime Coste
85e2dc6252
Merge branch 'man' of http://github.com/codesoap/kakoune
2019-06-11 23:19:52 +10:00
Maxime Coste
a93f54192e
Merge branch 'st' of http://github.com/codesoap/kakoune
2019-06-11 23:19:10 +10:00
Maxime Coste
8023c1d094
Merge branch 'patch-1' of http://github.com/hacktivista/kakoune
2019-06-11 23:08:54 +10:00
Maxime Coste
a16cae2daf
Fix ctags-search menu escaping
2019-06-11 20:13:03 +10:00
codesoap
683c7c1fa5
Fix fifos for Linux
...
Those were accidentaly broken while fixing for OpenBSD.
2019-06-10 18:25:51 +02:00
Felix Freeman
f246313951
Consider */ closing comment on PHP automatic indentation prefix
2019-06-10 12:12:06 -04:00
codesoap
9ca9d40c03
Revert "Don't create subshells when unnecessary"
...
This reverts commit 6c05e6e0f8
.
Apparently the Linux sh needs subshells here.
2019-06-10 18:00:11 +02:00
hacktivista
2bc14edfd2
Fix PHP comments indentation
2019-06-10 10:47:19 -04:00
codesoap
6c05e6e0f8
Don't create subshells when unnecessary
2019-06-09 13:24:30 +02:00
codesoap
009eb80ca0
Fix tools using fifos for OpenBSD
...
Without these changes, kak would hang on the corresponding commands,
displaying a 'waiting for shell command to finish' message.
2019-06-09 11:50:35 +02:00
codesoap
11dfd4994b
Escape '(' in shell parameter expansion in man.kak
...
Not escaping '(' here led to a 'no closing quote' error on OpenBSD.
2019-06-07 21:48:28 +02:00
codesoap
7ade105319
Add st (simple terminal) to the known terminals
2019-06-07 21:46:20 +02:00
Maxime Coste
09e1ec97a9
Merge remote-tracking branch 'alexherbo2/crystal'
2019-06-06 23:14:51 +10:00
Maxime Coste
ecf3853bde
Merge remote-tracking branch 'alexherbo2/r-rename'
2019-06-06 23:14:44 +10:00
codesoap
10ad877a4d
Remove extraneous '\' from git.kak
2019-06-06 13:17:21 +02:00
Maxime Coste
733cf564df
Merge remote-tracking branch 'elasticdog/spell-len-whitespace'
2019-06-06 20:17:08 +10:00
Alex Leferry 2
cd0665d61b
Update Crystal
2019-06-05 17:34:18 +02:00
codesoap
7c8c5ad506
Remove ' from comment in subshell
...
On OpenBSD's sh this causes a "no closing quote" error.
2019-06-05 15:16:07 +02:00
Alex Leferry 2
39e2604420
Rename R.kak → r.kak
2019-06-04 13:56:08 +02:00
Aaron Bull Schaefer
3a401f0771
Trim whitespace from spell check word length variable
...
Due to ambiguity in the POSIX standard, GNU and BSD versions of the `wc`
utility use slightly different whitespace conventions when formatting
their output [1]. When limiting the output to just counting the number
of bytes (as is done by Kakoune when calculating the length of words
for spell check highlighting), the BSD version of `wc -c` has some
additional leading whitespace:
gnu$ printf %s "test" | wc -c
4
bsd$ printf %s "test" | wc -c
4
This leading whitespace needs to be removed before defining the "region"
to highlight, or `set-option` will not be able to parse the given
`spell_regions` and will complain that there are "not enough elements
in tuple." In other words, the region `1.21+8|Error` on Linux ends up
looking like `1.21+ 8|Error` on macOS, which is invalid.
Removing the whitespace could be accomplished in a number of ways, but
using arithmetic expansion [2] is POSIX compliant and does not require
shelling out to another process.
[1]: https://unix.stackexchange.com/questions/205906/extra-space-with-counted-line-number
[2]: https://mywiki.wooledge.org/ArithmeticExpression
2019-06-02 20:23:42 -07:00
lePerdu
dbe32d314f
Add auto-indent scripts for LaTeX
2019-05-31 11:44:15 -04:00
Semyon Maryasin
accc203718
Add syntax highlighting for Nix package manager
...
Based on PHP. It is not ideal yet but much better than nothing.
2019-05-29 21:13:33 +03:00
Maxime Coste
14f45c0020
Merge remote-tracking branch 'alexherbo2/crystal'
2019-05-29 20:46:59 +10:00
Maxime Coste
cbcc9d09ca
Merge branch 'master' of https://github.com/musclewizard/kakoune
2019-05-29 20:31:22 +10:00
Maxime Coste
8ae490752f
Merge remote-tracking branch 'greenfork/add-test-ruby-alternative-file'
2019-05-29 20:09:38 +10:00
Michael Mogenson
6905b6e34a
Automatic insert completion using ctags
...
Fixup ctags-complete command to search for partial matches for the
current selection in all tags files listed in ctagsfiles option. Format
the results to fit the Kakoune completions type.
Add ctags-enable-autocomplete and ctags-disable-autocomplete commands to
add and remove an InsertIdle hook to select the previous word and call
ctags-complete.
Use the ctags_min_chars option to limit the noise of returning many
completions for very short selections.
2019-05-28 10:00:39 -04:00
Dmitry Matveyev
329ede9094
Add test/ ruby-alternative-file implementation
2019-05-25 12:39:52 +03:00
Justin Frank
1adc5f080b
Added wip markdown code lazy-loading hook
2019-05-24 09:41:05 -07:00
James Thomas
5537645ea5
changes the name of a buffer being linted from /tmp/kak-lint.XXXXXX/buf.$extension to /tmp/kak-lint.XXXXXX/$filename. This allows the linter to compile Java files, which fail to compile if the Class name does not match the File name being linted.
2019-05-23 15:52:57 -04:00
Maxime Coste
9ffde03ca7
git.kak: support highlighting git log decorations
2019-05-23 12:42:38 +10:00
Alex Leferry 2
fff7e9b064
Add support for Crystal
...
https://crystal-lang.org
2019-05-21 18:25:29 +02:00
Maxime Coste
6b7f445936
Merge remote-tracking branch 'eraserhd/clojure-fix-for-1-char-symbols'
2019-05-21 21:36:30 +10:00
Maxime Coste
ef1523fbb0
Merge remote-tracking branch 'andreyorst/fix-racer'
2019-05-21 21:34:08 +10:00
Dawid Ciężarkiewicz
d4b57b5b00
rust: Highlight async/await keywords
2019-05-17 20:26:30 -07:00
Andrey Orst
ea960dcdfd
simplify rust completion to match generic Kakoune completions
2019-05-17 20:00:40 +03:00
Maxime Coste
6a65415a19
Merge remote-tracking branch 'andreyorst/ctags'
2019-05-17 19:54:38 +10:00
Maxime Coste
33f9e28610
Merge remote-tracking branch 'ericricky/master'
2019-05-17 19:52:46 +10:00
Andrey Orst
27b6889daf
fix #2909 broken rust autocomplete
2019-05-16 08:39:58 +03:00
Jason Felice
ee9c9a777c
clojure: Fix indentation for lists with 1-character heads
...
Indentation can be different depending on the first word of list forms. The
indent hook uses `e` from inside the parent to select the first word for
testing whether it is a special word; however, in the case of a one-character
symbol, this selects to the end of the *next* word.
This rejects such selections.
2019-05-15 11:20:10 -04:00
Ramiro Romero Arjona
f60a403c1b
Change regular expression for git blame to one more supported
...
Change regular expression in git blame, removing braces. New expression is supported on various awk engines used in some distributions as default ones. As trade-off, the new expression accepts more input character sequences.
2019-05-02 21:27:25 +02:00
Andrey Orst
3e85406ec1
reimplemented ctags-search command
2019-04-29 17:21:02 +03:00
nonumeros
84ee2b382f
adding init to git.kak, removed candidates
...
adding init to git.kak
removing git init EOF line
git ls-files on on git.kak
no candidates for git-init, removed function
removed candidates for git-init
2019-04-27 01:23:21 -04:00
Steven Chan
b1602d4490
Fix #2495 - Add hyperlink support to :man
...
1. Add commands to navigate between man page links.
2. Add command to jump to a man page by following a man page link.
3. Add key map for <ret> to jump command.
4. Add key maps for a suggested user mode.
2019-04-26 12:35:54 -07:00
rs
bd3ec61784
Add support for R
2019-04-25 10:44:43 -05:00
Maxime Coste
0cc89b2b9f
Merge remote-tracking branch 'laelath/provides-requires'
2019-04-25 11:59:42 +01:00
Steven Chan
64fd0c72ce
Enable man command to show stderr message to the user
...
1. If there is no man page found (error 16), then echo stderr text.
2. For other kinds of errors, fail with stderr text so that command can propagate through a try/catch.
2019-04-24 14:49:56 -07:00
Steven Chan
734a7d0707
Re-implement PR #1927 - man
bufname should indicate man page.
2019-04-24 14:49:47 -07:00
rs
429eeb252c
Fix kak file recognition
2019-04-24 16:06:46 -05:00
Alex Leferry 2
02ce53d20e
Use complete URL
2019-04-24 03:33:54 +02:00
Maxime Coste
17c5e7aa5f
Merge remote-tracking branch 'alexherbo2/rc-javascript-accessors'
2019-04-20 10:33:38 +02:00
Maxime Coste
b65fcb5d1a
Merge remote-tracking branch 'alexherbo2/rc-mime-detection'
2019-04-20 10:30:05 +02:00
Alex Leferry 2
4d12e750ae
Highlight JavaScript accessors
2019-04-19 12:31:39 +02:00
Alex Leferry 2
ba1274f73c
file.kak: Dereference symlinks
2019-04-17 12:37:54 +02:00
Alex Leferry 2
313c6eadc7
file.kak: Use -i POSIX option name
...
https://ss64.com/osx/file.html
https://freebsd.org/cgi/man.cgi?query=file
2019-04-17 12:37:17 +02:00
Maxime Coste
9118a18d5d
Change completions option docstring element to be an arbitrary command
...
We can have the previous behaviour by just passing the docstring to
`info -placement menu`.
2019-04-17 08:38:52 +02:00
Maxime Coste
02fc42a12a
Rename info -placement to info -style and support modal style
...
Fixes #1375
Closes #1380
2019-04-17 08:38:52 +02:00
Justin Frank
48abc3cbf3
Changed ' 🦀 ' to '§' for complex module quoting
2019-04-13 12:57:57 -07:00
Justin Frank
6512eafa60
Update remaining files to new provide/require format
2019-04-11 15:54:58 -07:00
Justin Frank
c2b32ebaa7
Clean up javascript file a bit
2019-04-10 17:08:05 -07:00
Justin Frank
e959b99050
Fixed several more support files.
2019-04-10 16:48:46 -07:00
Justin Frank
80ac46e09d
Fixed many of the filetype support modules to not use BufSetOption
to load
2019-04-09 20:54:19 -07:00
Justin Frank
887a5223ac
Fixed if statement in x11 detection
2019-04-08 17:08:35 -07:00
Justin Frank
49b00992ca
Fix x11 overriding tmux
2019-04-08 17:05:55 -07:00
Justin Frank
aa6d19bee6
Added modules to extra files
2019-04-08 17:05:55 -07:00
Justin Frank
c3f694a28f
Modified base files to use modules
2019-04-08 17:02:44 -07:00
Justin Frank
1fab727f2b
Modified a bunch of language support files to use modules
2019-04-08 17:02:44 -07:00
Hampus Fröjdholm
ec68b6a712
Add Python 3.7 breakpoint to list of built-in functions.
2019-04-04 04:46:20 +02:00
Maxime Coste
a32da9d3ee
Fix spurious error from c-family-indent-on-closing-curly-brace
2019-04-01 22:20:43 +11:00
Grant Moyer
d8e4c6801f
Fix autoindent issues with paren in literal
2019-03-31 00:07:12 -04:00
Maxime Coste
2c283d46a5
Merge remote-tracking branch 'GrantMoyer/rust-block-indent'
2019-03-29 20:12:34 +11:00
Maxime Coste
bcc8b88710
Merge remote-tracking branch 'GrantMoyer/preserve-tabs-for-autoindent'
2019-03-29 20:08:59 +11:00
Grant Moyer
71c5077bec
Block indent on newline when previous line is '(stuff' and move 'stuff' to own line
...
Also, align closing paren on own line with opening paren
2019-03-28 13:17:57 -04:00
Grant Moyer
61840c8b11
Preserve tabs during autoindent and alignment with '(' for c-family languages
...
Also add test for tab preservation during c-family autoindentation, and correct alignment of '}' with opening of block in cases of wrap between '(' and ')' in c-family languages
2019-03-28 13:08:02 -04:00
Alex Leferry 2
c7218940cb
Make kitty honoring the current working directory
...
Fixes #2819
2019-03-28 14:29:54 +01:00
Maxime Coste
4b98b89437
sh.kak: Use a region for shell expansions
...
Fixes #2763
2019-03-26 13:04:31 +11:00
Maxime Coste
615c92f6e2
Merge branch 'patch-1' of https://github.com/pickfire/kakoune
2019-03-24 12:32:28 +11:00
Ivan Tham
ac4ad861ab
Fix hook
2019-03-23 15:48:12 +00:00
Ivan Tham
ae7f65acd8
Default to rustfmt for formatcmd in rust
...
`rustfmt` is the de facto standard for formatting in rust so setting it by default would be nice.
https://github.com/mawww/kakoune/issues/2801
2019-03-22 16:59:24 +00:00
Alex Leferry 2
9ef37666ea
Remove ranger.kak
2019-03-22 13:29:22 +01:00
Alex Leferry 2
7d400dce7f
Add windowing/repl category
2019-03-21 12:09:39 +01:00
Maxime Coste
00185995e4
Merge remote-tracking branch 'alexherbo2/rc-categories'
2019-03-21 21:10:36 +11:00
Alex Leferry 2
c0dccdd90d
Add categories in rc/
...
Closes #2783
2019-03-21 01:06:16 +01:00
Justin Frank
767b7e48dd
Cleanup of fish.kak. Fixes #2775
2019-03-19 09:51:42 -07:00
Maxime Coste
da687f8b7d
Merge branch 'patch-1' of http://github.com/andreyorst/kakoune
2019-03-16 12:40:40 +11:00
Maxime Coste
77d75437b8
Merge remote-tracking branch 'eraserhd/use-semantic-face-names'
2019-03-16 12:02:21 +11:00
Alyssa Ross
60dd81d7d8
Highlight all default Ruby symbols correctly
2019-03-15 17:32:49 +00:00
Alyssa Ross
c409bce579
Recognize Ruby identifiers beginning with _
...
:_foo, @_foo, $_foo, and { _foo: 1 } are all valid Ruby syntax, but were
not recognized by the highlighter.
2019-03-15 16:24:44 +00:00
Frank LENORMAND
2c19c2d84c
rc: Use builtin faces
2019-03-14 10:53:13 -04:00
Andrey Orst
e5558aee63
highlight floating point numbers with exponent
...
Correct highlihgting for `0.38e-18` like numbers
2019-03-13 17:01:17 +03:00
Maxime Coste
bfc2a178f2
Merge remote-tracking branch 'alexherbo2/kakrc-add-force-commands'
2019-03-13 06:51:16 +11:00
Maxime Coste
017b7c970e
Merge branch 'patch-1' of https://github.com/andreyorst/kakoune
2019-03-06 22:51:40 +11:00
Maxime Coste
55c60153df
Merge remote-tracking branch 'alexherbo2/rc-markdown'
2019-03-06 22:49:46 +11:00
Andrey Orst
81fc15057c
Add KDE Konsole terminal to termcmd
...
Konsole doesn't work well with non-default Kakoune themes, so I've put it last in the list, but in case when no other terminal is available it's good to have it in the list for launching non-kakoune things, like tig
2019-03-06 12:58:57 +03:00
Olivier Perret
dc8481776c
Various fixes to iterm.kak
...
The 'terminal' alias wasn't automatically setup
Missing '\' in sed calls
Descriptions of vertical and horizontal split was swapped around
2019-03-05 21:00:01 +01:00
Alex Leferry 2
7c9053cdec
Remove invalid Markdown syntax
2019-03-05 15:07:17 +01:00
Alex Leferry 2
35ace812df
Markdown: Highlight TOML code blocks
2019-02-18 07:42:49 +01:00
Maxime Coste
6da4761065
Merge remote-tracking branch 'eraserhd/lisp-indentwidth'
2019-02-11 21:58:06 +11:00
Maxime Coste
4636440622
Merge remote-tracking branch 'laelath/c-family-else-indent'
2019-02-11 21:53:05 +11:00
Justin Frank
58c15b0240
Indent and deindent c-family single line else properly
2019-02-08 15:16:29 -08:00
Alex Leferry 2
8aba642535
kakrc: Add force commands
2019-02-06 20:26:32 +01:00
fsub
3f29d5ebbf
ctags: eliminate redundant variable
2019-02-04 20:14:19 +01:00
Jason Felice
58ab144865
Use indentwidth for lisp, scheme, and Clojure
2019-02-04 12:23:57 -05:00
Maxime Coste
4a2cd39eac
Merge remote-tracking branch 'stevenyvr987/fix-ctags-funcinfo-command'
2019-02-03 09:56:18 +11:00
lePerdu
eaa5c0d297
Remove +F from tag attribute highlighting
2019-01-31 09:22:08 -05:00
Steven Chan
568d46bf72
Fix and simplify ctags-funcinfo command
...
1. Enable the command to correctly show the prefix of a function name [prefix::basename],
where prefix is the value gotten from a class, struct, or namespace field of the tag line.
2. Use a readtag filter expression to replace a use of grep.
2019-01-29 11:17:23 -08:00
Maxime Coste
1b469f4c00
Merge http://github.com/ckafi/kakoune
2019-01-23 20:24:24 +11:00
Steven Chan
ae86ffcbf9
Fixes for ctags.kak
...
1. Fix #2250 . Enable ctags to handle absolute file paths.
Only prepend tagroot to tag location if it is a relative file path.
2. Include signature field in the default ctags command.
The regex for displaying signature info includes a mandatory pattern
for 'signature' field, but the field is not a default option for the ctags command.
If the tags file is generated by the as-is ctags command, pattern matching will fail,
and the whole ctags line for the selected function will be displayed instead.
2019-01-21 15:09:33 -08:00
Maxime Coste
ca105f8cc6
Rework c-family shell expansions to speed them up slightly
2019-01-20 12:33:46 +11:00
Maxime Coste
a9ee4e8af4
Small optimization in clojure.kak awk script
2019-01-20 12:32:31 +11:00
Maxime Coste
a35a1591d0
Convert scheme.kak expensive shell scope to awk
2019-01-20 12:31:57 +11:00
Maxime Coste
8587ecaeb4
Slight simplification in c-family.kak
...
There is no need to have split types/macros into many different
variables.
2019-01-19 11:33:53 +11:00
Maxime Coste
2f7ec014b7
Use a here-document for clojure.kak awk script
2019-01-19 10:42:46 +11:00
Maxime Coste
41ce602574
Fix some escaping issues in clojure.kak
2019-01-19 10:29:23 +11:00
Maxime Coste
4a358e0707
Merge remote-tracking branch 'eraserhd/clojure-highlighting-with-awk'
2019-01-19 10:14:05 +11:00
Jason Felice
52c0b7d6b4
Rewrite clojure highlighting to use awk
...
First, avoids the shell escaping issue mentioned in #2604 . Second,
speeds up Kakoune boot time.
2019-01-18 11:20:15 -05:00
Tobias Frilling
ef19d318c4
Better tmux REPL support
...
This allows one REPL per kakoune session and allows the REPL to run in a
different tmux session than the kakoune client.
2019-01-18 14:42:04 +01:00
Maxime Coste
0f9e6680e2
Support quoted here-documents in sh highlighting
2019-01-17 19:58:53 +11:00
Maxime Coste
da8058487b
Fix C++ raw strings not being checked for matching captures
2019-01-17 19:50:43 +11:00
Maxime Coste
0600724a8b
Improve some corner cases in c-family auto-indenting
2019-01-14 23:42:57 +11:00
Maxime Coste
30919b749c
Merge remote-tracking branch 'JJK96/bash'
2019-01-13 23:41:24 +11:00
Jan-Jaap Korpershoek
b306f6aa37
[Bash] Handle hashtag inside expansion ( Fix #2684 )
2019-01-11 00:02:36 +01:00
Maxime Coste
7dbd9bc1e2
Merge remote-tracking branch 'SolitudeSF/nimfix'
2019-01-10 20:28:07 +11:00
Jan-Jaap Korpershoek
c0588529c2
Merge branch 'master' into i3
2019-01-09 16:09:11 +01:00
Jan-Jaap Korpershoek
cb13fb63d3
Add new keywords
2019-01-09 16:08:14 +01:00
SolitudeSF
289b57bb67
rc: nim - properly highlight hex/oct/bin literals, refactor, fix more edgecases
2019-01-08 21:08:46 +02:00
fsub
059b086e62
c-family: Regroup C++ keywords and consider C++20
2019-01-06 19:22:48 +01:00
Justin Frank
8a6a76fcd3
Added 'catch' to kakrc keywords
2019-01-02 13:30:34 -08:00
Maxime Coste
090ccafa8d
Merge remote-tracking branch 'Muffindrake/uch_stdlib'
2018-12-30 10:55:26 +11:00
SolitudeSF
d010b163fa
rc: nim - fix prefixed triplestring edgecase
2018-12-29 19:31:49 +02:00
Maxime Coste
81cef40171
Merge remote-tracking branch 'SolitudeSF/nimfix'
2018-12-29 10:34:45 +11:00
SolitudeSF
a9ef25f172
rc: add missing builtin types, fix displaying of triple string literals, float literals, character literals, type suffixes, enable raw string literals, operators highlighting in nim
2018-12-27 21:49:00 +02:00
Maxime Coste
e2f2503da4
Merge remote-tracking branch 'SolitudeSF/nimfix'
2018-12-28 06:43:24 +11:00
Maxime Coste
f54ba6d4b2
Merge remote-tracking branch 'lenormf/fix-git-notes'
2018-12-28 06:40:13 +11:00
SolitudeSF
a4e65d4706
rc: add missing builtin types, fix displaying of triple string literals, float literals, character literals, type suffixes, enable raw string literals in nim
2018-12-27 21:34:33 +02:00
Maxime Coste
1c7b63709f
Merge remote-tracking branch 'occivink/generic-term-command'
2018-12-28 06:27:51 +11:00
Jason Felice
1631327c33
Some collected fixes for Clojure highlighting
...
- condp is a keyword
- Highlight '10' correctly
- Highlight shebang line as a comment
2018-12-27 11:46:54 -05:00
Olivier Perret
eebc8c2f7d
Fix a couple of mistakes in iterm.kak
2018-12-22 10:32:25 +01:00
Olivier Perret
5146f7ba33
Rework 'terminal' commands
...
* Arguments of the kakoune command are now preserved in the shell call
* Escaping logic is moved from 'new' to 'terminal'
2018-12-22 09:37:17 +01:00
Olivier Perret
02fa967476
Factor the 'new' commands out of their respective windowing systems
2018-12-22 09:37:03 +01:00
Olivier Perret
3e4f3ed9d2
Better handling of escaping in iterm.kak
...
Thanks eraserhd
2018-12-22 09:37:03 +01:00
Olivier Perret
84da1911be
Attempt to create iterm-terminal commands
2018-12-22 09:37:03 +01:00
Olivier Perret
74d1dc756a
Only accept one parameter to 'terminal' commands
...
Also explicitly state that they're executed in a shell scope
2018-12-22 09:37:01 +01:00
Olivier Perret
c8403624a7
Expose a 'terminal' command for the various windowing systems
...
It allows plugins to create generic terminal using the user's preferred windowing system
For example, it can be used to run fzf, gdb or simply a shell.
* 'new' commands are refactored to simply use the 'terminal' one
* style and docstrings has been unified
* all windowing systems go through "sh -c" for consistency purposes, even if unnecessary
2018-12-22 09:36:34 +01:00
Olivier Perret
6f9e297def
Revert cosmetic hook order change
...
The order in which they're run actually matters
2018-12-20 19:15:40 +11:00
Olivier Perret
f085e43bf9
Unify auto-indent trimming hooks
...
* ModeChange hooks that remove indent now belong to *-trim-indent groups, instead of just -indent
* *-filter-around-selections hooks and commands have been renamed to trim-indent for clarity
2018-12-19 10:20:11 +01:00
Olivier Perret
d8466f0f39
c-family.kak: remove redundant -family in hook groups
2018-12-19 10:03:37 +01:00
Muffindrake
bcb87279e5
Remove accidental line paste
2018-12-15 10:30:53 +01:00
Muffindrake
2e141d2c2c
Add atomic type qualifier and atomic_flag type
2018-12-15 09:54:22 +01:00
Muffindrake
bbd34de26c
Add missing stdlib macro highlighting and uchar types
2018-12-15 09:33:46 +01:00
Maxime Coste
e49a0d2581
doc.kak: Do not join together bullet lists
...
Fixes #2610
2018-12-13 19:36:23 +11:00
Frank LENORMAND
9b9aedd175
rc lint: Prevent diagnostics from being expanded
...
Fixes #2629
2018-12-13 10:42:52 +03:00
Maxime Coste
527e28539e
Merge remote-tracking branch 'occivink/cleanup-hook-once'
2018-12-11 10:39:24 +11:00
Olivier Perret
27f951638c
Execute cleanup hooks on any filetype change
2018-12-11 00:35:57 +01:00
Olivier Perret
93c308ca53
Fixes to d.kak and moon.kak
2018-12-11 00:13:30 +01:00
Olivier Perret
f5a2ded44b
Change cleanup of extra/ languages to use a simpler hook -once
2018-12-11 00:13:30 +01:00
Olivier Perret
898d45f5d5
Change cleanup of base/ languages to use a simpler hook -once
2018-12-11 00:13:30 +01:00
Olivier Perret
6765723c68
Change cleanup of core/ languages to use a simpler hook -once
2018-12-11 00:13:30 +01:00
Frank LENORMAND
f8d660027b
rc git: Support the break
instruction
2018-12-10 20:10:05 +03:00
Frank LENORMAND
17ebc582b6
rc scheme: Fix the initialization of the static words
...
Fixes #2607
2018-12-01 07:40:55 +03:00
Maxime Coste
a7336f8663
Merge remote-tracking branch 'sbwhitecap/pr/treat_t_files_as_perl'
2018-11-28 21:28:07 +11:00
Maxime Coste
086db6a9d3
Fix extra_word_chars in various scripts
...
Add '_' to the list now that it is not built-in anymore
2018-11-28 18:13:55 +11:00
Kazuki Shigemichi
5221254363
Treat .t files as perl
2018-11-27 22:43:50 +09:00
Maxime Coste
4610166263
Merge remote-tracking branch 'lePerdu/markdown_highlighter'
2018-11-27 18:22:21 +11:00
Alyssa Ross
9e99415c46
makefile.kak: highlight .mk files
...
This extension is commonly used for helper files, etc.
2018-11-26 02:20:31 +00:00
Maxime Coste
bef7683e1b
Merge remote-tracking branch 'Muffindrake/c_stdint'
2018-11-25 22:59:22 +11:00
Maxime Coste
2598fc1534
Merge remote-tracking branch 'lePerdu/fix-lua-comments'
2018-11-25 22:58:55 +11:00
Maxime Coste
ec6b88be96
Merge remote-tracking branch 'jjthrash/master'
2018-11-23 22:32:35 +11:00
Muffindrake
d40a6bc44a
Highlight bool type
2018-11-23 00:12:01 +01:00
Jimmy Thrasher
576f7b13b9
Don't highlight Ruby eigenclass definitions as here docs
...
E.g. for the following code snippet, the code was highlighted as a string
```ruby
class Bob
class <<self
def hello
end
end
end
```
2018-11-21 16:45:07 -05:00
Olivier Perret
808580056f
doc: don't pollute command history with mapping
2018-11-21 17:30:58 +01:00
Maxime Coste
3ed7ec21bd
Merge branch 'python_add_async_await_keywords' of http://github.com/Roger/kakoune
2018-11-19 21:07:53 +11:00
Maxime Coste
c4ffd95570
Merge remote-tracking branch 'JJK96/master'
2018-11-19 20:50:11 +11:00
Maxime Coste
f46b53a441
Merge branch 'gas-hex-fix' of http://github.com/andreyorst/kakoune
2018-11-19 20:49:40 +11:00
lePerdu
41d2176179
Add back list marker highlighting
2018-11-18 10:34:11 -05:00
lePerdu
9053a1cdc1
Make list items match as regions
2018-11-18 10:34:06 -05:00
Frank LENORMAND
70097a98b3
Sinplify regex
...
Co-Authored-By: JJK96 <jjkorpershoek96@gmail.com>
2018-11-18 08:28:50 +01:00
Frank LENORMAND
7dd81ec516
rc git: Support notes
2018-11-17 16:47:29 +03:00
Jan-Jaap Korpershoek
7fc43252f1
Make header clearer
2018-11-16 13:56:48 +01:00
Jan-Jaap Korpershoek
1228eddc00
Add markdown sql language support
2018-11-16 13:54:43 +01:00
Andrey Orst
3e194fbb2e
fix hex numbers for gas filetype - add missing a-f letters
2018-11-13 13:02:04 +03:00
lePerdu
e539347f2a
Give lua block comments higher match precedence
2018-11-12 15:39:34 -05:00
roger
b672e7c100
python: add async/await keywords highlighting
2018-11-12 15:03:32 +01:00
Muffindrake
a807dbf1e0
Add missing highlighting for time/wctype
2018-11-11 15:33:55 +01:00
Muffindrake
3012bf48e5
Convert subshells to strings
2018-11-08 18:26:16 +01:00
Muffindrake
3c9f9255d7
Add macros for float.h
2018-11-08 18:03:31 +01:00
Muffindrake
f088dd957a
Update C grammar
...
This highlighting and static completion for types and macros that were
previously missing. No functions are included, but some macros are
highlighted as such, even if they're function-like macros.
2018-11-08 10:30:27 +01:00
Maxime Coste
9bc893e70b
Merge remote-tracking branch 'laelath/c-indent-fixes'
2018-11-06 20:22:50 +11:00
Maxime Coste
bcd50d7dd8
Merge remote-tracking branch 'eraserhd/clojure-indent-fix'
2018-11-06 20:16:57 +11:00
Justin Frank
521e5032c9
Don't require content in parens for single statment indent
2018-11-01 00:21:48 -07:00
Justin Frank
ee65954ed4
Make statement after if/else/while/for optional for indenting c-family
2018-10-31 16:09:13 -07:00
Jason Felice
db937beff0
Make lisp/clojure indent work for append
2018-10-29 12:16:13 -04:00
Ruslan Prokopchuk
b65a6493aa
replace usage of the deprecated 'e' face attribute with the new 'F' one
...
and update set-face docstring
2018-10-28 08:52:14 +11:00
Maxime Coste
433e39566d
Merge remote-tracking branch 'lenormf/highlight-troff'
2018-10-23 08:20:21 +11:00
Jason Felice
e399bf7562
EDN files are Clojure syntax
2018-10-22 10:23:26 -04:00
Frank LENORMAND
2999702b01
rc troff: Highlight *ROFF files
...
Fixes #2508
2018-10-21 16:24:14 +03:00
Maxime Coste
7470c85a1a
Merge remote-tracking branch 'maximbaz/do-not-enforce-autoformat-ocaml'
2018-10-21 18:45:16 +11:00
Maxime Coste
7dbca46bf0
Merge remote-tracking branch 'schickm/bugfix/hbs-highlighter-toggling'
2018-10-21 11:52:22 +11:00
Sébastien Lerique
681942e44b
Support commenting syntax in Elm
2018-10-09 11:40:07 +02:00
Matt Schick
8e698e0054
Simplify handlebars adding/removal hooks
...
Removing the handlebars highlighters when a client toggles away from hbs window unintentionally causes
other clients attached to hbs windows to no longer highlight correctly. The only other option is to
copy the entire html highlighter and all of it's rules, but that seems like a maitenance headache.
So instead, just leave the hbs rules injected into the html rules once the user opens any handlebars file.
It's not ideal, but I'd say it's the least bad option.
2018-10-06 08:39:01 -05:00
Maxime Coste
888ec60adf
Fix kakrc shell script completion region definitions
2018-10-06 10:49:14 +10:00
Maxime Coste
5bdcfab018
Merge remote-tracking branch 'laelath/shell-command-completion'
2018-10-06 10:47:23 +10:00
Maxime Coste
81fa2ad300
Merge remote-tracking branch 'laelath/kitty-repl-cwd'
2018-10-04 20:17:22 +10:00
Maxime Coste
d9e95ff1fc
Merge branch 'patch-1' of https://github.com/andreyorst/kakoune
2018-10-04 20:16:47 +10:00
Justin Frank
ab6bc41358
Added shell command completion support to define-command and prompt
...
This commit also introduces a regression in that I decided that the best way to
avoid overly long and confusing names was to rename the current shell-*
switches to script-*, and have the shell command completion be
shell-completion.
renamed script-{completion,candidates} to shell-script-*
Updated docs with new switch names
Added -shell-completion switch to x11-repl and kitty-repl
2018-10-03 09:46:31 -07:00
Justin Frank
74fb175da1
Made kitty repl window start in the current working directory
...
Enclose PWD expansion
2018-10-03 09:44:49 -07:00
Andrey Orst
44483e06f7
Simplifed regex variant by mawww
2018-10-03 15:16:16 +03:00
Maxime Coste
fd00776012
Merge remote-tracking branch 'schickm/html-highlighter-indent-bugfix'
2018-10-03 21:44:43 +10:00
Andrey Orst
5dce923785
use more complex regex to handle all suffix combinations
2018-10-02 19:01:53 +03:00
Matt Schick
1d731dbdd0
Fix/improve html-indent-on-new-line
...
* Fixes erroring execute-keys statement by using '<lt>' rather then '<'
* Reworks hook to not indent after self closing tags
2018-10-02 06:09:14 -05:00
Tim Allen
8385212f98
doc.kak: Fix bashism.
...
Fixes #2442 .
2018-10-01 15:45:28 +10:00
Maxime Coste
150ee05077
Merge remote-tracking branch 'lenormf/fix-doc-anchor'
2018-10-01 11:18:20 +10:00
Maxime Coste
c9467ea959
Merge remote-tracking branch 'lenormf/fix-extended-std-c'
2018-10-01 11:13:16 +10:00
Maxime Coste
dc7f9a813c
Merge remote-tracking branch 'TeddyDD/editorconfig'
2018-10-01 11:12:05 +10:00
Maxime Coste
2e0b58a43f
Merge remote-tracking branch 'eraserhd/lisp-indent'
2018-10-01 11:11:11 +10:00
Maxime Coste
5709ff7f20
Merge branch 'kd/fix-nim-singlequote-highlighter' of git://github.com/kdheepak/kakoune
2018-10-01 11:10:42 +10:00
Frank LENORMAND
798a7ec351
rc doc: Fix the anchor jump error message
...
Fixes #2442
2018-09-30 10:43:27 +03:00
Frank LENORMAND
51ced99286
rc c: Highlight more standard types and macros
...
Related to #2438
2018-09-29 17:43:06 +03:00
Daniel Lewan
0ae88593d3
add highlighting and static words to editorconfig
2018-09-29 14:21:31 +02:00
Jason Felice
e237bf6f15
Better Lisp and Clojure indent
...
Algol-like indenting doesn't work for Lisp as we tend to open (and
close) many forms on one line. This generally puts the cursor
where it should be, though it is probably confused by strings
with brackets and things.
2018-09-29 11:25:11 +01:00
Dheepak Krishnamurthy
1549c18b8e
Add single_string highlighter
2018-09-28 03:41:10 -06:00
Maxime Coste
004ed72f44
Merge remote-tracking branch 'laelath/kitty-qol-commands'
2018-09-27 19:08:47 +10:00
Maxime Coste
6a82398d0f
Merge remote-tracking branch 'schickm/hbs-highlighter-refactor'
2018-09-27 19:08:09 +10:00
Maxime Coste
f3d6586df2
Merge remote-tracking branch 'laelath/clang-format-fixes'
2018-09-27 18:55:50 +10:00
Justin Frank
7e15f200b1
Fixed several clang output formatting errors
2018-09-26 11:22:30 -07:00
Matt Schick
e7e87db94e
Rework the handlebars highlighter
...
- Removes -recurse from handlebars comments. Handlebars parsers (janl/mustache.js, ember-cli/ember-cli-htmlbars), do not treat comments as recursive, so don't highlight them as so.
- Creates shared/hbs-file highligher group. This represents a handlebars file, which is html that happens to contain some handlebars tags.
- Augments the shared/html highlighter when needed. Because handlebars lives inside of html, we need to add the highlighter inside of it. Since there's no way to scope modifications of a shared highlighter to a window, here I'm modifying/unmodifying the shared/html highlighter whenever the user attaches/detaches a filetype of "hbs" to/from the window.
- Matches namespaced helpers as well. In htmlbars, helpers (components) can have '/'s in them, so make sure to continue highlighting through those. Also removes unused capturing groups.
- Allows for de-indenting when closing a block expression
- Brings in html highlighter hooks
- Improves indent matching on close of yielded blocks. Previous version just flat out didn't work.
2018-09-26 06:12:24 -05:00
Andrey Orst
ab09864bd5
Update c-family.kak
2018-09-25 10:23:07 +03:00
Justin Frank
d06e8d662d
Added focus-tab call to kitty-focus
2018-09-23 21:12:07 -07:00
Justin Frank
903ae46b5d
Added more kitty integration
2018-09-23 13:15:29 -07:00
Maxime Coste
09546a950e
doc.kak: Fix rendering of indented code blocks
...
Fixes #2376
2018-09-23 22:42:30 +10:00
Maxime Coste
dbfed1306f
git.kak: Refactor commit message highlighting
...
Use regions to avoid highlighting the commit message as a diff.
The new method will fail if one line of the commit message matches
'^diff --git' but that is fairly unlikely.
Fixes #2371
2018-09-23 18:00:51 +10:00
Maxime Coste
bb1cb0dbf1
doc.kak: Tweak paragraph joining logic
...
Fixes #2378
2018-09-23 17:40:16 +10:00
Maxime Coste
49645f8efc
Merge remote-tracking branch 'laelath/spell-clear'
2018-09-23 17:05:51 +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
Justin Frank
5700587926
added spell-clear convenience command
2018-09-21 12:30:13 -07: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
Delapouite
425aa56eaf
Use remove-hooks regex in rc
2018-09-19 19:59:57 +02:00
Andrey Orst
b3f817c1ff
Fix highlighting of unsigned long long in C filetype
...
Values like `0xffffffffffffffffull` were highlighted only till first `u` leaving `ll` without highlighting. This change addresses this issue. It also adds uppercase `ULL` highlighting in values.
2018-09-19 16:50:26 +03: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
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
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
c8fd1e1cf6
Merge remote-tracking branch 'laelath/c-indent-edits'
2018-09-13 20:42:04 +10:00
Maxime Coste
b8d312cfe0
Merge remote-tracking branch 'laelath/kakrc-indent-edit'
2018-09-12 21:01:33 +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
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
Justin Frank
0f8caceac5
fixed highlighting of exec lines
2018-09-08 14:00:00 -07:00
Justin Frank
5c8a756d56
fixed showing parse errors not working
2018-09-08 11:39:30 -07:00
Justin Frank
558d4b864a
added autoindentation and comment copying to i3 syntax support
2018-09-06 21:53:04 -07:00
Jason Felice
1b1119e85c
Improve Clojure highlighting
2018-09-04 20:44:25 -04:00
Scott W. Dunlop
575b02b171
go-tools.kak: quote completions and scope
...
Since the gocode completions contain white space, they cannot be used without quotations.
Also, since I'm in there, the buffer should be quoted for heathens who use white space in their paths.
2018-09-04 11:41:35 -07:00
Scott W. Dunlop
48f23f0312
go-tools.kak: fix set-options for go completions
...
Restores Go completions, as discussed in #2215
2018-09-04 10:58:57 -07:00
Justin Frank
15bf1c7614
updated kitty integration to use the no-response switch
2018-09-01 12:14:33 -07:00
Emerson Ferreira
5e8727ad1b
Add support for Void Linux package templates
...
These templates are simple shell scripts, similar to PKGBUILDs.
They reside in srcpkgs, so we can use this to identify if
`template` really is a Void Linux package template.
2018-08-20 14:29:32 -03:00
Maxime Coste
a91fc83bfe
Merge remote-tracking branch 'lenormf/fix-git'
2018-08-20 07:56:32 +10:00
Maxime Coste
1904202d05
Merge remote-tracking branch 'lenormf/fix-lisp'
2018-08-20 07:49:21 +10:00
Frank LENORMAND
802f51c02a
rc git: Support new rebase
commands
2018-08-19 07:44:00 +03:00
Maxime Coste
a8dce6abcd
Merge remote-tracking branch 'aver-d/dart_comment'
2018-08-19 08:05:25 +10:00
Maxime Coste
1485150b68
Use -once hooks to remove fifo directories
2018-08-19 08:04:31 +10:00
aver-d
d2f48b1942
Add dart to comment.kak
2018-08-17 23:23:59 +01:00
Frank LENORMAND
099ad2319f
rc systemd: Make sure files are in the systemd
directory
...
Fixes #2272
2018-08-17 14:08:51 +03:00
Frank LENORMAND
55198032d2
rc git-tools: Change the CWD before running some git
commands
...
When opening buffers from a directory that's not under versioning
(or even from a different repository), `git` commands will not work.
This commit temporarily changes the current working directory to that
of the current buffer to make sure the context is right.
2018-08-16 14:34:48 +03:00
Justin Frank
d557b09ac6
added protobuf syntax support
2018-08-15 21:39:29 -07:00
Harm Aarts
0d087966bf
Add Dart rc file
...
Based heavily on `go.kak`.
2018-08-14 21:06:36 +02:00
Frank LENORMAND
afd44ddaea
rc lisp: Highlight basic numeral forms
2018-08-13 20:49:15 +03:00
Frank LENORMAND
93e1b3c254
rc lisp: Extend the range of identifier characters
2018-08-13 20:48:53 +03:00
Frank LENORMAND
36d94cecb4
rc lisp: Fix variable highlighting
...
Fixes #2289
2018-08-11 10:13:38 +03:00
Maxime Coste
983a8f759a
Merge remote-tracking branch 'laelath/fix-git-hide-blame'
2018-08-09 11:25:30 +02:00
Justin Frank
5b236e25a0
i3 comments don't require a space after the hash
2018-08-08 10:28:27 -07:00
Justin Frank
5b83968a29
fixed git hide-blame not working
2018-08-08 10:11:55 -07:00
Maxime Coste
ae75032936
Merge remote-tracking branch 'Screwtapello/support_rust_raw_strings'
2018-08-05 11:44:15 +01:00
Maxime Coste
610dbd97e9
Merge remote-tracking branch 'lenormf/fix-lint'
2018-08-05 10:37:15 +01:00
Frank LENORMAND
5953a38bdd
rc lint: Be more resilient to null coordinates
...
Some syntax checkers (such as `cppcheck`) like to pass
extra-information using a regular diagnostic line - but with null
coordinates (0:0).
This commit makes the `:lint` command ignore such messages, to prevent
`set-option` from failing when assigning coordinates to `lint_flags`, and to avoid unecessary information in the `*lint-output*` buffer.
2018-08-02 14:20:16 +03:00
Tim Allen
8a9471ca5c
rust.kak: Support Rust's raw-string syntax.
...
According to the Rust language reference[1], a raw string starts with an 'r',
zero or more '#' characters, and a '"', and doesn't close until a '"' is
immediately followed by the matching number of '#' characters.
[1]: https://doc.rust-lang.org/reference/tokens.html#raw-string-literals
2018-08-02 15:16:25 +10:00
Frank LENORMAND
bf488338aa
rc systemd: Make sure files are in the systemd
directory
...
Fixes #2272
2018-08-01 10:51:15 +03:00
Maxime Coste
1c0cc61ccc
Merge remote-tracking branch 'lenormf/fix-lint'
2018-07-31 16:05:00 +01:00
Hao Deng
b2b7672eb3
sql is case insensitive
...
make sql hilighter case insensitive.
2018-07-30 14:49:21 -04:00
Frank LENORMAND
eee0035a0f
rc lint: Create temporary file with the same buffer extension
...
Fixes #2189
2018-07-30 15:12:41 +03:00
Maxim Baz
451c72cc33
Do not enforce autoformat in ocaml
2018-07-28 12:27:27 +02:00
Jan-Jaap Korpershoek
db6f51b411
Fix unclosed string due to unescaped '
2018-07-26 11:16:44 +02:00
Jan-Jaap Korpershoek
0a1c4ecf3d
Add / behind add-highlighter path
2018-07-26 10:59:42 +02:00
Maxime Coste
47666ba20b
Merge remote-tracking branch 'lenormf/syntax-systemd'
2018-07-25 21:11:08 +10:00
Maxime Coste
c668d4c060
Merge remote-tracking branch 'laserswald/scheme-support'
2018-07-24 20:28:09 +10:00
Frank LENORMAND
64c7f8c564
rc: Highlight systemd
files in a dedicated script
2018-07-24 11:28:09 +03:00
Ben Davenport-Ray
dca6ad4822
Add Scheme support
2018-07-23 15:55:26 -04:00
Maxime Coste
5fb43478ff
Merge remote-tracking branch 'lenormf/fix-lint'
2018-07-22 21:12:06 +10:00
Maxim Baz
6cc46dd307
Recognize systemd timer syntax
2018-07-22 01:33:44 +02:00
Frank LENORMAND
929ef9f5ec
rc lint: Escape pipes in diagnostics
2018-07-20 13:18:33 +03:00
Maxime Coste
d640c321c0
cmake.kak: recognize CMakeCache.txt files as ini
2018-07-19 18:40:55 +10:00
Maxime Coste
ab94d1745e
mail.kak: Recognize Date header
2018-07-19 18:40:48 +10:00
Maxime Coste
2a3e3f0514
Tweak various scripts to improve the time they take to load
...
As requested in #2152 , startup time should be slightly better.
2018-07-19 18:32:29 +10:00
Maxime Coste
d8cf4f3f3b
Merge remote-tracking branch 'lenormf/fix-lint'
2018-07-19 08:27:40 +10:00
Frank LENORMAND
4bd6fe55d4
rc lint: Fix diagnosis displaying
2018-07-18 17:42:56 +03:00
Frank LENORMAND
6f35f41ba0
rc lint: Adapt to upstream changes in the format of string lists
2018-07-18 15:48:34 +03:00
Frank LENORMAND
4612d0928a
rc lint: Print an error when lintcmd
is empty
2018-07-18 14:16:05 +03:00
Maxime Coste
e7782ff14d
Merge remote-tracking branch 'maximbaz/recognize-gitconfig-syntax'
2018-07-15 20:30:00 +10:00
Maxime Coste
6e77e64734
Merge remote-tracking branch 'maximbaz/fix-python-indent'
2018-07-14 23:18:47 +10:00
Maxime Coste
8e1bd88958
Merge remote-tracking branch 'Screwtapello/fix-racer-integration'
2018-07-14 23:17:45 +10:00
Tim Allen
bc0cd64ecf
racer.kak: Fix more fallout from the recent quoting changes.
2018-07-10 18:55:47 +10:00
Maxim Baz
26bc173631
Fix python indent for lines ending with colon
2018-07-08 18:21:01 +02:00
Maxim Baz
b0b466e0d3
Recognize .gitconfig syntax
2018-07-08 18:10:12 +02:00
Maxime Coste
2659912220
go-tools.kak: Fix go-disable-autocomplete
...
As described in #2191
2018-07-08 21:02:51 +10:00
Maxime Coste
79ec8d0010
Rename highlighters that used an underscore to use a dash
...
For example `show_matching` is now `show-matching`.
2018-07-08 19:14:15 +10:00
Maxime Coste
677ae610f4
Merge remote-tracking branch 'occivink/comment-regs'
2018-07-08 15:59:43 +10:00
Maxime Coste
b3f9f533eb
Merge remote-tracking branch 'maximbaz/fix-highlighters'
2018-07-08 15:57:10 +10:00
Maxim Baz
a4b8954934
Remove the -highlight suffix
2018-07-07 01:51:18 +02:00
Maxime Coste
f0b3925ba7
Merge remote-tracking branch 'maximbaz/improve-comment-line'
2018-07-07 09:39:46 +10:00
Maxim Baz
50c0f9dbdd
Missed one place
2018-07-06 13:13:36 +02:00
Maxim Baz
4e0f404eaa
Fix highlighter in lint.kak
2018-07-06 12:43:21 +02:00
Maxim Baz
fcec136f1e
Fix highlighters in git-tools
2018-07-06 12:33:53 +02:00
Maxim Baz
4b18a15a9f
kak_selections_desc is now space-separated
2018-07-05 23:46:21 +02:00
Maxim Baz
89280d0f20
Update according to bbtu
2018-07-05 23:29:53 +02:00
Olivier Perret
efcd94820c
comment.kak: don't modify registers as side effect
2018-07-05 20:49:51 +02:00
Maxime Coste
b06ad06507
Fix man.kak add-highlighter commands
2018-07-05 18:00:37 +10:00
Maxime Coste
63d4c8c311
Change a
on end of line behaviour to be consistent
...
`a` will just jump on next line, `a` on last end of line opens a new
line beneath it.
Fixes #1164
2018-07-05 08:00:14 +10:00
Maxime Coste
2e0e206951
Make recurse regex opt-in with a -recurse switch instead of opt-out
2018-07-05 07:54:28 +10:00
Shachaf Ben-Kiki
619184bdf6
Fix static_words in go.kak
2018-07-05 07:54:28 +10:00
Shachaf Ben-Kiki
1a2eecd037
Fix clang.kak and part of lint.kak
...
* Make clang.kak compatible with POSIX `[`.
* Make lint.kak dump range/line-specs correctly. It still doesn't read them
correctly -- that'll be easier after the upcoming $kak_ changes for lists.
2018-07-05 07:54:28 +10:00
Maxime Coste
7f117dff1e
Fix kitty KakBegin hook with new command syntax
2018-07-05 07:54:28 +10:00
Maxime Coste
3c2e7e13c6
Fix cmake.kak raw string highlighting
2018-07-05 07:54:28 +10:00
Maxime Coste
9ea6b88c1f
Fix remaining kak scripts to use the new highlighter syntax
2018-07-05 07:54:28 +10:00
Maxime Coste
43223fba8c
Fix various scripts highlighter commands
2018-07-05 07:54:28 +10:00
Maxime Coste
96c9718144
Parse unknown switches as positional for region highlighters
2018-07-05 07:54:28 +10:00
Maxime Coste
40211d1e3b
Fix git-tools.kak highlighting
2018-07-05 07:54:28 +10:00
Maxime Coste
f61bcef469
Fix tests and required scripts to get back to green make test
2018-07-05 07:54:28 +10:00
Maxime Coste
e486a97ad8
Fix highlighters in rc/core post syntax refactoring
2018-07-05 07:54:28 +10:00
Maxime Coste
b0ccf97b44
Refactor RegionsHighlighters to define each region as a separate command
2018-07-05 07:54:28 +10:00
Maxime Coste
b4b335155e
Refactor add-highlighter to make naming explicit
...
The highlighter name must be given as part of the path of the
highlighter, as the last element.
Fixes #1712
2018-07-05 07:54:28 +10:00
Maxime Coste
51cff07821
jedi.kak: Fix post command line parsing refactoring
2018-07-05 07:54:28 +10:00
Shachaf Ben-Kiki
1b9474cd44
Fix remaining static_words and spell.kak for the new list syntax
2018-07-05 07:54:28 +10:00
Maxime Coste
7abf04babd
Improve highlighting of Kakrc string regions
...
Unfortunately Strings that start with a quoted quote (like '''str')
are still incorrectly highlighted, a deeper refactoring of the regions
highlighter will be necessary.
2018-07-05 07:54:28 +10:00
Maxime Coste
759a253923
Change kakrc string highlighting to follow the new string syntax
2018-07-05 07:54:28 +10:00
Maxime Coste
27163106c7
Make register expansions expand to the full register content
...
Now that we have a nice standard way to express lists of strings,
registers can be fully exposed. An new $kak_main_reg_... env var
was added to provide the previous behaviour which is relied on by
doc.kak.
2018-07-05 07:54:28 +10:00
Maxime Coste
a6ba65c121
doc.kak: Fix post list syntax refactoring
2018-07-05 07:54:28 +10:00
Maxime Coste
2729042f83
Fix c-family.kak static_words definition
2018-07-05 07:54:28 +10:00
Maxime Coste
e9fc54538d
Convert some of the rc/ scripts to the new list syntax
...
Other scripts relying on lists are broken at the moment, and will
be fixed. This commit is a proof of concept of the new way to work
with lists.
2018-07-05 07:54:28 +10:00
Maxime Coste
cad5f37efd
Fix register saving post -save-regs behaviour change
2018-07-05 07:54:28 +10:00
Maxime Coste
a77710e098
ctags.kak: remove -no-hooks from execute-keys
2018-07-05 07:54:28 +10:00
Maxime Coste
ec16969609
Do not reparse %sh{...} strings
...
Automatic reparsing of %sh{...}, while convenient in many cases,
can be surprising as well, and can lead to security problems:
'echo %sh{ printf "foo\necho bar" }' runs 'echo foo', then 'echo bar'.
we make this danger explicit, and we fix the 'nop %sh{...}' pattern.
To reparse %sh{...} strings, they can be passed to evaluate-commands,
which has been fixed to work in every cases where %sh{...} reparsing
was used..
2018-07-05 07:54:28 +10:00
Maxime Coste
86616c207d
Merge remote-tracking branch 'lenormf/synchronized-write'
2018-07-04 19:46:40 +10:00
Maxime Coste
220458839d
Fix git-tools.kak use of $@
2018-07-04 19:46:06 +10:00
Frank LENORMAND
ab2eade28d
rc: Synchronize important file writes
...
Fixes #2178
2018-07-04 09:55:05 +03:00
Maxime Coste
956c0e32e8
Merge remote-tracking branch 'maximbaz/add-missing-python3-keyword-nonlocal'
2018-07-03 22:18:08 +10:00
Maxim Baz
44f0230fe1
Add missing python3 keyword: nonlocal
2018-07-02 23:28:25 +02:00
Maxim Baz
fb045ec072
Let the update_diff fail if we are not in git repo
2018-07-02 22:43:23 +02:00
Maxim Baz
551674875d
Don't swallow stderr, don't update diff when not in git repo, use underlined ~ symbol
2018-07-02 22:34:54 +02:00
Maxime Coste
68e5674f59
Merge remote-tracking branch 'maximbaz/ini-support-properties-fix-equals-color'
2018-07-02 20:11:49 +10:00
Maxime Coste
379e7c2d2d
Merge remote-tracking branch 'maximbaz/improve-git-gutter'
2018-07-02 20:09:10 +10:00
Maxim Baz
b9a0c86cdc
Quote file path, keep silent when not in git repo
2018-07-01 22:54:11 +02:00
Maxime Coste
24ab99c8bf
Merge remote-tracking branch 'lenormf/fix-multiplexers-docstring'
2018-07-01 11:17:54 +10:00
Maxime Coste
8fcce5d1b1
Merge remote-tracking branch 'Screwtapello/fix-rust-lifetime-highlighting'
2018-07-01 11:12:45 +10:00
Maxim Baz
a56c39d69b
Improve git gutter
2018-07-01 02:24:46 +02:00
Frank LENORMAND
46943d4374
rc: Clearify the behavior of multiplexers that create new clients
...
Note: `GNU/screen` has a different interpretation of what constitutes
a "vertical split", hence the inverted command descriptions, compared
to the tmux/iterm etc.
Closes #1626
2018-06-30 14:19:32 +03:00
Frank LENORMAND
513eb2720e
rc iterm: POSIX fixes
2018-06-30 14:07:20 +03:00
Frank LENORMAND
76ac7ab663
rc git: Highlight the delete
operation when rebasing
2018-06-29 18:23:49 +03:00
Maxim Baz
7cfd0d1b39
trigger travis
2018-06-29 01:37:56 +02:00
Maxim Baz
d8a2588e9c
another attempt to fix macOS issue
2018-06-29 01:22:17 +02:00
Maxim Baz
c683b09287
Rename align-cursors-left to align-selections-left
2018-06-29 00:56:37 +02:00
Maxim Baz
5d689858df
Improve comment-line command
2018-06-28 23:47:48 +02:00
Maxim Baz
b2867a0197
Support .properties extension, fix coloring the equals sign
2018-06-28 00:08:44 +02:00
Tim Allen
53f0ce8247
rust.kak: lifetimes do not include the following non-word character.
...
A Rust data structure that is generic over a type conventionally uses a single
capital letter for the type variable, like `Vec<T>` or `HashMap<K, V>`. A Rust
data structure that is generic over a reference-lifetime conventionally uses an
apostrophe followed by a single lower-case letter for the lifetime variable,
like `Something<'a>`.
Previously, Kakoune would highlight "'a>" as the lifetime parameter; with this
change Kakoune highlights "'a" and leaves the closing ">" alone.
2018-06-23 17:55:02 +10:00
Frank LENORMAND
560eb3ee36
rc extra: Fix kitty
support
2018-06-23 08:55:38 +03:00
Matthew Vilim
b63d410219
improve solarized theme and Scala syntax highlighting
2018-06-22 13:42:06 -07:00
Tim Allen
3d0c19f8fb
Prevent the :format command from triggering hooks.
...
The :format command is often called from a BufWritePre hook to format the
current buffer, however the :format command itself calls `:write` to store the
buffer in a temporary location, potentially causing an infinite recursion.
If we disable hooks while running :format, there's no danger of that occurring.
2018-06-20 21:11:58 +10:00
Maxime Coste
7591924f85
ctags.kak: Remove tags starting with '!' from ctags completion
2018-06-20 20:20:50 +10:00
Maxime Coste
a6c8dcf305
Add a cmake.kak file for highlighting cmake files
2018-06-19 19:40:33 +10:00
Maxime Coste
9053dadfc3
Add kitty.kak to support kitty integration
2018-06-19 19:39:45 +10:00
Katharina Fey
a329f02701
Adding support for kitty
terminal
2018-06-19 09:38:15 +02:00
Maxime Coste
119d2e89e0
git-tools.kak: Fix leaking of pipe file descriptors in git-blame support
2018-06-19 07:43:13 +10:00
Maxime Coste
b1605d046b
Merge remote-tracking branch 'Laaas/master'
2018-06-17 18:08:47 +10:00
Jan-Jaap Korpershoek
941947ee26
Fix issue where spell-replace would not work if the new word contained a space
2018-06-15 16:37:30 +02:00
Las
575e9d44cf
Improve rust syntax highlighting
...
Changes:
- Highlight float literals with float type suffixes (nf64 and nf32)
- Make module items use the module color
- Highlight macro variables $variable
- Highlight lifetimes
- Highlight u128 and i128
- Highlight character literals (e.g. 'a')
- Highlight dyn keyword (will in the future be used for trait objects)
2018-06-13 00:59:38 +02:00
Maxime Coste
3208bc3762
Merge remote-tracking branch 'JJK96/master'
2018-06-03 12:25:38 +10:00
Jan-Jaap Korpershoek
3b098c884f
Change syntax highlighting regex for numbers so that numbers in identifiers are no longer highlighted.
2018-06-01 11:21:22 +02:00
Delapouite
5305c6b1ff
Add 'nop' keyword highlighting in .kak files
2018-06-01 10:46:05 +02:00
Hao Deng
57b71f0750
Update tmux-repl.kak
2018-05-31 09:37:50 -04:00
Hao Deng
aeddf067d0
Update tmux-repl.kak
2018-05-31 09:35:28 -04:00
Hao Deng
9e0fb5da5f
tmux-send-text can take 1 parameter now.
2018-05-30 22:26:26 -04:00
Maxime Coste
ffdeab8aba
Merge remote-tracking branch 'Delapouite/lint-counters'
2018-05-30 23:46:28 +10:00
Maxime Coste
9c59f59999
Merge remote-tracking branch 'Delapouite/grep'
2018-05-30 23:45:19 +10:00
Delapouite
bbf484c596
Limit highlighter to line in grep buffers
2018-05-30 14:40:29 +02:00
Maxime Coste
d6101bc10a
Merge remote-tracking branch 'JJK96/master'
2018-05-29 08:13:08 +10:00
Jan-Jaap Korpershoek
d1feae6716
Add check for i3 filetype
2018-05-28 11:04:34 +02:00
Maxime Coste
5ad188e14c
rc/: Escaping cleanups in bundled scripts
...
Remove escapes that trigger errors when experimenting with doubling-up
escaping.
2018-05-26 21:32:50 +10:00
Maxime Coste
6ce248b59c
tupfile.kak: regex escaping cleanup
2018-05-26 21:31:57 +10:00
Delapouite
712feed7e5
Display a more comprehensive status message for lint command
2018-05-26 12:30:01 +02:00
Maxime Coste
4effa577da
Merge branch 'patch-2' of git://github.com/co-dh/kakoune
2018-05-26 09:46:50 +10:00
Jan-Jaap Korpershoek
29c06b46e4
Add syntax highlighting for i3/sway config file
2018-05-24 21:47:45 +02:00
Delapouite
678085a685
Fix truncated message in lint.kak
2018-05-24 19:36:32 +02:00
Hao Deng
7276b182ea
save pane id instead of index
...
pane index '#P' will change when new pane added.
2018-05-23 22:13:37 -04:00
Alyssa Ross
08c948f52b
Insert spaces after line comment markers
...
Every other text editor I've ever used does this, and this makes Kakoune
consistent with how comments work in e.g. its own source code.
2018-05-22 12:24:54 +01:00
Maxime Coste
8c6af54db3
c-family.kak: Fix comment line continuation behaviour
...
Fixes #2043
2018-05-19 14:15:16 +10:00
Maxime Coste
1e3d941fdc
Merge remote-tracking branch 'h-3-0/add-toml'
2018-05-17 08:15:47 +10:00
Henri Jones
809f825e66
Add TOML v4.0.0 config
2018-05-16 23:00:05 +01:00
Maxime Coste
8e1646b702
c-family.kak: Remove unneeded itersel
...
itersel can get very expensive with many selections, it should only
be used when necessary.
2018-05-17 07:41:32 +10:00
Maxime Coste
b204e773d4
Do not push jumps implicitely in transient contexts
...
This should improve performance in draft contexts.
2018-05-14 08:23:00 +10:00
Maxime Coste
095ccfedb4
Merge remote-tracking branch 't6/patch-freebsd-tmux'
2018-05-09 23:03:13 +10:00
Maxime Coste
3c29bf1ea6
ctags.kak: Improve shell compatibility in ctags-funcinfo
2018-05-09 23:02:38 +10:00
gspia
bbd1fd6576
Comments for Idris
2018-05-04 10:22:17 +03:00
Tim Allen
7e124eef98
markdown.kak: backtick spans should be non-greedy.
...
Previously, due to a typo, Kakoune would highlight backtick spans from the first backtick to the last backtick in a paragraph, no matter how many backticks were in between. Now spans correctly stop at the first backtick after the opening backtick.
2018-05-02 13:54:45 +10:00
Maxime Coste
72bf881488
git-tools.kak: Remove not (yet) existing -with-hooks switch use
...
Fixes #2015
2018-04-27 19:44:58 +10:00
Maxime Coste
869736359a
Make all fifo cleanup hooks run always
...
Those should not get prevented from running just because the user
disabled hooks, they are important for cleanup.
2018-04-26 08:31:36 +10:00
Maxime Coste
f99f0020dc
Fix (again) C++ raw string highlighting
2018-04-25 21:19:04 +10:00
Tobias Kortkamp
bb124895b7
tmux-repl fails on FreeBSD and claims that tmux' version is too old
...
even though tmux 2.7 is installed.
The problem is that
```
expr "$(tmux -V)" : 'tmux \([0-9]*\|master\)'
```
fails on FreeBSD. It works fine with GNU expr.
Replace the expression with cut(1) and a simple parameter expansion
which should hopefully work fine on any POSIX system.
Signed-off-by: Tobias Kortkamp <git@tobik.me>
2018-04-24 20:16:32 +02:00
Maxime Coste
ee604fd863
Merge remote-tracking branch 'Delapouite/set-option' into master
2018-04-22 09:41:15 +10:00
Maxime Coste
4c5a3c1dff
git-tools.kak: improve completion support and no-message detection
2018-04-22 09:40:45 +10:00
Maxime Coste
fea6bc9524
c-family.kak: Fix highlighting of raw strings
2018-04-22 09:40:45 +10:00
Delapouite
9eb1bb4481
Docs: fix docstrings in rc files set-option
→ set
2018-04-19 19:28:32 +02:00
Maxime Coste
567c82840a
ruby.kak: Refactor end autoinsertion logic to be more robust
...
Fixes the bug described by PR #1994
2018-04-14 12:47:42 +10:00
Maxime Coste
57baad4afd
Make FaceRegistry scoped
...
set-face now takes a scope argument, and faces can be overridden on
a buffer or window basis.
colorscheme apply on global scope, which should be good enough for
now.
Fixes #1411
2018-04-07 16:27:50 +10:00
Maxime Coste
e6a9e14872
markdown.kak: Do not use regions for single/double ` spans
...
Using a region for them breaks any other regex based highlighter
we would want to apply on top of them.
Fixes #1870
2018-04-04 07:40:03 +10:00
Maxime Coste
510be03910
ctags.kak: Fix compatibility with OSX by using custom realpath implementation
2018-03-30 09:30:18 +11:00
Maxime Coste
8eee5500ea
Revert "Simplify comment-line command using trimming primitive"
...
This reverts commit e661fece72
.
2018-03-30 09:29:05 +11:00
Maxime Coste
4a2125f752
make.kak: Fix Ninja compatibility for directory entering messages
2018-03-30 09:18:06 +11:00
Delapouite
e661fece72
Simplify comment-line command using trimming primitive
2018-03-27 19:53:13 +02:00
Maxime Coste
e9e83cdb8d
Merge remote-tracking branch 'lenormf/fix-kakrc'
2018-03-26 07:47:59 +11:00
Maxime Coste
f236e837f4
Merge remote-tracking branch 'lenormf/fix-d'
2018-03-25 18:54:52 +11:00
Frank LENORMAND
66f99a3802
rc kakrc: Highlight boolean values
2018-03-25 10:27:12 +03:00
Frank LENORMAND
757e9de1c8
rc d: Improve D highlighting
2018-03-25 10:25:52 +03:00
Maxime Coste
2d85e94516
Fix uses of rotate selection in rc/ files
2018-03-25 11:45:27 +11:00
Maxime Coste
3fe93db610
Merge remote-tracking branch 'alyssais/patch-1'
2018-03-24 08:17:41 +11:00
Maxime Coste
3ae94d017d
iterm.kak: use command argument instead of sending text
...
Instead of starting the default shell and sending it text (hoping
it will support POSIX like shell syntax), just use the `env` utility
to set the correct environment and exec kakoune.
2018-03-24 08:06:36 +11:00
Alyssa Ross
7c0d10f458
ruby.kak: support squiggly heredocs
...
Squiggly heredocs were introduced in Ruby 2.3.
They work like `<<-` but strip indentation.
2018-03-23 13:42:48 +00:00
Maxime Coste
42404ddb3a
Merge remote-tracking branch 'Delapouite/kakrc'
2018-03-23 07:42:38 +11:00
Maxime Coste
c31b66f3a0
Merge git://github.com/gspia/kakoune
2018-03-23 07:42:12 +11:00
Maxime Coste
2139173d89
Merge remote-tracking branch 'bclinthall/jsBracketAlign'
2018-03-23 07:38:58 +11:00
Clint Hall
06cc993cd4
Fix javascript close bracket alignment
2018-03-22 12:31:43 -04:00
Delapouite
754a96eb3e
Add hl for declare-user-mode and enter-user-mode in kakrc.kak
2018-03-22 15:08:59 +01:00
gspia
056560131a
Add a space to haskell commment-line comment string.
2018-03-22 13:56:07 +02:00
Maxime Coste
796fbc6c1f
java.kak: Add some highlighted keywords and highlight annotations
2018-03-22 20:48:18 +11:00
Maxime Coste
f8e297acef
Merge remote-tracking branch 'topisani/master'
2018-03-22 07:49:49 +11:00
topisani
2682e3021d
[rc] Improve php.kak
...
- Added <?php and ?> tags, and highlight everything outside as html
- Highlight documentation comments and @fields
- Added basic string interpolation highlighting
2018-03-21 14:44:52 +01:00
Delapouite
d09256ec4c
Add extra_word_chars '-' to css.kak
2018-03-21 07:59:40 +01:00
Maxime Coste
b27d4afa8d
Regex: Only allow SyntaxCharacter and - to be escaped in a character class
...
Letting any character to be escaped is error prone as it looks like
\l could mean [:lower:] (as it used to with boost) when it only means
literal l.
Fix the haskell.kak file as well.
Fixes #1945
2018-03-20 04:57:47 +11:00
Dan Rosén
6fdb9db5d9
Improve JS/TS highlighter slightly
2018-03-19 11:31:38 +01:00
Marc
b3cc80126a
Remove unused var in racer support
2018-03-18 10:46:46 +00:00
Marc
484164580e
CARGO_HOME to identify racer dependencies
2018-03-17 20:27:11 +00:00
Marc
ee7cab82b4
Make racer support scripts more POSIX compliant
2018-03-16 12:25:17 +00:00
Maxime Coste
ebd47d538b
Merge remote-tracking branch 'marcesquerra/racer-extra-commands'
2018-03-16 15:17:11 +11:00
Marc
898dfea8a1
racer-go-definition forces readonly on files external to the project
2018-03-15 20:37:27 +00:00
Maxime Coste
8479b33861
Merge remote-tracking branch 'Screwtapello/more-markdown-highlighting-improvements'
2018-03-15 23:23:44 +11:00
Tim Allen
0a4a9f1c3d
Markdown inline formatting should not span paragraphs.
...
Previously, two underscore characters in a document would mark the entire
space between them as italic, no matter how far apart. Now we only accept a
single consecutive newline within an inline-formatted span, so hard-wrapped
documents will still format nicely but stray characters won't mess up your
entire document.
Note that the highlighter for backtick-enclosed spans was modified,
even though it's redundant with the code-block highlighting introduced
in 5bc62c694
.
2018-03-15 18:26:20 +11:00
Tim Allen
78f1e1ca98
Highlight footnote-style hyperlinks.
...
As well as the traditional `[text](url)` syntax, Markdown allows the text to
be followed by a tag in square brackets. If the text is followed by nothing
at all, then the tag for that link is the text itself. The actual URL
is supplied later in the document, like a footnote at the bottom of the page:
Some text with [a link][tag] and [another link].
[tag]: http://www.example.com/link1
[another link]: http://www.example.com/link2
This adds the "link" face to the URL in such footnote lines.
2018-03-15 18:16:47 +11:00
Alex Leferry 2
1ede2b89bb
Add application media-type to file-type detection
2018-03-14 17:04:03 +01:00
Marc
2bf8941d99
Clean racer support functions
2018-03-14 15:56:25 +00:00
Marc
2f41fdb683
Tweak the bash code on the racer support
2018-03-13 13:52:09 +00:00
Marc
67ce6946d2
Add jumpToDefinition and showDoc support for rust (with racer)
2018-03-12 12:47:47 +00:00
Delapouite
e46251db69
Add ctagscmd option
...
Fixes #1611
2018-03-11 15:13:19 +01:00
Maxime Coste
c6c501eb5b
asciidoc.kak: Fix highlighting of _itallic_ markup
...
`_` is a word character, so the regex cannot be exactly the same
as for `*`.
2018-03-05 11:20:56 +11:00
Maxime Coste
56e005e996
Merge remote-tracking branch 'marcesquerra/racer-fix-for-mac'
2018-03-05 07:41:18 +11:00
Marc
2ef1ac0b3b
Fix racer complation on Mac
2018-03-04 20:14:53 +00:00
Maxime Coste
e4e2ed2a42
Merge remote-tracking branch 'fsub/arch-linux'
2018-03-05 00:39:37 +11:00
Maxime Coste
8acedacf7c
Merge remote-tracking branch 'marcesquerra/racer-tweaks'
2018-03-04 10:59:31 +11:00
Maxime Coste
65258934d3
lua.kak: Rework 'end' auto insertion logic
...
Fixes #1525
2018-03-04 10:36:32 +11:00
fsub
e583b9a258
Fix #1838 : Introduce 'arch-linux.kak'
2018-03-03 19:59:54 +01:00
Maxime Coste
5c247bf1dd
c-family.kak: Do not mistake '\"' for a double quoted string start
...
Fixes #1893
2018-03-01 14:01:09 +11:00
Maxime Coste
3e50d39f8e
comment.kak: recognize xml files
2018-02-28 15:07:25 +11:00
Marc
f6a3fd2e4e
Unify racer code completion format
...
Makes all the suggestions on the completion menu have the same format:
{type}{suggestedWord}{extra description}
the type column is aligned to 6 characters wide (and aligned to the right),
to allow the suggestion to be easily visually detectable and, as a bonus,
the type too.
For example, a bit of menu would look like this:
fn stdout() -> Stdout
trait BufRead: Read
struct BufReader<R>
Type is one of the following:
- fn
- enum
- mod
- trait
- struct
It also trims the module extra bits to only 30 characters long (it can be a lot longer than that)
2018-02-26 13:07:41 +00:00
Marc
d79e680e71
Remove trailing ':' from racer execution
...
When AWK processes the racer response, it adds a trailing ':' that
kakoune completion expects to lead to a row having an 'a|b|c' shape,
but it's empty instead. Removing the extra ':' allows the racer
complation to actually work.
2018-02-26 12:24:12 +00:00
Maxime Coste
4d11bb20c3
Always collapse jumps in exec/eval, remove -collapse-jumps switch
...
There does not seem to be any reasonable use cases of not collapsing
jumps when the input is not comming from the user. Always collapse
them.
It could make sense to move jump collapsing out of context_wrap as
in general any action not comming directly from the user should
collapse them, at the moment a comment or mapping will not collapse
jumps, which is unfortunate.
2018-02-24 19:02:15 +11:00
Maxime Coste
e93c31ff0d
doc.kak: stricter parsing of formatted text
...
Format markers such as *, _ or ` must be followed/preceeded by a non
whitespace character to be considered formatting marker.
2018-02-22 22:22:13 +11:00
Maxime Coste
026cf8af3a
doc.kak: fix handling of lines begining with * or -
...
Those were considered as any other lines for paragraph joining,
threat them as a new paragraph start, to correctly handle asciidoc
lists.
2018-02-22 22:09:00 +11:00
Maxime Coste
9b5b974397
iterm.kak: Implement focus support
2018-02-20 20:56:06 +11:00
Maxime Coste
9755f7f8f2
make.kak: Fix echoing of error message when jumping
...
The use of `%{...%reg{...}}` was not being expanded correctly, as
the enclosing %{...} prevents the internal %expand{...} from being
considered.
The introduction of an additional command allows us to bypass
quoting hell as the expansion of %reg{5} could contain arbitrary
text.
2018-02-19 21:43:43 +11:00
Maxime Coste
cbf11d7a07
nim.kak: Fix wrong tr invocation
2018-02-19 21:24:36 +11:00
Maxime Coste
4f75358ce3
lua.kak: Fix string highlighting with -match-capture regions
...
With the introduction of -match-capture for the lua region highlighter,
the string closing regex had spurious captures that were not going to
match.
Fixes #1850
2018-02-18 16:21:05 +11:00
Maxime Coste
f8861734cf
rc/: Replace simple uses of sed with tr
2018-02-18 15:00:30 +11:00
Maxime Coste
82c8a6e9dd
Merge remote-tracking branch 'alexherbo2/rc-ruby'
2018-02-18 11:36:42 +11:00
Alex Leferry 2
04b57539e8
Recognize .gemspec files as Ruby
2018-02-18 00:49:09 +01:00
Frank LENORMAND
f25e8640b8
base javascript: Tweak variable highlighting
...
This commit avoids false positives when highlighting literals such as
`$window`, which is a regular variable but still highlighted as a
special value.
Special highlighting of variables that start with a dollar sign `$`
was also removed, as not all variables start with a dollar sign,
and we don't have a reliable way yet to detect variables.
2018-02-17 11:53:56 +03:00
Maxime Coste
f5e39972eb
Merge remote-tracking branch 'jacobdufault/lua-better-strings'
2018-02-15 23:35:01 +11:00
Jacob Dufault
42f78dfac3
Highlight nested == comments/strings in lua.
...
For example,
[==[ string ]==]
2018-02-11 22:23:49 -08:00
Maxime Coste
d95530b171
lint.kak: Update lint info when the linting data changed
...
Fixes #1836
2018-02-11 22:03:24 +11:00
Maxime Coste
c939c30135
ocaml.kak: remove invalid unset-option static_words hook
...
unsetting static_words whenever any buffer filetype is set to non ocaml
is wrong, it breaks static_words for every filetype whose filetype hook
run before the ocaml ones.
2018-02-11 21:51:32 +11:00
Maxime Coste
01259bf22c
Merge remote-tracking branch 'MilanVasko/lua-comment-fix'
2018-02-11 19:10:24 +11:00
Milan Vaško
128e0f53ff
Fixed Lua block comment highlighting
...
Block comments in Lua were broken, apparently due to the opening
sequence being interpreted as a line comment. Changing the order in the
highlighter seems to fix this issue.
2018-02-10 13:40:48 +01:00
Alex Leferry 2
39c0c03351
Highlight Ruby control access keywords
2018-02-08 13:34:40 +01:00
Maxime Coste
fb07e2cfcf
clang.kak: workaround OSX awk strange parsing of bracket expressions
...
For some reason `[[:alnum:]{}_]` does not match `{` when
`[{}_[:alnum:]]` does
2018-02-07 19:40:45 +11:00
Dan Rosén
3ac328c1f7
Highlight JSX
...
Additionally merges the javascript and typescript highlighters.
Fixes #1700
2018-02-04 08:31:03 +01:00
Maxime Coste
9883cf5f75
Merge remote-tracking branch 'nochiel/nochiel-fix-tmux-repl'
2018-02-04 09:33:52 +11:00
Daniel Lewan
bc876fa4b6
add justfiles support
2018-02-03 14:43:20 +01:00
Nicholas Ochiel
ca8cbf316c
Check if tmux was compiled from master.
...
Fixes #1827 .
2018-02-03 01:14:25 +03:00
Maxime Coste
cfa497362c
Merge remote-tracking branch 'alexherbo2/rc-javascript'
2018-01-31 09:39:40 +11:00
Alex Leferry 2
6fe8b9eb70
Highlight JavaScript static keywords
2018-01-30 19:19:12 +01:00
Jimmy Thrasher
7bf235b0ee
Add heredoc support for ruby.kak
2018-01-26 07:56:36 -05:00
Maxime Coste
43f50c0852
Convert bundled scripts to ModeChange hook
2018-01-21 10:35:05 +11:00
Dan Rosén
a612432c8d
Highlight python operators
2018-01-07 23:36:41 +01:00
Dan Rosén
40aaf63338
Highlight python doctests in docstrings
2018-01-07 23:36:41 +01:00
Maxime Coste
4740dbf9fa
doc.kak: Fix anchor name completion
2017-12-29 09:37:04 +11:00
Dan Rosén
969f416027
Generate the markdown highlighter code
2017-12-13 07:27:45 +01:00
Maxime Coste
cb2ff7eb5f
Merge remote-tracking branch 'danr/fence'
2017-12-12 17:57:26 +11:00
Maxime Coste
593a75acbe
Merge remote-tracking branch 'lenormf/fix-pony'
2017-12-12 17:55:18 +11:00
Maxime Coste
82b7f462dc
Merge remote-tracking branch 'SolitudeSF/nim'
2017-12-12 17:55:02 +11:00
Frank LENORMAND
996168f504
rc pony: Remove hardcoded indentation settings
2017-12-11 18:27:28 +03:00
SolitudeSF
8ae8e7b31a
Removed indentation settings
2017-12-11 10:26:06 +02:00
Dan Rosén
5bc62c6942
Fix highlight references in Markdown fenced code blocks
...
Fixes #1735
We need \K to not interfer with languages own interpretation of ` like multiline strings in javascript
We need \b in e.g. java\b otherwise it blocks javascript
I couldn't get the bare ``` to not block the other highlighters when introducing \K any other way than negative lookahead of all possible highlighers
2017-12-10 23:00:26 +01:00
Maxime Coste
62f47b780b
Merge branch 'fix-haskell-variables-regression' of git://github.com/bitonic/kakoune
2017-12-11 08:54:23 +11:00
Maxime Coste
d494b9de34
Merge remote-tracking branch 'SolitudeSF/nim'
2017-12-11 08:48:50 +11:00
Francesco Mazzoli
fa61d7aac0
fix regression in highlighting of qualified Haskell variables
...
Commit 870d2d22d7
introduced a regression
in the highlighting of qualified Haskell variables, such as `Foo.bar`.
After that commit `Fo` was highlighted as a constructor (note, not
`Foo`, just `Fo` without the trailing `o`). This restores the original
behavior.
2017-12-10 21:04:03 +01:00
Maxime Coste
19556d5fbe
Merge remote-tracking branch 'Geemili/fix-inline-markdown'
2017-12-10 10:18:51 +11:00
Maxime Coste
9071e2a6bf
Merge remote-tracking branch 'Geemili/feature-restructuredtext'
2017-12-10 10:18:23 +11:00
SolitudeSF
6eabec908e
Expand nim support
2017-12-09 23:02:59 +02:00
LeRoyce Pearson
4f069edca6
Add reStructuredText support script
...
- headers
- bold emphasis
- regular emphasis
- code highlighting
- inline literals
2017-12-09 14:15:00 -06:00
LeRoyce Pearson
3acf3aa5a2
Fix overlapping inline markup
...
Make it some some text like "**bold**" wil not be marked as italic and bold.
2017-12-08 16:04:43 -06:00
Maxime Coste
2f9deaf067
Merge remote-tracking branch 'nochiel/nochiel-screen'
2017-12-07 19:54:11 +08:00
Maxime Coste
7072e65a28
Merge remote-tracking branch 'danr/typescript-comment'
2017-12-07 10:46:26 +08:00
Dan Rosén
fbe312e0d0
Add typescript to comment.kak
2017-12-06 20:50:05 +01:00
Maxime Coste
1b44056fce
man.kak: Better support for renaming a man buffer
...
Fixes #1718
2017-12-06 14:49:38 +08:00
Maxime Coste
a9f1a23f35
man.kak: use shell-candidates instead of shell-completions
2017-12-06 14:10:10 +08:00
Maxime Coste
363a0c3a0d
man.kak: Fix behaviour when called with no params with Posix shells
...
Seems dash nevers falls back for ${@-$blah}, it does not considers $@
to be empty. Use ${1-$blah} instead as we never have more than one
parameter.
2017-12-06 13:23:39 +08:00
Frank LENORMAND
e5742fd6b1
- Fix: proper escaping of kak_{session, client}
2017-12-06 02:30:42 +03:00
Nicholas Ochiel
494d046fb2
* Integrate ranger with GNU Screen.
...
- Ensure ranger opens with the currently focused client tty if multiple screen clients are connected to the same session.
- Ensure args are passed to ranger correctly.
- Ensure command-line args are passed to ranger correctly. (Only strict long format works e.g. `ranger --cmd="echo foo"`)
- Change the current directory because `screen -X` uses screen's cwd not kakoune's.
- Use heredoc to make escaping and quoting easier to debug and slightly less unpredictable.
- Use ranger's `--choosefiles` option instead of mapping keys and having to do multiple levels of escaping and quoting of args esp. command-line args which were unusable in `screen -X eval`.
- Remove screen region when user quits ranger.
2017-12-06 02:29:40 +03:00
Nicholas Ochiel
908e0c1f8c
* Crude implementation of focus: use the current region to switch to the desired window.
...
- The proper way to do this would be to switch focus to the target client's region but GNU Screen offers no obvious way to do that.
- Remove screen region after client is closed.
- Assumed: Kak server runs in screen.
2017-12-03 20:05:02 +03:00
Maxime Coste
23fdb914bf
Merge remote-tracking branch 'lenormf/fix-dockerfile'
2017-12-03 18:13:39 +08:00
Maxime Coste
c83f7d5b1e
Merge remote-tracking branch 'lenormf/nim-support'
2017-12-03 18:13:30 +08:00
Maxime Coste
35d2b2b4bc
c-family.kak: Use regex custom text object to simplify some indent
2017-12-03 17:48:04 +08:00
Maxime Coste
1a38849086
c-family.kak: indent after parenthesis at end of line
2017-12-03 17:47:44 +08:00
Frank LENORMAND
f3238f4e65
rc dockerfile: Remove a left-over debug instruction
2017-12-01 17:12:41 +03:00
Maxime Coste
e9e3dc862c
Merge git://github.com/valerdi/kakoune
2017-12-01 16:40:31 +08:00
Maxime Coste
90c91ca3a2
Merge remote-tracking branch 'lenormf/fix-dockerfile'
2017-12-01 16:39:50 +08:00
valerdi
4d4c6aa82b
added AbstractString to keywords
2017-11-30 15:44:12 +01:00
Frank LENORMAND
e102251880
rc: Implement basic Nim support
2017-11-29 19:15:00 +03:00
Maxime Coste
74b0c98769
Merge remote-tracking branch 'occivink/comment'
2017-11-24 16:29:30 +08:00
Olivier Perret
ee117b9499
set registers directly instead of expanding options in exec
2017-11-23 10:30:10 +01:00
Frank LENORMAND
58ccf6b295
rc python: Highlight built-in exceptions
2017-11-18 11:56:47 +03:00
Maxime Coste
386f595a49
screen.kak: use define-command
full name instead of def
alias
2017-11-16 12:56:42 +08:00
Maxime Coste
281890ea7a
Merge remote-tracking branch 'nochiel/nochiel-screen'
2017-11-16 12:56:09 +08:00
Nicholas Ochiel
133fcb0ce4
code review: typos.
2017-11-15 17:42:37 +03:00
Nicholas Ochiel
d9a574acd5
Integration with GNU screen; based on tmux.kak
...
- Hack: kak sets `/proc/self/fd/0 -> /dev/null`. Get the client process tty because Screen needs to know the controlling terminal. Else Screen will use the last known tty and will open new windows on a different terminal if one is connected.
2017-11-15 06:10:26 +03:00
Maxime Coste
77b0ee1e19
Merge remote-tracking branch 'lenormf/extend-python-highlighters'
2017-11-14 18:08:27 +08:00
Frank LENORMAND
105d7a1276
rc python: Extend highlighted keywords and numbers
2017-11-14 12:50:20 +03:00
Maxime Coste
2ab9f65b36
c-family.kak: Use <a-S> in various auto indent hooks
2017-11-14 13:32:46 +08:00
Maxime Coste
9c964e97f0
c-family.kak: Highlight character literals later
...
That way it overrides integer literal highlighters in the case where
they conflict.
2017-11-14 11:45:30 +08:00
fsub
ee695ecf95
c-familiy.kak: improve highlighting of C++ literals
2017-11-12 18:16:20 +01:00
Maxime Coste
add7f7e76b
Revert "c-family.kak: Remove invalid 'compl' keyword from C++ highlight"
...
This reverts commit f8dee65d6e
.
compl is actually the alternate keyword for `~`.
2017-11-11 09:54:32 +08:00
Maxime Coste
f8dee65d6e
c-family.kak: Remove invalid 'compl' keyword from C++ highlight
2017-11-09 10:43:46 +08:00
Maxime Coste
5791632a98
c-family.kak: use space separated words list
2017-11-09 10:25:03 +08:00
Maxime Coste
a131edb9b3
Merge remote-tracking branch 'fsub/c-family'
2017-11-09 10:09:58 +08:00
Maxime Coste
8aa35c0724
doc.kak: Use a github compatible anchor generation
...
Convert session names to lowercase and replace spaces with minus
to generate anchor names.
2017-11-08 20:15:46 +08:00
Maxime Coste
b8fdcff7b0
doc.kak: anchor/section completion support
2017-11-08 17:20:37 +08:00
Maxime Coste
b63f16e7a2
doc.kak: Support anchors and internal links
...
Underline links, support jumping to a specific anchor either in
the current page or another one, use those new features in some
pages.
2017-11-08 16:32:49 +08:00
Maxime Coste
d6b5240bdf
doc.kak: Remove unused lines
2017-11-06 20:53:50 +08:00
Maxime Coste
73182de20c
doc.kak: Support jumping on links using <ret>
2017-11-06 20:52:24 +08:00
Maxime Coste
19cda837ff
doc.kak: Simplify completion script
2017-11-06 20:47:12 +08:00
Delapouite
29e2a73638
Fix lint.kak evaluate-commands → eval
2017-11-06 10:51:55 +01:00
fsub
db15f7adc5
c-family.kak: Add missing C++ keywords, attributes, and types
2017-11-05 10:11:59 +01:00
fsub
1ad83745c2
c-family.kak: Sort keywords, attributes, values, and decorators
2017-11-05 10:11:59 +01:00
Maxime Coste
b5de3064e0
Merge remote-tracking branch 'lenormf/fix-tupfile'
2017-11-05 12:22:18 +08:00
Tim Allen
f9351d65eb
rust.kak: Support Rust's documentation comments.
...
As well as ordinary `//` line-comments, Rust regards `///` comments
as documentation applying to the following item, and `//!` comments as
documentation applying to the enclosing item, so we should copy those
to new lines, too.
2017-11-04 21:54:48 +11:00
Frank LENORMAND
61ab3a1d26
rc: Fix Tupfile
highlighting
2017-11-04 10:56:20 +03:00
Frank LENORMAND
ff557a0cf0
rc: Simplify Dockerfile support, highlight values and additional keywords
2017-11-04 10:45:58 +03:00