Small updates

This commit is contained in:
KK
2026-06-24 00:10:05 +02:00
parent a7f6f8a3e0
commit fa6cf37c92
5 changed files with 32 additions and 2 deletions

View File

@@ -16,8 +16,29 @@ map global user / ': comment-line<ret>'
# insert four spaces instead of a tab character while in insert mode.
map global insert <tab> '<space><space><space><space>'
hook global RegisterModified '"' %{ nop %sh{
hook global InsertChar j %{ try %{
exec -draft hH <a-k>jj<ret> d
exec -with-hooks <esc>
}}
hook global RegisterModified '"' %{ nop %reg{dquote} %sh{
printf %s "$kak_main_reg_dquote" | wl-copy > /dev/null 2>&1 &
}}
define-command -hidden paste-system-after %{
evaluate-commands -save-regs '"' %{
set-register dquote %sh{ wl-paste --no-newline 2>/dev/null }
execute-keys p
}
}
define-command -hidden paste-system-before %{
evaluate-commands -save-regs '"' %{
set-register dquote %sh{ wl-paste --no-newline 2>/dev/null }
execute-keys P
}
}
map global normal p ': paste-system-after<ret>'
map global normal P ': paste-system-before<ret>'
add-highlighter global/ number-lines