On 8/15/06, Martin Bähr <[EMAIL PROTECTED]> wrote:
> On Tue, Aug 15, 2006 at 12:34:37AM +0200, Axel Liljencrantz wrote:
> > The title is defined using the fish_title function.
>
> ah, i don't have this function, no wonder i could not find it.
> (note this is version 1.20)
> fixed that now, thanks.

Mmm, you're right, it's not defined by default, it simply uses the
default value. That makes it harder to find, though the information is
in the documentation. I'll add a default fish_title function, maybe I
should add a specific subject to the help command on this as well.

> > I've been toying around with implementing various triggers that detect
> > when any of these happen, so that fish would be able to automatically
> > determine if the prompt actually needs to be reexecuted/repainted.
>
> how about providing some builtin functions for special actions like
> delete-or-exit where you exactly know what they do, so you also know
> that you can skip redrawing. like a default as above with the fish_title
> function.

The point of doing e.g. delete-or-exit as a generic shellscript
functions is to keep as much as possible outside of the shell proper.
This in turn is to keep the codebase as small and modular as possible,
in order to reduce the number of bugs, etc. As a further benefit, any
bugs in a shellscript should be unable to crash the shell, the worst
that can happen is that your commandline gets a bit messed up.

I consider the performance of delete-or-exit a bug, but I am not sure
how to solve the it. Not using a shellscript, as you suggest, is
definitely a simple and viable solution. Trouble is, if fish ever
become popular, I would hope that people start writing their own
keyboard shortcuts, and those would _have_ to be done as shellscripts,
so it would simply mean pushing the problem to the future.

> greetings, martin.
> --
> cooperative communication with sTeam      -     caudium, pike, roxen and unix
> offering: programming, training and administration   -  anywhere in the world
> --
> pike programmer   travelling and working in europe             open-steam.org
> unix system-      bahai.or.at                        iaeste.(tuwien.ac|or).at
> administrator     (caudium|gotpike).org                          is.schon.org
> Martin Bähr       http://www.iaeste.or.at/~mbaehr/

-- 
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