Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Interactive search on the command line?
- X-seq: zsh-users 21004
- From: lilydjwg <lilydjwg@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Interactive search on the command line?
- Date: Fri, 27 Nov 2015 15:03:24 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=NMLHCKmXLQQpOtpMwqb5JG45sLFD15jqwOPkEB8Q+no=; b=cfSYpjF/nU0LnKDzvFsIV98pHG5BKN/ZHXEW1XsOX1SdIHw/KT1fpG6l3YeqYlLQP2 Ppn2NrY9O7w4Ab6ZDsPSCPU9gpdx2XlFRO1SCxU8ip2mDfzi7DiElUvC7YgJaedXTLrl 5Y3NGaT0PgsjsxWaWfT1H8n5cKPL2/A5+7TUXzjasnlkyIDxMPq6D/HGbXGqzGAAYRl/ PAgzhr0xFGzKIVxZqwVb4l+r0IBx6GetRAYwK4eBeVw7a641YJlHuipT507G54mD1xSR 7RU/RB/5af/A69X9WGCy1brCrvb8fuUpUYXFLvSmi+bcpHt6+tPLA/pAnNeMwPFTxhMo 0Whw==
- In-reply-to: <20151126080400.GA20074@linux.vnet.ibm.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author