kakoune: add bind to copy file path

This commit is contained in:
lelgenio 2023-07-13 17:17:53 -03:00
parent 951bf6bc91
commit 90acb5b08c

View file

@ -21,6 +21,7 @@ map global user "s" ': enter-user-mode mirror<ret>' -docstring 'mirror mode'
map global user 'p' '! wl-paste -n<ret>' -docstring 'clipboard paste'
map global user 'P' '<a-o>j! wl-paste -n<ret>' -docstring 'clipboard paste on next line'
map global user 'R' '"_d! wl-paste -n <ret>' -docstring 'clipboard replace'
map global user 'y' ': copy-file-path<ret>' -docstring 'register name to clipboard'
map global user 'b' ': find_buffer<ret>' -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 </dev/null & }
}