-
Notifications
You must be signed in to change notification settings - Fork 715
Registers & Clipboard
If your kak panes are from the same session (either created through :new
or explicitly by running in client mode kak -c <session>
), registers are shared, so copy paste should work directly, without needing to use the system clipboard.
You can use kakoune with system clipboard tools like xsel
or xclip
.
<a-|> xsel --input --clipboard <ret>
<a-|>
pipes each selection through the given external filter program and ignore its output.
You may want to use the following hook to automate the dialog with the system clipboard, on each y
, d
or c
operations:
hook global NormalKey y|d|c %{ nop %sh{
printf %s "$kak_reg_dquote" | xsel --input --clipboard
}}
! xsel --output --clipboard <ret>
!
inserts program output before selection while <a-!>
inserts program output after selection.
Therefore you can add the following mappings:
map global user P '!xsel --output --clipboard<ret>'
map global user p '<a-!>xsel --output --clipboard<ret>'
- Normal mode commands
- Avoid the escape key
- Implementing user mode (Leader key)
- Kakoune explain
- Kakoune TV