ctags (and update xcode ignores)

pull/2/head
Alpha Chen 2 years ago
parent 76f871d52b
commit a3a14f168e
No known key found for this signature in database

@ -5,8 +5,9 @@
# scratch # scratch
scratch.* scratch.*
# vim # ctags
doc/tags .ctags.d
tags
# direnv # direnv
*.envrc *.envrc
@ -19,17 +20,4 @@ doc/tags
.DS_Store .DS_Store
# Xcode # Xcode
build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata xcuserdata
profile
*.moved-aside

@ -1,8 +1,9 @@
#!/bin/sh #!/bin/sh
# Overrides for --exclude and --languages can be put into .ctags.d/*.ctags
set -e set -e
PATH="/usr/local/bin:$PATH" PATH="/usr/local/bin:$PATH"
dir="`git rev-parse --git-dir`" trap 'rm -f "$$.tags"' EXIT
trap 'rm -f "$dir/$$.tags"' EXIT git ls-files | ctags --tag-relative -L - -f"$$.tags"
git ls-files | \ mv "$$.tags" "tags"
ctags --tag-relative -L - -f"$dir/$$.tags" # --languages=-javascript,sql
mv "$dir/$$.tags" "$dir/tags"

Loading…
Cancel
Save