1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-18 17:02:06 +03:00

Merge remote-tracking branch 'Screwtapello/support-rust-doc-comments'

This commit is contained in:
Maxime Coste 2017-11-05 12:15:44 +08:00
commit a6d7906807

View File

@ -42,7 +42,7 @@ define-command -hidden rust-filter-around-selections %{
define-command -hidden rust-indent-on-new-line %~
evaluate-commands -draft -itersel %<
# 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//[!/]?\h* <ret> y gh j P }
# preserve previous line indent
try %{ execute-keys -draft \; K <a-&> }
# filter previous line