diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2019-10-22 11:02:06 +0200 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2019-10-22 11:02:06 +0200 |
| commit | 21614cb06ea4f7a7349c628e5b8a754f730b2f0d (patch) | |
| tree | a5a65ba0f4489808cf312a2db9e0d5699874ff40 /rc/filetype/taskpaper.kak | |
| parent | 3c34de7fe7db607fe2c0519471b8d3c4935ce717 (diff) | |
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.
Diffstat (limited to 'rc/filetype/taskpaper.kak')
| -rw-r--r-- | rc/filetype/taskpaper.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/taskpaper.kak b/rc/filetype/taskpaper.kak index 3cd97808..dc93b16f 100644 --- a/rc/filetype/taskpaper.kak +++ b/rc/filetype/taskpaper.kak @@ -43,7 +43,7 @@ add-highlighter shared/taskpaper/ regex (([a-z]+://\S+)|((mailto:)[\w+-]+@\S+)) define-command -hidden taskpaper-indent-on-new-line %{ evaluate-commands -draft -itersel %{ # preserve previous line indent - try %{ execute-keys -draft \;K<a-&> } + try %{ execute-keys -draft <semicolon>K<a-&> } ## If the line above is a project indent with a tab try %{ execute-keys -draft Z k<a-x> <a-k>^\h*([^:\n]+):<ret> z i<tab> } # cleanup trailing white spaces on previous line |
