zsh-users
 help / color / mirror / code / Atom feed
* _history_complete_word and history word begin with quote
@ 2015-04-03  6:16 Han Pingtian
  2015-04-03 16:51 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Han Pingtian @ 2015-04-03  6:16 UTC (permalink / raw)
  To: zsh-user

Hi,

Looks like if a history word begins with quote, _history_complete_word
cannot complete it?

localhost% autoload -U compinit
localhost% compinit
localhost% print hello world
hello world
localhost% print "foo bar"
foo bar
localhost% echo "foo<\e,>

I pressed <\e,> but cannot get "foo bar". There is nothing being listed
And if I tried to complete after ", then all history word being listed:

localhost% echo "<\e,>
"foo bar"  print      world      hello      print      compinit   -U	autoload

if continue press <\e,>, then every history words get inserted there
within double-quotes:

localhost% echo ""foo bar""
"foo bar"  print      world      hello      print      compinit   -U	 autoload


How should we use _history_complete_word to complete such a word?

Thanks.


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

end of thread, other threads:[~2015-04-03 16:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-03  6:16 _history_complete_word and history word begin with quote Han Pingtian
2015-04-03 16:51 ` 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).