Files
dotfiles/kakoune/.config/kak/scripts/projectsymbols.awk
Łukasz Pankowski de7dbf7f67 kakoune: file and project symbols: support spaces in first token (example css)
uses non-breaking space as a separator and assumes that first numeric
token (starting from second one) is the line number (i.e., assumes that
the searched token does not contain space delimited number)
2026-05-27 09:58:13 +02:00

10 lines
238 B
Awk

{
for (i = 3; i < NF; ++i) {
if ($i ~ /^[0-9]+$/) {
j = match($0, "[ ]+" $(i-1) "[ ]+" $i " ")
print substr($0, 0, j - 1) "\u00a0" $(i-1) "\u00a0" $i "\u00a0" $(i+1)
break
}
}
}