From 0daf54486bceddf399930bcb8777d9e5f24ad003 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 12 Jun 2026 10:01:40 +0530 Subject: Split init file --- autoload/system.kak | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 autoload/system.kak (limited to 'autoload/system.kak') diff --git a/autoload/system.kak b/autoload/system.kak new file mode 100644 index 0000000..6ad122a --- /dev/null +++ b/autoload/system.kak @@ -0,0 +1,23 @@ +# 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' -- cgit v1.3.1