From bdfe2a9cf34a7d7b0eebc25452c4527cdf39202b Mon Sep 17 00:00:00 2001 From: Logan G Date: Thu, 11 Apr 2024 01:07:51 -0600 Subject: [PATCH] Gave kakoune clipboard support --- .config/kak/kakrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 1760c08..051ae82 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -2,6 +2,10 @@ add-highlighter global/ number-lines -separator ' ' set-face global LineNumbers rgb:ffff54 set global ui_options terminal_assistant=none +map global normal P '!wl-paste -n' +map global normal p 'wl-paste -n' +map global normal R '|wl-paste -n' + #auto completion hook global InsertCompletionShow .* %{ map window insert @@ -18,3 +22,7 @@ hook global WinSetOption .* %{ set-option buffer indentwidth 4 set-option global softtabstop 4 # number of spaces to delete on backspace } + +hook global RegisterModified '"' %{ nop %sh{ + printf %s "$kak_main_reg_dquote" | wl-copy > /dev/null 2>&1 & +}}