zsh-workers
 help / color / mirror / code / Atom feed
* cycle back through recent candidates for completion
@ 2012-12-29 21:27 Dave Yost
  2012-12-30 19:57 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Yost @ 2012-12-29 21:27 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

I’m using the wonderful new _history_complete_word functionality.

Z% echo   
zsh: do you wish to see all 405 possibilities (405 lines)?

Well, no, but I would like to go backwards to the one I do want to see.

If I type up-arrow to that prompt, I get this:

Z% echo [A

It would be better if up-arrow would take me to the most recent echo command, just as up-arrow on an empty command line prompt takes me to the most recent command. Of course, both up-arrow and down-arrow should allow navigation here.


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

* Re: cycle back through recent candidates for completion
  2012-12-29 21:27 cycle back through recent candidates for completion Dave Yost
@ 2012-12-30 19:57 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2012-12-30 19:57 UTC (permalink / raw)
  To: zsh-workers

On Dec 29,  1:27pm, Dave Yost wrote:
} Subject: cycle back through recent candidates for completion
} 
} Z% echo   
} zsh: do you wish to see all 405 possibilities (405 lines)?
} 
} If I type up-arrow to that prompt, I get this:
} 
} Z% echo [A

That prompt only accepts two answers, "y" or tab for yes, or any other
character which is interpreted as "no". So the three-character sequence
that's emitted by up-arrow is interpreted as "no" followed by two
characters that get left for ZLE to consume.

ZLE isn't like emacs in that the builtin commands are not implemented in
terms of its own input system, so prompts like this are handled outside
of the regular keybinding control flow and it's non-trivial to treat
the input they receive as arbitrary editor commands.

} It would be better if up-arrow would take me to the most recent echo
} command, just as up-arrow on an empty command line prompt takes me
} to the most recent command. Of course, both up-arrow and down-arrow
} should allow navigation here.

Have you tried

	zstyle :completion:history-words:\* list false

to see if that's closer to what you want?


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

end of thread, other threads:[~2012-12-30 19:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-29 21:27 cycle back through recent candidates for completion Dave Yost
2012-12-30 19:57 ` Bart Schaefer

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