dotfiles/.config/kak/autoload/clipboard.kak

8 lines
463 B
Text

# Goal: better multi-selection behavior
# If we copy multiple selections, it should be copied s.t. each selection is on its own line
map -docstring "yank the selection into the clipboard" global user y "<a-|> wl-copy<ret>"
map -docstring "paste the clipboard" global user p "<a-!> wl-paste -n<ret>"
map -docstring "paste the clipboard before" global user P "! wl-paste -n<ret>"
map -docstring "replace with the clipboard" global user R '"_d! wl-paste -n<ret>'