kakoune: add keys to paste and yank from clipboard

This commit is contained in:
2026-05-03 23:01:18 +02:00
parent 09aaa47790
commit c37e371dda

View File

@@ -25,6 +25,10 @@ map global -docstring "Options" user 'o' ': enter-user-mode options-mode<ret>'
map global -docstring "Light mode" options-mode 'l' ': colorscheme one-light<ret>' map global -docstring "Light mode" options-mode 'l' ': colorscheme one-light<ret>'
map global -docstring "Dark mode" options-mode 'd' ': colorscheme one-darker<ret>' map global -docstring "Dark mode" options-mode 'd' ': colorscheme one-darker<ret>'
map global -docstring "Paste clipboard (append)" user 'p' '<a-!> xsel -bo<ret>'
map global -docstring "Paste clipboard (insert)" user 'P' '! xsel -bo<ret>'
map global -docstring "Yank to clipboard" user 'y' '<a-|> xsel -bi<ret>'
define-command -override file-open %{ define-command -override file-open %{
prompt -menu -shell-script-candidates %{ fd -t f } 'File: ' %{ edit -- %val{text} } prompt -menu -shell-script-candidates %{ fd -t f } 'File: ' %{ edit -- %val{text} }
} }