Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Interactive search on the command line?
- X-seq: zsh-users 20994
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: vogt@xxxxxxxxxxxxxxxxxx, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Interactive search on the command line?
- Date: Thu, 26 Nov 2015 09:20:40 +0100
- 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==
- 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 9:04 AM, Dominik Vogt <vogt@xxxxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author