From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23692 invoked by alias); 29 Nov 2015 21:50:21 -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: 21012 Received: (qmail 9830 invoked from network); 29 Nov 2015 21:50:20 -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=0.2 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_NUMERIC_HELO,T_FSL_HELO_BARE_IP_2 autolearn=no autolearn_force=no version=3.4.0 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Scott Frazer Subject: Re: Interactive search on the command line? Date: Sun, 29 Nov 2015 16:46:35 -0500 Message-ID: <565B723B.70900@gmail.com> References: <20151126080400.GA20074@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 173.38.117.67 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <20151126080400.GA20074@linux.vnet.ibm.com> On 11/26/15 3:04 AM, 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 wrote something recently that might help, it lets you jump to anywhere in the command line with just a couple keystrokes: https://github.com/scfrazer/zsh-jump-target I'm pretty new to zsh, so I wrote it like I would have in a different language. If there is a better way to do things, suggestions are welcome. Scott