colorscheme terminal add-highlighter global/ number-lines -relative -hlcursor -separator " " add-highlighter global/ show-matching add-highlighter global/ regex \h+$ 0:Error set-option global scrolloff 50,10 set-option global tabstop 4 hook global RegisterModified '"' %{ nop %sh{ printf "%s" "$kak_main_reg_dquote" | (eval wl-copy --foreground) > /dev/null 2>&1 & } nop %sh{ encoded=$(printf %s "$kak_main_reg_dquote" | base64 | tr -d '\n') printf "\033]52;;%s\a" "$encoded" >"/proc/$kak_client_pid/fd/0" } } map -docstring 'paste wayland clipboard after cursor' global user \ 'p' 'wl-paste -n' map -docstring 'paste wayland clipboard before cursor' global user \ 'P' '!wl-paste -n' # Snippets define-command -params 2 expand-snippet %{ exec -draft x s %arg{1}d exec -with-hooks %arg{2} } define-command -params 2 expand-snippet-nl %{ exec -draft x s ^\s*? %arg{1} n s %arg{1}d exec -with-hooks %arg{2} }