Maxime Coste
822225cbbb
Merge remote-tracking branch 'lenormf/fix-tupfile'
2017-07-08 13:39:22 +09:00
Frank LENORMAND
50b635ce2d
rc c-family: Add a hook to the insert group
2017-06-29 13:29:48 +03:00
Frank LENORMAND
a2be15801f
rc tupfile: Fix the keywords regex
2017-06-29 13:13:01 +03:00
Delapouite
a932b6b21e
Add error message when using format command with no formatcmd specified
2017-06-26 22:10:04 +02:00
Maxime Coste
f41d78083a
Use the extra_word_chars option in word based normal commands
...
the completion_extra_word_chars is now gone, superseeded by
extra_word_chars that gets used both for completion and for normal mode.
Fixes #1304
2017-06-26 15:28:41 +01:00
Frank LENORMAND
6376aa6206
rc formatter: Make sure the formatter returned successfully
...
The previous implementation used to replace the contents of the buffer with
whatever the `formatcmd` was returning, regardless of the exit code of the
command, which led to the buffer being wiped out on error.
This commit does the formatting in a temporary file, and only replaces the
current buffer with the contents of the -formatted- temporary file if the
`formatcmd` returned successfully.
Fixes #1357
2017-06-23 15:12:23 +03:00
Maxime Coste
45ac100c21
Merge remote-tracking branch 'lenormf/fix-ctags-command-names'
2017-06-23 10:22:15 +01:00
Maxime Coste
d9edd3f013
Merge remote-tracking branch 'dianne/string-highlighter-fix'
2017-06-21 16:56:06 +01:00
Dianne Wagner
57cb2d0682
apply '"' highlighting fix to haskell as well
2017-06-18 19:18:14 -07:00
Dianne Wagner
3ae0d86b27
rust highlighter: '"' is not the start of a string
...
this uses the string opening regex from the c-family highlighter to prevent
highlighting the rest of the file as a string on encountering the character
literal '"'
2017-06-18 18:39:45 -07:00
Alex Leferry 2
585778057f
Update command names
2017-06-16 13:53:03 +02:00
Frank LENORMAND
cb9a2e562b
rc: Fix calls to mktemp
...
The GNU and BSD implementations differ on several points, this commit
hopefully finds a middle ground.
2017-06-16 11:51:46 +03:00
Frank LENORMAND
9a10d79ae8
rc ctags: Make commands follow the naming convention
2017-06-15 15:40:15 +03:00
Maxime Coste
e73cd78288
Fix corner case in C family indenting
2017-06-13 10:19:38 +01:00
Maxime Coste
398b2b115c
Merge remote-tracking branch 'lenormf/fix-tmpdir-modules'
2017-06-12 05:06:14 +01:00
Frank LENORMAND
d113d5232a
rc jedi: Don't create an unused debug/log file
2017-06-09 14:30:58 +03:00
Frank LENORMAND
813d09a101
rc: Fix calls to mktemp
...
Allow `mktemp` to make use of the `TMPDIR` environment variable when
calling it with a template.
Don't use the deprecated `-t` flag.
2017-06-09 14:30:54 +03:00
Alex Leferry 2
105b35192f
Add Alacritty
2017-06-08 19:02:44 +02:00
Maxime Coste
81118552c8
Fix missing hook removal command in c-family.kak
2017-06-07 12:44:00 +01:00
Frank LENORMAND
8794687f36
Revert "doc: Fix the documentation of the alt_dirs
option"
...
This reverts commit ef88b28392
.
2017-06-04 11:24:10 +03:00
Frank LENORMAND
ef88b28392
doc: Fix the documentation of the alt_dirs
option
2017-06-03 21:49:10 +03:00
Maxime Coste
d8a90ad5d3
Merge remote-tracking branch 'danr/Remove-ad-hoc-rules-in-kakrc-highlighter'
2017-06-03 15:16:49 +01:00
Maxime Coste
f3f6ac9e8a
Merge remote-tracking branch 'danr/Improve-kakrc-highlighter-with-more-static-words'
2017-06-03 15:16:14 +01:00
Maxime Coste
5b66be26f6
Merge remote-tracking branch 'Delapouite/svg'
2017-06-03 14:44:55 +01:00
Maxime Coste
9d71be769b
Rename _grep_current_line option to grep_current_line
2017-06-03 14:04:06 +01:00
Delapouite
2acdafa325
Add SVG detection as xml in file.kak
2017-06-02 15:43:51 +02:00
Maxime Coste
d8cc50ed79
man.kak: Rename _manpage option to manpage
2017-05-27 07:40:47 +01:00
Maxime Coste
ad154e7bb7
Highlight non numeric man sections as well in man.kak
2017-05-27 07:34:35 +01:00
Maxime Coste
0b592c5641
Slight style tweak in doc.kak
2017-05-27 06:14:01 +01:00
Maxime Coste
ca38e10314
Make shell variable expansion in "strings" highlighted the same way as in code
2017-05-25 19:54:08 +01:00
Maxime Coste
f2f04d55fc
Make the lint_errors a range-specs option in lint.kak
...
lint_errors are now maintained up to date with buffer changes.
2017-05-25 19:54:08 +01:00
Maxime Coste
26298e8f7b
Use a line-specs for the clang_errors option in clang.kak
...
That way, we can have it updated when the buffer changes, and get
diagnostics on the correct lines.
2017-05-25 19:54:08 +01:00
Maxime Coste
a84d7cf06b
Add break and continue to the list of sh keywords
2017-05-25 19:54:08 +01:00
Maxime Coste
3e4e4f6210
Add support for raw C++ strings in c-family highlighting
2017-05-25 06:51:39 +01:00
Maxime Coste
c4db46b58b
Rename line-flags option type to line-specs
...
Generalize this option type, which is a timestamped list of
<line number>|<arbitrary string>. That way this type is not strongly
coupled with the flag-lines highlighter, and can be reused for other
use cases.
2017-05-24 15:41:43 +01:00
Maxime Coste
a0e63fbe93
Fix man.kak when man pages filenames just end up with the manual section
2017-05-23 13:59:31 +01:00
Maxime Coste
2f9b77b748
Smarter align to opening parenthesis/brace supporting multiline
2017-05-21 22:31:05 +01:00
Maxime Coste
c6508ee101
Merge remote-tracking branch 'lenormf/doc-public-options'
2017-05-21 07:09:37 +01:00
Maxime Coste
e43e44f9cc
Commit correct version of c-family indent change
2017-05-21 07:08:20 +01:00
Maxime Coste
cab0adaa53
Support aligning to opening { as well as ( in c-family indent
2017-05-20 11:08:13 +01:00
Maxime Coste
55d1d1020d
Merge remote-tracking branch 'lenormf/rc-misc-fixes'
2017-05-19 21:53:02 +01:00
Maxime Coste
803895d581
Merge remote-tracking branch 'danr/Highlight-object-keys-in-yaml'
2017-05-19 21:37:31 +01:00
Maxime Coste
be8692bcdb
Merge remote-tracking branch 'danr/Fix-reference-to-kakrc-highlighter-for-markdown'
2017-05-19 21:34:45 +01:00
Maxime Coste
32b415d87d
Merge remote-tracking branch 'danr/Add-some-missing-languages-to-comment.kak'
2017-05-19 21:34:27 +01:00
Maxime Coste
eec8239c78
Highlight 'copied' file action in git-commit buffers
2017-05-17 20:19:56 +01:00
Maxime Coste
dfaafcd49a
Rename range-faces to range-specs
...
range-faces are now used to replace-range highlighters, where the string
part is not interpretted as a face but as a display line, so the name was
not relevant anymore.
2017-05-17 19:40:52 +01:00
Frank LENORMAND
d59bafa2c1
rc: Simplify and optimize the alt
command
2017-05-16 18:20:19 +03:00
Frank LENORMAND
56837eaece
rc: Use POSIX command -v
instead of which
2017-05-16 18:20:19 +03:00
Frank LENORMAND
b9cdccd53a
rc: Document non-hidden options with -docstring
2017-05-16 14:35:43 +03:00
Dan Rosén
736720f31a
Highlight object keys in yaml
2017-05-16 09:30:01 +02:00
Dan Rosén
4f7f7edea0
Add some missing languages to comment.kak
2017-05-16 09:21:30 +02:00
Dan Rosén
5f97117ab4
Remove ad-hoc rules in kakrc highlighter
...
These are less useful with more static words, and they are
woefully incomplete: no support -docstring for map, set
uses the variable face, but there is no corresponding
highlighter for decl or %opt{..}.
2017-05-15 21:58:57 +02:00
Dan Rosén
1e4958353a
Improve kakrc highlighter with more static words
2017-05-15 21:58:57 +02:00
Dan Rosén
80570a0dc7
Fix reference to kakrc highlighter for markdown
2017-05-15 21:58:57 +02:00
Vincent Siliakus
812af8c886
Use only default faces
2017-05-11 18:40:07 +02:00
Vincent Siliakus
848de57f20
Add Elixir highlighter
2017-05-06 08:19:57 +02:00
Frank LENORMAND
9f62c1a552
rc: Use $SHELL instead of spawning bash
arbitrarily
2017-04-30 13:38:32 +03:00
Frank LENORMAND
9a138af17f
rc: Properly modify tmux
's environment with env
2017-04-17 22:55:37 +03:00
Maxime Coste
1f74ca1a4f
Merge remote-tracking branch 'lenormf/fix-iterm2'
2017-04-10 20:24:48 +01:00
Frank LENORMAND
a244c10167
rc: Forward $TMPDIR to iterm
subprocesses
2017-04-10 22:17:59 +03:00
Frank LENORMAND
b6d055a87b
rc: Export $TMPDIR to new tmux
processes
...
`tmux` will start new processes (e.g. when creating panes or windows)
with the same environment it was started with, which means that if the
$TMPDIR variable was overriden for the kakoune server from within
`tmux`, newly created panes/windows won't have access to the server
socket to sustain a session.
This commit fixes the issue by always exporting the $TMPDIR variable
from the parent `tmux` environment to the new processes.
Fixes #1319
2017-04-09 09:20:25 +03:00
Alex Leferry 2
08c4fac07f
rc/ranger: use $kak_hook_param_capture_N
2017-04-01 22:46:31 +02:00
Maxime Coste
fa7f29a120
spell.kak: preserve spelling language from :spell in :spell-replace
2017-03-28 08:32:21 +01:00
Maxime Coste
b9317ba38c
Change lint.kak column display to put it at the end
2017-03-10 12:41:01 +00:00
Maxime Coste
e888dae787
Merge remote-tracking branch 'kurkale6ka/lint_cols'
2017-03-10 12:28:17 +00:00
Maxime Coste
a0b42323ed
Add a -debug flag to :edit to set the buffer as debug data
...
As for the *debug* buffer, buffers with the debug flag wont get
used for cycling through buffer, or word completion.
2017-03-08 19:33:25 +00:00
Martin Chaine
b5a9979bfb
also handle enums explicitly
2017-03-07 09:55:22 +01:00
Martin Chaine
b5f6a9b227
escape pipe from closure in the description
2017-03-06 22:30:59 +01:00
Delapouite
cdb076603c
Add Symbol, async and await highlighting for javascript.kak
2017-03-05 19:25:15 +01:00
Maxime Coste
bdb3da6b36
Merge remote-tracking branch 'casimir/patch-1'
2017-03-03 21:33:20 +00:00
Maxime Coste
a0c301ac42
Merge remote-tracking branch 'lenormf/fix-autorestore'
2017-03-03 21:13:53 +00:00
Maxime Coste
7d07064a41
Merge remote-tracking branch 'alexherbo2/rc-ocaml'
2017-03-03 21:11:06 +00:00
Maxime Coste
96625fc7ae
Merge remote-tracking branch 'alexherbo2/rc-ruby'
2017-03-03 21:11:00 +00:00
Frank LENORMAND
947b518f03
rc: add a spell-next
command
2017-03-01 22:16:28 +03:00
Frank LENORMAND
4ba7c7a2c4
rc: POSIX and cosmetic fixes in the spell
script`
2017-03-01 16:14:02 +03:00
Martin Chaine
d232064a0b
add racer completion for rust
2017-03-01 13:11:35 +01:00
Frank LENORMAND
0fd41540d1
rc: Don't print errors when no buffer backup exist
2017-03-01 14:55:29 +03:00
Alex Leferry 2
63f9f9bbc9
highlight hash access symbols
2017-02-28 09:48:17 +01:00
Alex Leferry 2
c0e402c06f
add rc/ocaml.kak
2017-02-27 22:05:27 +01:00
Maxime Coste
72bea292f8
Merge remote-tracking branch 'lenormf/fix-autorestore'
2017-02-27 20:15:25 +00:00
Frank LENORMAND
5f5706eda3
rc: POSIXify the modeline.kak
script
...
Fixes #893
2017-02-26 10:27:56 +03:00
Frank LENORMAND
c379c5cbdc
rc: Simplify/POSIXify the autorestore.kak
script
...
This commit allows buffers that were not previously written to disk to
be restored if a backup has been generated in their name. Consequently,
we got rid of a few non-POSIX calls to `find` (using `-maxdepth` or
`-delete`), and of the logic that detected the newest backup (which
didn't seem a good reason enough to steer away from a portable command).
Fixes #1236
2017-02-24 14:48:49 +03:00
Maxime Coste
964252d396
Merge remote-tracking branch 'omar-polo/master'
2017-02-22 09:43:03 +00:00
Omar Polo
129424daea
improved haskell comment regex
2017-02-21 21:26:05 +01:00
Maxime Coste
186eed0906
jedi.kak: python 3 compat fix
2017-02-20 20:13:48 +00:00
Maxime Coste
edc2a88643
Rename BufNew and BufOpen hooks to BufNewFile and BufOpenFile
...
Fixes #1225
2017-02-19 13:08:06 +00:00
Maxime Coste
b456de78a7
pony.kak: Remove redundant BufNew/BufOpen hooks
...
BufCreate will be called in any case.
2017-02-19 13:04:19 +00:00
Maxime Coste
55bd3b7949
Merge remote-tracking branch 'tmiller/add-elm-support'
2017-02-13 20:28:29 +00:00
Maxime Coste
14fa89e642
Merge remote-tracking branch 'lenormf/fix-doc-ansi-sequences'
2017-02-13 20:27:38 +00:00
Maxime Coste
f7d794d047
Merge remote-tracking branch 'nicholastmosher/faces'
2017-02-13 20:25:41 +00:00
Maxime Coste
5b1229709d
Fix make.kak handling of 'Entering directory' and absolute paths
...
Fixes #1212
2017-02-13 13:52:51 +00:00
Tom Miller
ec77784d98
Add elm language support
...
Using Haskell's language file as a starting point this add support for
Elm.
2017-02-13 07:52:01 -06:00
Frank LENORMAND
0532251aaf
Make sure no ANSI sequences are in the data returned by man
...
The Debian implementation of `man-db` does not strip ANSI sequences out
of the file, even though the documentation says it would do so. The
commit that originally closed this issue wasn't related to the problem
experienced, this one hopefully addresses it.
This commit also addresses an issue with the `-i` flag in BSD `sed`
which expects an argument (the GNU implementation doesn't).
Fixes #1098
2017-02-10 13:30:06 +03:00
Nick Mosher
e1927fa9c4
Adds faces module and function. Renames identifier face to variable.
2017-02-09 21:43:29 -05:00
Alex Leferry 2
d029af86af
fix regex highlighting
2017-02-09 23:00:36 +01:00
Maxime Coste
033ded15ae
Add proper heredoc highlighting support to sh.kak
2017-02-06 23:00:20 +00:00
Maxime Coste
f3feecbe15
Merge remote-tracking branch 'alexherbo2/rc-scss'
2017-02-03 13:46:27 +00:00
Maxime Coste
99b7d83ca3
Highlight c-family include paths as identifiers
2017-02-03 13:35:45 +00:00
Alex Leferry 2
1fecb99a4d
support in-line comments
2017-02-01 13:56:24 +01:00
Maxime Coste
6e39e8371a
Improve POSIX sed compatibility in lint.kak
...
Fixes #1072
2017-01-31 22:42:43 +00:00