bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature Idea: Enhanced Tab Completion


From: Chris F.A. Johnson
Subject: Re: Feature Idea: Enhanced Tab Completion
Date: Sat, 21 Mar 2009 13:25:35 -0400 (EDT)
User-agent: Alpine 1.00 (LRH 882 2007-12-20)

On Sat, 21 Mar 2009, Ken Irving wrote:

On Sat, Mar 21, 2009 at 01:01:51PM -0400, Cam Cope wrote:
On Sat, Mar 21, 2009 at 11:48 AM, Chet Ramey <chet.ramey@case.edu> wrote:
Cam Cope wrote:
Combine tab completion with history: when you put ! at the beginning of a
command and use tab completion, it displays history results

What do you mean by `history results'?

I'm sorry if the feature has already been implemented, I haven't heard of
any way to implement it. This is what I was thinking of:
Right now, if you run history, it will list out all the recently used
commands, and then you could run !360 to run that history result. Often I'm
looking for a specific command that I don't want to retype the options for.
Instead of having to do history | grep commandname and then !###, just start
typing !commandname and hit tab to see history entries that start with it.

This sounds a lot like what you get with the reverse-search-history
command, bound to control-r (C-r), a great feature indeed.

   Also take note of history-search-backward (not bound to any key by
   default, but which I have bound to up-arrow), which searches for
   commands beginning with whatever you have already entered on the
   command line.

   For example, if I type 'gr' and up-arrow, I will get the last grep
   command I used. Keep pressing for earlier instances.

--
   Chris F.A. Johnson, webmaster         <http://woodbine-gerrard.com>
   ========= Do not reply to the From: address; use Reply-To: ========
   Author:
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]