diff --git a/user/kakoune/usermode.kak b/user/kakoune/usermode.kak index 333ff45..4624ba5 100644 --- a/user/kakoune/usermode.kak +++ b/user/kakoune/usermode.kak @@ -21,6 +21,7 @@ map global user "s" ': enter-user-mode mirror' -docstring 'mirror mode' map global user 'p' '! wl-paste -n' -docstring 'clipboard paste' map global user 'P' 'j! wl-paste -n' -docstring 'clipboard paste on next line' map global user 'R' '"_d! wl-paste -n ' -docstring 'clipboard replace' +map global user 'y' ': copy-file-path' -docstring 'register name to clipboard' map global user 'b' ': find_buffer' -docstring 'switch buffer' @@ -128,3 +129,9 @@ zoxide %{ define-command -override config-source %{ source "%val{config}/kakrc" } + +define-command -override copy-file-path %{ + nop %sh{ { + wl-copy $kak_reg_percent + } >/dev/null 2>&1