1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-26 13:02:01 +03:00

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