From: Han Pingtian <hanpt@linux.vnet.ibm.com>
To: zsh-users@zsh.org
Subject: Re: How to enable history completion in command line?
Date: Wed, 2 Jan 2013 11:19:35 +0800 [thread overview]
Message-ID: <20130102031934.GE2054@localhost.localdomain> (raw)
In-Reply-To: <130101160801.ZM3720@torch.brasslantern.com>
On Tue, Jan 01, 2013 at 04:08:01PM -0800, Bart Schaefer wrote:
> On Jan 2, 6:44am, Han Pingtian wrote:
> }
> } How can I enable history completion in the command line? That's typing
> } a command then hit some key to let zsh completes the whole command
> } line based on history.
>
> Are you sure you're not looking for history-beginning-search-backward?
>
Thanks, Bart and Karoly.
history-beginning-search-backward works just fine. I was just curious to the
feature about '_history_complete_word' discussed in previous letter. Now
it looks like it will show a menu to the user for selection. This isn't
really useful I think. I'm going to bind up-arrow and down-arrow to
'history-beginning-search-backward' and 'history-beginning-search-forward'
respectively.
prev parent reply other threads:[~2013-01-02 3:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-01 22:44 Han Pingtian
2013-01-01 23:00 ` Karoly Negyesi
2013-01-02 0:08 ` Bart Schaefer
2013-01-02 3:19 ` Han Pingtian [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130102031934.GE2054@localhost.localdomain \
--to=hanpt@linux.vnet.ibm.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).