From 3c94e93d037f92d3eb4c005cfef40c9321a1d6da Mon Sep 17 00:00:00 2001 From: Jake Koroman Date: Tue, 2 Jun 2026 13:25:48 -0400 Subject: update kakrc. --- kak/kakrc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/kak/kakrc b/kak/kakrc index 3deb1da..8ed04a7 100644 --- a/kak/kakrc +++ b/kak/kakrc @@ -17,10 +17,14 @@ set-option global make_error_pattern '^([^:\n]+)[:\(](\d+):(?:(\d+))?[:\)]?' hook global ModuleLoaded x11 %{ set global termcmd 'st -e sh -c' + map -docstring 'yank to system clipboard' global user y 'xclip -selection clipboard' + map -docstring 'paste from system clipboard' global user p 'xclip -selection clipboard -o' } hook global ModuleLoaded wayland %{ set global termcmd 'foot -e sh -c' + map -docstring 'yank to system clipboard' global user y 'wl-copy' + map -docstring 'paste from system clipboard' global user p 'wl-paste' } hook global ModuleLoaded tmux %{ @@ -55,16 +59,10 @@ define-command jrk-trim-trailing-whitespace %{ try %{ execute-keys -draft "%%s\h+$d" } } -# map -docstring 'yank to system clipboard' global user y 'xclip -selection clipboard' -# map -docstring 'paste from system clipboard' global user p 'xclip -selection clipboard -o' - -map -docstring 'yank to system clipboard' global user y 'wl-copy' -map -docstring 'paste from system clipboard' global user p 'wl-paste' - map -docstring 'goto next make error' global user [ '<:>make-next-error' map -docstring 'goto previous make error' global user ] '<:>make-previous-error' -map -docstring 'make' global user q '<:>make' +map -docstring 'save file and run make' global user q '<:>w<:>make' map -docstring 'set makecmd and make' global user Q '<:>jrk-set-makecmd-and-make' map -docstring 'edit file' global user . '<:>edit ' -- cgit v1.2.3