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

Re: Interactive search on the command line?



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



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