Setup sublime

This commit is contained in:
KK
2026-06-25 08:37:05 +02:00
parent fa6cf37c92
commit 02cc4698dc
18 changed files with 63 additions and 159 deletions

View File

@@ -20,19 +20,22 @@ 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 &
evaluate-commands %sh{
if [ -n "${WAYLAND_DISPLAY:-}" ] && command -v wl-copy >/dev/null 2>&1 && command -v wl-paste >/dev/null 2>&1; then
printf %s "
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 '"' %{
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 '"' %{
evaluate-commands -save-regs '\"' %{
set-register dquote %sh{ wl-paste --no-newline 2>/dev/null }
execute-keys P
}
@@ -40,5 +43,8 @@ define-command -hidden paste-system-before %{
map global normal p ': paste-system-after<ret>'
map global normal P ': paste-system-before<ret>'
"
fi
}
add-highlighter global/ number-lines