Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

_history_complete_word and history word begin with quote



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.



Messages sorted by: Reverse Date, Date, Thread, Author