zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: typeset -p <TAB>
Date: Sat, 13 Jan 2018 18:49:10 +0000	[thread overview]
Message-ID: <20180113184910.s44mewht2jb3ylfw@tarpaulin.shahaf.local2> (raw)

Currently, «typeset -p <TAB>» only completes the literal value "1".
«typeset -p Z<TAB>» completes nothing.

The following will fix it, at the cost of only completing "1" as a
pasted argument (not in a separate word).

Okay?

diff --git a/Completion/Zsh/Command/_typeset b/Completion/Zsh/Command/_typeset
index e4446a6ff..ac4a79063 100644
--- a/Completion/Zsh/Command/_typeset
+++ b/Completion/Zsh/Command/_typeset
@@ -30,7 +30,7 @@ allargs=(
   k "($popts -w -z)-+k[mark function for ksh-style autoloading]"
   l "($popts -T)-l[convert the value to lowercase]"
   m '(-A -E -F -T -i)-m[treat arguments as patterns]'
-  p '-p+[output parameters in form of calls to typeset]:option:((1\:multi-line\ output\ of\ arrays))'
+  p '-p-[output parameters in form of calls to typeset]:option:((1\:multi-line\ output\ of\ arrays))'
   r '(-f)-+r[mark parameters as readonly]'
   rf '-r[remember autoload path]'
   Rf '-R[remember autoload path, error if not found]'

Cheers,

Daniel


             reply	other threads:[~2018-01-13 18:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-13 18:49 Daniel Shahaf [this message]
2018-01-19 11:00 ` Oliver Kiddle

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=20180113184910.s44mewht2jb3ylfw@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --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).