Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_history_complete_word and history word begin with quote
- X-seq: zsh-users 20075
- From: Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx>
- To: zsh-user <zsh-users@xxxxxxx>
- Subject: _history_complete_word and history word begin with quote
- Date: Fri, 3 Apr 2015 14:16:21 +0800
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-user <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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