zsh-users
 help / color / mirror / code / Atom feed
From: joe M <joe9mail@gmail.com>
To: zsh-users@zsh.org, zsh-workers@zsh.org
Subject: Re: Zsh completion configuration with history-words as another group to _complete
Date: Tue, 26 Feb 2013 02:23:14 -0500	[thread overview]
Message-ID: <CAHjjW1683CtUwt9y+j8bu8Nkc2FBqBCfyWjRWvHf+zhtEBtqvw@mail.gmail.com> (raw)
In-Reply-To: <CAHjjW152=f9aBk52CxpFWWioPi__U04eEktdW5iWVTkYSDMr6A@mail.gmail.com>

Hello,

> if I should be looking at changing _complete to add the
> _history_words_list as a tag within the  _complete function instead.

if I change /usr/share/zsh/5.0.2/functions/Completion/Zsh/_command_names,
by changing the below lines to:

defs=(
  'commands:external command:_path_commands'
)

to

defs=(
 'history:history words:_history_complete_word'
  'commands:external command:_path_commands'
)

It seems to work. Being a newbie, I am not sure if this is a reliable
approach. Any thoughts, please?

Thanks
Joe


  reply	other threads:[~2013-02-26  7:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-26  6:09 joe M
2013-02-26  7:23 ` joe M [this message]
2013-02-26 16:33   ` Bart Schaefer
2013-02-26 16:26 ` Bart Schaefer

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=CAHjjW1683CtUwt9y+j8bu8Nkc2FBqBCfyWjRWvHf+zhtEBtqvw@mail.gmail.com \
    --to=joe9mail@gmail.com \
    --cc=zsh-users@zsh.org \
    --cc=zsh-workers@zsh.org \
    /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).