# Misc keys map global user '' ': set-register slash ""' -docstring 'Clear search highlighting' map global normal '/' '/(?i)' # Remap / to case-insensitive search map global user '/' '/' map global user s ': w' -docstring 'Save' map global user Z ': wq' -docstring 'Save and quit' map global normal 15j -docstring '15 down' map global normal 15k -docstring '15 up' map global user y " xclip -selection clipboard" -docstring "yank the selection into the clipboard" declare-user-mode system map global user q ': enter-user-mode system' -docstring 'System mode' map global system o ':info %opt{}' -docstring 'Print opt' map global system v ':info %val{}' -docstring 'Print value' map global system d ': buffer *debug*' -docstring 'Switch to debug buffer' map global system f ':set buffer filetype ' -docstring 'Set filetype' map global system M ':set global makecmd ""' -docstring 'Set global compile command' map global system m ': make' -docstring 'Compile' map global system p ': info %sh{ realpath -s --relative-to="$PWD" "$kak_buffile" }' -docstring 'Print relative file path' map global system P ': info %val{buffile}' -docstring 'Print absolute file path' map global system ! ':info %sh{}' -docstring 'Run command' map global system t ': terminal %sh{ echo "$SHELL" }' -docstring 'Open new term'