1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-07 18:11:20 +01:00

21316 (modified): new completion for ctags tags

This commit is contained in:
Doug Kearns 2005-06-11 12:48:06 +00:00
parent a2b67619ff
commit 4b9c21e580
4 changed files with 13 additions and 2 deletions

View file

@ -1,5 +1,9 @@
2005-06-11 Doug Kearns <djkea2@gus.gscit.monash.edu.au>
* 21316 (modified): Completion/Unix/Command/_less,
Completion/Unix/Type/_ctags_tags: new completion for ctags tags; update
less -t completion to use it
* 21320: Completion/Unix/Command/_screen: complete -D and -R with the
appropriate session types; fix incorrect completion of -c and -dmS
options

View file

@ -103,7 +103,7 @@ if [[ -n "$state" ]]; then
if (( $+LESSGLOBALTAGS )); then
_global_tags
else
_message -e ctags tag
_ctags_tags
fi
;;
esac

View file

@ -7,7 +7,7 @@ _directories _other_accounts _printers _urls
_domains _path_files _ps _user_at_host
_files _pdf _pspdf _users
_groups _perl_basepods _signals _users_on
_hosts _tar_archive _time_zone
_hosts _tar_archive _time_zone _ctags_tags
_file_systems _net_interfaces _terminals _locales
_java_class _services _email_addresses _global_tags
_mime_types

View file

@ -0,0 +1,7 @@
#autoload
local expl tags
[[ -r tags ]] && tags=( ${${${(f)"$(< tags)"}:#!*}%%[[:blank:]]*} )
_wanted ctags expl 'tag' compadd -M 'm:{a-zA-Z}={A-Za-z}' -a "$@" - tags