commit 59e3a23b5f719751aa1e6897b1dd5c8a034abc15 Author: Andre Schaf Date: Tue Jun 16 07:28:25 2026 +0200 initial commit diff --git a/kakrc b/kakrc new file mode 100644 index 0000000..1975970 --- /dev/null +++ b/kakrc @@ -0,0 +1,30 @@ +colorscheme desertex + +add-highlighter global/ number-lines -relative -hlcursor +add-highlighter global/ show-matching + +# this messes with jumplist +# map -docstring "jump forward" global normal ":exec c-i" +map -docstring "toogle comment" global user / ":comment-line" + +hook global BufWritePost .* %{ git update-diff } + +# define-command find-file %{ evaluate-commands %sh{ +# file=$(find . -type f -not -path './.git*' -not -path './node_modules*' | fzf --tmux 90% --preview 'bat {} --color=always') +# [ -n "$file" ] && printf 'edit %%{%s}' "$file" +# } } + +define-command zellij-fzf %{ + zellij-terminal-horizontal sh -c "find . | fzf --bind 'enter:execute(echo eval -client %val{client} e {} | kak -p %val{session})+execute(zellij action close-pane)'" +} + +map -docstring "preview" global user p ":git show-diff" +map -docstring "next change" global user ] ":git next-hunk" +map -docstring "previous change" global user [ ":git prev-hunk" +map -docstring "find file" global user f ":zellij-fzf" +map -docstring "grep" global user g ":grep" + +# zellij-terminal-horizontal fzf --bind "enter:execute(kak -C %val{session} {})" + + +