zsh-users
 help / color / mirror / code / Atom feed
From: Steve Dondley <s@dondley.com>
To: zsh-users@zsh.org
Subject: Anyway to ignore an argument when doing tab completion?
Date: Wed, 16 Mar 2022 01:54:17 -0400	[thread overview]
Message-ID: <B8A7EE2F-5910-4C06-8CDB-0995CEB716D4@dondley.com> (raw)

Not sure if this is possible. I’ve got this command:

function task() {
    command task "$@" $FILTER
}

Task has tab completion. But I don’t want the $FILTER arguments to get processed by tab completion. But when I hit return to run the actual command, I’d like them to get injected in as an argument just before the command runs.



                 reply	other threads:[~2022-03-16  5:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=B8A7EE2F-5910-4C06-8CDB-0995CEB716D4@dondley.com \
    --to=s@dondley.com \
    --cc=zsh-users@zsh.org \
    --subject='Re: Anyway to ignore an argument when doing tab completion?' \
    /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

Code repositories for project(s) associated with this 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).