zsh-workers
 help / color / mirror / code / Atom feed
From: Doug Kearns <dougkearns@gmail.com>
To: zsh-workers@sunsite.dk
Subject: PATCH: ctags tag completion
Date: Wed, 8 Jun 2005 14:00:00 +1000	[thread overview]
Message-ID: <20050608040000.GF16824@localhost.localdomain> (raw)

This adds completion for ctags tags which will also be useful for vi(m)
completion when I get around to tidying it up.

Regards,
Doug


Index: Completion/Unix/Command/_less
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_less,v
retrieving revision 1.1
diff -u -r1.1 _less
--- Completion/Unix/Command/_less	1 Mar 2004 12:22:52 -0000	1.1
+++ Completion/Unix/Command/_less	8 Jun 2005 07:30:56 -0000
@@ -103,7 +103,7 @@
       if (( $+LESSGLOBALTAGS )); then
         _global_tags
       else
-        _message -e ctags tag
+        _ctags
       fi
     ;;
   esac
Index: Completion/Unix/Type/_ctags
===================================================================
RCS file: Completion/Unix/Type/_ctags
diff -N Completion/Unix/Type/_ctags
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Type/_ctags	8 Jun 2005 07:30:58 -0000
@@ -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


             reply	other threads:[~2005-06-08  7:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-08  4:00 Doug Kearns [this message]
2005-06-09 12:39 ` Doug Kearns
2005-06-09 13:07   ` Peter Stephenson
2005-06-10 14:08     ` Doug Kearns
2005-06-10 14:46       ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050608040000.GF16824@localhost.localdomain \
    --to=dougkearns@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).