Also, maybe up-arrow should also match directory history?

On Sun, Apr 20, 2014 at 4:14 AM, Philip Ganchev <phil.ganc...@gmail.com> wrote:
> So if the user enters text and presses up-arrow, Fish should match
> input words as substrings of commands in history. If it finds a
> matching command, Fish will suggest the command and the directory
> where it was executed. The user can:
>
> 1. Press Enter to execute the command in the search directory, or
> 2. Press Alt+right to cd to the historical directory, then:
> 2.a. Press Alt+left to return to the search directory, or
> 2.b. Press Enter to execute the command in the historical directory, or
> 2.c. Press Ctrl-E Ctrl+U to clear the search and continue working in
> the histriocal directory.
>
>
> On Fri, Apr 18, 2014 at 5:40 AM, Martin Bähr
> <mba...@email.archlab.tuwien.ac.at> wrote:
>> hi,
>>
>> quite often i want to search for multiple terms in the history when those 
>> terms
>> are not in a sequence.
>>
>> currently typing
>> foo bar<up-arrow>
>>
>> will search for exactly "foo bar",
>> but i'd also like to see any results that contain "foo" and "bar" with other
>> stuff in between.
>>
>> maybe exact matches first, then matches with "foo" and "bar" in order 
>> followed
>> by matches with them in any order.
>>
>> btw, i saw someone suggesting to search based on the directory, that's a nice
>> idea too, moreover, i am occasionally browsing the history to reconstruct 
>> what
>> i did in a certain directory.
>>
>> occasionally i am then coming across commands where i wonder in which 
>> directory
>> i was running them. so if the history could be augmented with the working
>> directory of each entry, even if it doesn't get used in search, just having
>> that information would be of great help.
>>
>> greetings, martin.
>>
>> --
>> eKita                   -   the online platform for your entire academic life
>> hackerspace beijing     -                                    http://qike.info
>> --
>> chief engineer                                                       eKita.co
>> pike programmer      pike.lysator.liu.se    caudium.net     societyserver.org
>> BLUG secretary                                                 beijinglug.org
>> foresight developer  foresightlinux.org                            realss.com
>> unix sysadmin
>> Martin Bähr          working in china        http://societyserver.org/mbaehr/
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and their
>> applications. Written by three acclaimed leaders in the field,
>> this first edition is now available. Download your free book today!
>> http://p.sf.net/sfu/NeoTech
>> _______________________________________________
>> Fish-users mailing list
>> Fish-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fish-users

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to