zsh-users
 help / color / mirror / code / Atom feed
From: lilydjwg <lilydjwg@gmail.com>
To: zsh-users@zsh.org
Subject: Re: Interactive search on the command line?
Date: Fri, 27 Nov 2015 15:03:24 +0800	[thread overview]
Message-ID: <20151127070324.GA16034@lilyforest> (raw)
In-Reply-To: <20151126080400.GA20074@linux.vnet.ibm.com>

On Thu, Nov 26, 2015 at 09:04:00AM +0100, Dominik Vogt wrote:
> Is there a way to do an interactive search (or at least a
> non-interactive string search) in the command line editor?  I
> often have extremely long gcc command lines where I want to delete
> an option or do some editing in the middle of the command line,
> and moving the cursor to the interesting spot is quite tedious.

I will press Ctrl-X Ctrl-E to bring up Vim to edit the command, then
I have the full capacity of my Vim. My setting is:

autoload -Uz edit-command-line
zle -N edit-command-line
bindkey '^X^E' edit-command-line

Also, moving by words (Alt-b/f) is a little faster. I don't use counts
very much because I always get the wrong count.

If you like, you can use the mouse: http://stchaz.free.fr/mouse.zsh

-- 
Best regards,
lilydjwg


  parent reply	other threads:[~2015-11-27  7:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-26  8:04 Dominik Vogt
2015-11-26  8:20 ` Mikael Magnusson
2015-11-27  7:03 ` lilydjwg [this message]
2015-11-27  7:34 ` Daniel Shahaf
2015-11-29 21:46 ` Scott Frazer
2015-11-30  3:19   ` Daniel Shahaf
2015-12-02 13:15     ` Scott Frazer
2015-12-03 23:39       ` Daniel Shahaf
2015-12-04  0:40         ` Ray Andrews
2015-12-04  0:50         ` Ray Andrews
2015-12-04  0:59         ` Bart Schaefer
2015-12-04 20:56           ` Scott Frazer
2015-12-05 10:00           ` Daniel Shahaf
2015-12-05 16:38             ` Mikael Magnusson
2015-12-05 21:07               ` Bart Schaefer

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=20151127070324.GA16034@lilyforest \
    --to=lilydjwg@gmail.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).