map global normal -docstring 'remove all sels except main' <backspace> <space>
map global normal -docstring 'remove main sel' <a-backspace> <a-space>
map global normal -docstring 'comment line' '#' ': comment-line<ret>'
map global normal -docstring 'comment block' '<a-#>' ': comment-block<ret>'
map global normal -docstring 'delete to end of line' D <a-l>d
map global normal -docstring 'yank to end of line' Y <a-l>y
map global normal -docstring 'yank to end of line' Y <a-l>
map global user -docstring "add phantom selection" f ': phantom-sel-add-selection<ret>'
map global user -docstring "clear all phantom selections" <a-f> ': phantom-sel-select-all<ret>: phantom-sel-clear<ret>'
map global user -docstring "next phantom selection" F ': phantom-sel-iterate-next<ret>'
map global user -docstring "previous phantom selection" <a-F> ': phantom-sel-iterate-prev<ret>'
map global user -docstring 'add phantom selection' f ': phantom-sel-add-selection<ret>'
map global user -docstring 'clear all phantom selections' <a-f> ': phantom-sel-select-all<ret>: phantom-sel-clear<ret>'
map global user -docstring 'next phantom selection' F ': phantom-sel-iterate-next<ret>'
map global user -docstring 'previous phantom selection' <a-F> ': phantom-sel-iterate-prev<ret>'
map global normal -docstring 'select view' <a-%> ': select-view<ret>'
map global view -docstring 'select view' s '<esc>: select-view<ret>'
map global user -docstring "add mark" m ': mark-word<ret>'
map global user -docstring "clear marks" M ': mark-clear<ret>'
map global user -docstring 'select selection on each line' s ': keep-selection-each-line<ret>'
map global user -docstring 'drop selection on each line' S ': drop-selection-each-line<ret>'
map global user -docstring 'add mark' m ': mark-word<ret>'
map global user -docstring 'clear marks' M ': mark-clear<ret>'
map global user -docstring 'replace mode' r ': replace<ret>'
map global normal <a-space> ': fzf-mode<ret>'
map global user -docstring "expand selection" e ': expand<ret>'
map global user -docstring "expand repeat" E ': expand-repeat<ret>'
map global user -docstring 'expand selection' e ': expand<ret>'
map global user -docstring 'expand repeat' E ': expand-repeat<ret>'
map global normal Y ': yank-ring<ret>'
map global normal <c-p> ': yank-ring<ret><c-p>'
@ -62,7 +84,7 @@ map global user -docstring 'buffers…' b ': enter-buffers-mode<ret>'
@@ -62,7 +84,7 @@ map global user -docstring 'buffers…' b ': enter-buffers-mode<ret>'
map global user -docstring 'buffers (lock)…' B ': enter-user-mode -lock buffers<ret>'
declare-user-mode surround
map global user -docstring "surround mode" s ': enter-user-mode surround<ret>'
map global user -docstring 'surround mode' <a-s> ': enter-user-mode surround<ret>'
map global surround -docstring 'surround' s ': surround<ret>'
map global surround -docstring 'change' c ': change-surround<ret>'
map global surround -docstring 'delete' d ': delete-surround<ret>'
@ -78,10 +100,13 @@ map global anchor -docstring 'ensure anchor after cursor' h '<a-:><a-;>'
@@ -78,10 +100,13 @@ map global anchor -docstring 'ensure anchor after cursor' h '<a-:><a-;>'
map global anchor -docstring 'ensure cursor after anchor' l '<a-:>'
map global anchor -docstring 'select cursor and anchor' s '<a-S>'
map global user -docstring "clip-paste after" p '<a-!>xsel -b -o<ret>'
map global user -docstring "clip-paste before" P '!xsel -b -o<ret>'
map global user -docstring "clip-paste replace" R '|xsel -b -o<ret>'
map global user -docstring "clip-yank" y '<a-|>xclip -i -f -sel c<ret>'
declare-user-mode clipboard
map global normal ',' ': enter-user-mode clipboard<ret>'
map global clipboard -docstring 'clip-paste after' p '<a-!>xsel -b -o<ret>'
map global clipboard -docstring 'clip-paste before' P '!xsel -b -o<ret>'
map global clipboard -docstring 'clip-paste replace' R '|xsel -b -o<ret>'
map global clipboard -docstring 'clip-yank' y '<a-|>xclip -i -f -sel c<ret>'
map global clipboard -docstring 'clip-cut -> insert mode' c '<a-|>xclip -i -f -sel c<ret><a-c>'
map global user -docstring "next error" l ': lint-next-error<ret>'
map global user -docstring "previous error" L ': lint-previous-error<ret>'