AutoYADM commit: 2025-07-06 20:35:33

This commit is contained in:
Daniel Fichtinger 2025-07-06 20:35:33 -04:00
parent 7efb7c0bcd
commit b52dbc3d6a

View file

@ -181,7 +181,19 @@ map -docstring "goto next buffer" global normal <c-i> ": bn<ret>"
map global normal <tab> _
# 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>"
# formatting