Commit dbc61f7
Eric Bower
·
2026-06-18 12:00:49 -0400 EDT
parent 511b820
chore(kak): dont rely on fd
1 files changed,
+8,
-1
+8,
-1
1@@ -26,7 +26,14 @@ map global user b ":buffer<space>" -docstring "buffer list"
2 map global user B ":delete-buffer-picker<ret>" -docstring "delete buffer"
3
4 define-command find -docstring "find files" -params 1 %{ edit %arg{1} }
5-complete-command find shell-script-candidates %{ fd -t f }
6+# complete-command find shell-script-candidates %{ fd -t f }
7+complete-command find shell-script-candidates %{
8+ if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
9+ git ls-files
10+ else
11+ find . -type f -not -path '*/.git/*'
12+ fi
13+}
14
15 define-command dowrap %{ # soft-wrap command
16 add-highlighter buffer/ wrap -indent -word -marker "… "