From 1070fd29b9a27a9bb56f7ec71c87f3b5213b39c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Mon, 25 May 2026 21:59:01 +0200 Subject: [PATCH] kakoune: project symbols: exclude files with very long average line length for example single or two lines bundled js files --- kakoune/.config/kak/kakrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }' } }