From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5985 invoked by alias); 26 Nov 2015 08:20:43 -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: 20994 Received: (qmail 15926 invoked from network); 26 Nov 2015 08:20:43 -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=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=a23HxkkzCsIZt6+bHC6jL7ytzdX6pCDrPKSzpIWAAV4=; b=qBMbqlK1BYvu+rurX7dqHYhQGwR38K/bGW3gg79MeAq2DEnbawr/Ij+lrQPVmtJrnh eiSQtFieCk9VreGaJrz9XIhgfsLQ+Z+GdvNtSuQiLLrn6tHOsEmGHBVO23EzoylbX9D5 bS9R6S/2uUr2IeJ5sL0PDNqNCSwhoL/vlxnwtDSdVNUf4hPR0u5tlGKGtMyDf1hsoAAY c+JUVFlV17gKIGroqmz7eX8atGulIumokKbXrsUKREmPLfF1Pf9x3ppNClthyOiZdh4J jLP0t1hUjFEaAM/jy4Zzsfmr9SgYPlKmSHRwHLOQDo4OCjQBCMSArq2YgyIgs4JlbLhS UKlg== MIME-Version: 1.0 X-Received: by 10.140.134.135 with SMTP id 129mr48438994qhg.58.1448526040428; Thu, 26 Nov 2015 00:20:40 -0800 (PST) In-Reply-To: <20151126080400.GA20074@linux.vnet.ibm.com> References: <20151126080400.GA20074@linux.vnet.ibm.com> Date: Thu, 26 Nov 2015 09:20:40 +0100 Message-ID: Subject: Re: Interactive search on the command line? From: Mikael Magnusson To: vogt@linux.vnet.ibm.com, Zsh Users Content-Type: text/plain; charset=UTF-8 On Thu, Nov 26, 2015 at 9: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. You can use ctrl-r for this. (eg, history-incremental-*-search-*). Another useful trick on long command lines is to type alt-300 or some suitably large number before pressing left/right. -- Mikael Magnusson