Commit Graph

15 Commits

Author SHA1 Message Date
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
Delapouite
9eb1bb4481 Docs: fix docstrings in rc files set-optionset 2018-04-19 19:28:32 +02:00
Frank LENORMAND
9127ed0d55 src rc: Rename exec/eval into execute-keys/evaluate-commands 2017-11-03 11:09:45 +03:00
Frank LENORMAND
c9b280b712 rc: Don't use command aliases to highlight keywords properly 2017-11-03 10:34:41 +03:00
Enrico Lumetti
59e5a4126d editorconfig.kak: fix awk typo 2017-08-23 21:11:46 +02:00
Maxime Coste
9c4448ac41 Remove echo -color support, superseeded by echo -markup
`echo -color Error "blah"` is the same as `echo -markup '{Error}blah'`
Fixes #1512
2017-07-19 17:18:52 +02:00
Martin Chaine
d6bde05d27 don't handle trailing newline option
kakoune handles files as a list of lines with a newline ending
2017-01-01 19:19:40 +01:00
Martin Chaine
45fb4b6bac allow to override filename + remove existing hooks 2016-12-30 19:32:04 +01:00
Martin Chaine
292d9c9f01 fix BOM option value 2016-12-30 19:32:04 +01:00
Martin Chaine
88a8548017 fix typo 2016-12-30 19:32:04 +01:00
Martin Chaine
2c3b2e9b52 fix indent options and add whitespaces ones 2016-12-30 19:32:04 +01:00
Maxime Coste
d88d0bac42 Rework editorconfig.kak to make it more robust and handle tabs more correctly 2016-12-02 13:44:51 +00:00
Frank LENORMAND
a20f5fc6a2 Pass a generic pattern to printf calls, use echo when possible 2016-04-23 10:00:36 +03:00
Frank LENORMAND
84a21f8cfb Replace non POSIX calls to echo with printf %s 2016-04-23 09:56:53 +03:00
Maxime Coste
6cbc97900b Add editorconfig.kak by Enrico Lumetti
Closes #514
2016-02-22 23:11:20 +00:00