colorscheme plain add-highlighter global/ number-lines -hlcursor -relative set-option global ui_options terminal_status_on_top=true set-option -add global ui_options terminal_assistant=clippy set-option global tabstop 4 # 0 -> tabs for indentation set-option global indentwidth 0 set-option global scrolloff 3,3 # default error pattern checks for error or fatal after the error location # this makes it just look for the location, which makes it more generic for # other compilers to *just* work. works for all the compilers i care about # for now: gcc/clang/cproc, go, odin set-option global make_error_pattern '^([^:\n]+)[:\(](\d+):(?:(\d+))?[:\)]?' define-command testcmd %{ prompt -file-completion 'What is your name? ' %{ evaluate-commands %sh{ echo "Hello, $kak_text!" > /tmp/vars env >> /tmp/vars title=$(dmenu -p 'say something: ') printf "info '%s' -title '%s'" "wrote to file /tmp/vars" "$title" } } } define-command jrk-set-makecmd-and-make %{ prompt 'makecmd: ' %{ evaluate-commands %{ set-option global makecmd %val{text} make } } } map -docstring 'yank to system clipboard' global user y 'xclip -selection clipboard' map -docstring 'paste from system clipboard' global user p 'xclip -selection clipboard -o' map -docstring 'goto next make error' global user [ '<:>make-next-error' map -docstring 'goto previous make error' global user ] '<:>make-previous-error' map -docstring 'make' global user q '<:>make' map -docstring 'set makecmd and make' global user Q '<:>jrk-set-makecmd-and-make' # colemak dh binds map global normal n "h" map global normal N "H" map global normal e "j" map global normal E "J" map global normal i "k" map global normal I "K" map global normal o "l" map global normal O "L" map global normal j "e" map global normal J "E" map global normal k "n" map global normal K "N" map global normal h "o" map global normal H "O" map global normal l "i" map global normal L "I" map global normal map global normal