zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-user <zsh-users@zsh.org>
Subject: Re: How to enable history completion in command line?
Date: Tue, 01 Jan 2013 16:08:01 -0800	[thread overview]
Message-ID: <130101160801.ZM3720@torch.brasslantern.com> (raw)
In-Reply-To: <20130101224452.GD2054@localhost.localdomain>

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?

Completion is extremely word-oriented, so using it to retrieve anything
that has whitespace and other syntactic separators is difficult.  There
are tricks you can do with "compadd -Q -U" to cause multi-word strings
to be inserted onto the command line, but attempting to do any sort of
menu completion (with limited exceptions for menu selection) will fail
because completion will begin to limit itself to the single word nearest
the cursor as soon as the first replacement is done.


  parent reply	other threads:[~2013-01-02  0:08 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 [this message]
2013-01-02  3:19   ` Han Pingtian

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=130101160801.ZM3720@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).