commit 93c8e5a0c152ce6b2da8b255baf9498cdaaf09b4 Author: mack Date: Wed Oct 22 20:53:25 2025 +0000 Initial Commit diff --git a/kakrc b/kakrc new file mode 100644 index 0000000..d86af22 --- /dev/null +++ b/kakrc @@ -0,0 +1,59 @@ +# width of tab +set-option global tabstop 2 + +# indent with 2 spaces +set-option global indentwidth 2 + +# always keep lines and columns around the cursor +set-option global scrolloff 5,3 + +# display status bar on top +#set-option global ui_options terminal_status_on_top=true + +# display line numbers +add-highlighter global/ number-lines -relative -min-digits 4 +# highlight trailing whitespace +add-highlighter global/ regex \h+$ 0:Error +# softwrap long lines +add-highlighter global/ wrap -word -indent +# highlight matching characters +add-highlighter global/ show-matching + +# Words not separated by hyphen-characters +set-option global extra_word_chars _ - + +# colorscheme +colorscheme gruvbox-light +set-option global ui_options terminal_assistant=clippy + +# Disable mouse +set -add global ui_options terminal_enable_mouse=0 + +# keybindings +declare-user-mode exiting +declare-user-mode table +declare-user-mode job +map global user -docstring "Select Exclusive" +map global user -docstring "Select Inclusive" +map global user :b -docstring "Change Buffer" +#map global table ps{2,}d,ps\|&, -docstring "Format Table" # for markdown +map global user date+"[%Y-%m-%d%a%H:%M:%S]"\;d -docstring "Insert Date" +map global user :enter-user-modetable -docstring "Table Operations" +map global table c\|===,\|===L -docstring "Select Table Inclusive" # for asciidoc +map global table c\|===,\|===KGLL -docstring "Select Table Exclusive" # for asciidoc +map global table c\|===,\|===s\|&, -docstring "Format Table" # for asciidoc +#map global table c\|===,\|===s(+\||\|+)sd, -docstring "Delete Repeated Spaces" # for asciidoc +map global table c\|===,\|===s(*\|*)sd, -docstring "Delete Repeated Spaces" # for asciidoc +map global user qalc"" -docstring "Calculate" + +# Case-insensitive search bindings I found on the internet +map global normal '/' /(?i) -docstring 'case insensitive search' +map global normal '' (?i) -docstring 'case insensitive backward search' +map global normal '?' ?(?i) -docstring 'case insensitive extend search' +map global normal '' (?i) -docstring 'case insensitive backward extend-search' + +map global user m :enter-user-modeexiting -docstring "Open Exit Menu" +map global exiting m :w:db:q -docstring "Write, Close Buffer, Quit" + +map global user j :enter-user-modejob -docstring "Open Job Menu" +map global job t !cat~/jobs/a_job_template.adoc -docstring "Insert Job Template"