mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-27 12:16:22 +03:00
rc javascript: fix line comment prefix
This commit is contained in:
parent
5696ed02e4
commit
997059fed1
@ -55,7 +55,7 @@ define-command -hidden javascript-indent-on-char %<
|
|||||||
define-command -hidden javascript-indent-on-new-line %<
|
define-command -hidden javascript-indent-on-new-line %<
|
||||||
evaluate-commands -draft -itersel %<
|
evaluate-commands -draft -itersel %<
|
||||||
# copy // comments prefix and following white spaces
|
# copy // comments prefix and following white spaces
|
||||||
try %{ execute-keys -draft k <a-x> s ^\h*\K#\h* <ret> y gh j P }
|
try %{ execute-keys -draft k <a-x> s ^\h*\K/{2,}\h* <ret> y gh j P }
|
||||||
# preserve previous line indent
|
# preserve previous line indent
|
||||||
try %{ execute-keys -draft <semicolon> K <a-&> }
|
try %{ execute-keys -draft <semicolon> K <a-&> }
|
||||||
# filter previous line
|
# filter previous line
|
||||||
|
Loading…
Reference in New Issue
Block a user