Small updates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user