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
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
Maxime Coste
e73cd78288
Fix corner case in C family indenting
2017-06-13 10:19:38 +01: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
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
9d71be769b
Rename _grep_current_line option to grep_current_line
2017-06-03 14:04:06 +01: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
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
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
Frank LENORMAND
d59bafa2c1
rc: Simplify and optimize the alt
command
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
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
Maxime Coste
edc2a88643
Rename BufNew and BufOpen hooks to BufNewFile and BufOpenFile
...
Fixes #1225
2017-02-19 13:08:06 +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
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
Maxime Coste
033ded15ae
Add proper heredoc highlighting support to sh.kak
2017-02-06 23:00:20 +00:00
Maxime Coste
99b7d83ca3
Highlight c-family include paths as identifiers
2017-02-03 13:35:45 +00:00
Maxime Coste
e2d24701fa
Merge remote-tracking branch '4d47/php-comments'
2017-01-29 14:43:59 +00:00
Mathieu Gagnon
97d99358d1
Set commenting options for php
...
The defaults are working but using c-family style is more idiomatic,
it also enable support for `comment-selection`.
2017-01-29 06:23:11 -05:00
Maxime Coste
1048036d3c
Merge remote-tracking branch 'alexherbo2/rc-comment'
2017-01-25 21:18:48 +00:00
Maxime Coste
d3ecc9f311
More tolerant recognition of underlined titles in asciidoc highlight
2017-01-25 00:24:41 +00:00
Alex Leferry 2
4f3c28aa37
fix quote convention
2017-01-15 15:12:57 +01:00
Alex Leferry 2
b66d58b703
remove optional value
2017-01-15 15:07:17 +01:00
Alex Leferry 2
d6cb1b8e53
fix typo
2017-01-15 15:05:01 +01:00
Alex Leferry 2
165227dac2
rename line and block comments options
2017-01-15 14:58:07 +01:00
Alex Leferry 2
98cc81ae07
rename :comment-selection to :comment-block
2017-01-15 14:48:12 +01:00
Alex Leferry 2
1f0ec535bd
tweak :comment-line behaviour to comment selected lines
2017-01-15 14:43:45 +01:00
Alex Leferry 2
4ad4b2d41a
rename commenting.kak to comment.kak
2017-01-15 14:25:32 +01:00
Maxime Coste
c0afbe8626
Remove MAN_KEEP_FORMATTING for doc.kak
...
Fixes #1098
2017-01-15 11:26:57 +00:00