From 4b9c21e5808e1ceb421ebd6f0d38e6fd94265116 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 11 Jun 2005 12:48:06 +0000 Subject: 21316 (modified): new completion for ctags tags --- ChangeLog | 4 ++++ Completion/Unix/Command/_less | 2 +- Completion/Unix/Type/.distfiles | 2 +- Completion/Unix/Type/_ctags_tags | 7 +++++++ 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 Completion/Unix/Type/_ctags_tags diff --git a/ChangeLog b/ChangeLog index e5a483d90..f70f4698f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-06-11 Doug Kearns + * 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 diff --git a/Completion/Unix/Command/_less b/Completion/Unix/Command/_less index 5cc0ba93e..ede54a49c 100644 --- a/Completion/Unix/Command/_less +++ b/Completion/Unix/Command/_less @@ -103,7 +103,7 @@ if [[ -n "$state" ]]; then if (( $+LESSGLOBALTAGS )); then _global_tags else - _message -e ctags tag + _ctags_tags fi ;; esac diff --git a/Completion/Unix/Type/.distfiles b/Completion/Unix/Type/.distfiles index 1392115dd..6c15f9b84 100644 --- a/Completion/Unix/Type/.distfiles +++ b/Completion/Unix/Type/.distfiles @@ -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 diff --git a/Completion/Unix/Type/_ctags_tags b/Completion/Unix/Type/_ctags_tags new file mode 100644 index 000000000..2474969ab --- /dev/null +++ b/Completion/Unix/Type/_ctags_tags @@ -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 -- cgit 1.4.1