From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28266 invoked by alias); 27 Nov 2015 07:04:09 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21004 Received: (qmail 23016 invoked from network); 27 Nov 2015 07:04:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== X-Received: by 10.98.64.80 with SMTP id n77mr45867222pfa.96.1448607844241; Thu, 26 Nov 2015 23:04:04 -0800 (PST) Date: Fri, 27 Nov 2015 15:03:24 +0800 From: lilydjwg To: zsh-users@zsh.org Subject: Re: Interactive search on the command line? Message-ID: <20151127070324.GA16034@lilyforest> References: <20151126080400.GA20074@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151126080400.GA20074@linux.vnet.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) 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