diff --git a/kakoune/.config/kak/kakrc b/kakoune/.config/kak/kakrc index 1640890..33711a7 100644 --- a/kakoune/.config/kak/kakrc +++ b/kakoune/.config/kak/kakrc @@ -132,7 +132,7 @@ define-command -override ctags-file-symbols %{ define-command -override ctags-project-symbols %{ prompt -menu -shell-script-candidates %{ - git ls-files | xargs ctags -uo - -x | awk '{ print $1, $2, $3, $4 }' + git ls-files | xargs wc | awk '$1 > 0 && $3/$1 < 1024 { print $4 }' | xargs ctags -uo - -x | awk '{ print $1, $2, $3, $4 }' } 'Project symbols: ' %{ evaluate-commands %sh{ printf '%s\n' "$kak_text" | awk '{ print "edit --", $4, $3 "; execute-keys /\\b" $1 "\\b" }' } }