zsh-workers
 help / color / mirror / code / Atom feed
* typeset -p <TAB>
@ 2018-01-13 18:49 Daniel Shahaf
  2018-01-19 11:00 ` Oliver Kiddle
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Shahaf @ 2018-01-13 18:49 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: typeset -p <TAB>
  2018-01-13 18:49 typeset -p <TAB> Daniel Shahaf
@ 2018-01-19 11:00 ` Oliver Kiddle
  0 siblings, 0 replies; 2+ messages in thread
From: Oliver Kiddle @ 2018-01-19 11:00 UTC (permalink / raw)
  To: Zsh workers

On 13 Jan, Daniel Shahaf wrote:
> «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).

No, it is supposed to be an optional argument as follows. Not quite sure
how this ended up wrong given that the patch in 41927 has it right. 

Oliver

diff --git a/Completion/Zsh/Command/_typeset b/Completion/Zsh/Command/_typeset
index e4446a6ff..14d5d371b 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]'


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-19 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-13 18:49 typeset -p <TAB> Daniel Shahaf
2018-01-19 11:00 ` Oliver Kiddle

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).