On 11/3/06, Beni Cherniavsky <[EMAIL PROTECTED]> wrote:
> On 30/10/06, Philip Ganchev <[EMAIL PROTECTED]> wrote:
> > I have used it on other systems, (Matlab?) and it is very annoying.
> > To bring up a 6-line command that was executed 5 commands ago, you
> > have to press the arrow 30 times, and either count or scrutinize every
> > time whether this is the line you want.
> >
> I see a simple solution: when the cursor was in the first line and you
> press Up, you should land you at the *first* line of the previous
> command, not the last.  Similarly, Down should land you in the last
> line of the next command.  This way, consecutive Up or Down presses
> will  navigate the history one command at a time, while retaining the
> ability to one line at a time within a command.  It gives you
> kind-of-modal functionality without really adding modes - the only
> state is the position of the cursor, which should be obvious enough.
>
> The only price you pay is that switching directions while browsing the
> history still requires going through all the lines of a command (but
> Alt-< / Alt-> should solve it).

This sounds pretty good, but I think there are corner cases wrt what
string to search for. The current behaviour is that when starting a
new history search, the search string is everything from the start of
the command until the cursor. As near as I can tell, one would have to
always search on the entire commandline, or lose the ability to search
on things longer than one line.

Also, one would need to to some slightly modal magic in order to be
able to switch search directions without altering the search target
string by moving up or down. It is already legal to move left or right
without exiting search mode for some reason, so I guess that might be
ok.

I guess this is a classic case of something that sounds cool, and
sounds like it may have pitfalls, but you don't really know how well
it works until you try it out in practice.

>
> --
> Beni Cherniavsky <[EMAIL PROTECTED]> (I read email only on weekends)

Hey, the weekend hasn't started yet! What are you doing reading your mail? ;-)


-- 
Axel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to