ctags.kak: Remove tags starting with '!' from ctags completion

This commit is contained in:
Maxime Coste 2018-06-20 20:20:50 +10:00
parent 3d4ee7d201
commit 7591924f85

View File

@ -16,7 +16,7 @@ define-command -params ..1 \
while read -r tags; do
namecache="${tags%/*}/.kak.${tags##*/}.namecache"
if [ -z "$(find "$namecache" -prune -newer "$tags")" ]; then
cut -f 1 "$tags" | uniq > "$namecache"
cut -f 1 "$tags" | grep -v '^!' | uniq > "$namecache"
fi
cat "$namecache"
done} \