AutoYADM commit: 2025-07-06 20:35:33
This commit is contained in:
parent
7efb7c0bcd
commit
b52dbc3d6a
1 changed files with 13 additions and 1 deletions
|
@ -181,7 +181,19 @@ map -docstring "goto next buffer" global normal <c-i> ": bn<ret>"
|
||||||
map global normal <tab> _
|
map global normal <tab> _
|
||||||
|
|
||||||
# comments
|
# comments
|
||||||
map -docstring "comment line" global normal "#" ": comment-line<ret>"
|
define-command comment-line-as-block %{
|
||||||
|
execute-keys -draft 'xs[^\n]<ret><a-_>: comment-block<ret>'
|
||||||
|
}
|
||||||
|
define-command smart-comment %{
|
||||||
|
evaluate-commands %sh{
|
||||||
|
if [ -z "${kak_opt_comment_line}" ]; then
|
||||||
|
echo "comment-line-as-block"
|
||||||
|
else
|
||||||
|
echo "comment-line"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
}
|
||||||
|
map -docstring "smart comment" global normal "#" ": smart-comment<ret>"
|
||||||
map -docstring "comment block" global normal "<a-#>" ": comment-block<ret>"
|
map -docstring "comment block" global normal "<a-#>" ": comment-block<ret>"
|
||||||
|
|
||||||
# formatting
|
# formatting
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue