On 4/23/06, Philip Ganchev <[EMAIL PROTECTED]> wrote:
> On 4/22/06, Netocrat <[EMAIL PROTECTED]> wrote:
> > Axel Liljencrantz wrote:
> > > On 4/22/06, Philip Ganchev <[EMAIL PROTECTED]> wrote:
> [...]
> > True - it could be something simple like " [alt-H copies to
> > commandline]" to minimise added complexity.
>
> Or "Type <Alt>+H and <Enter>." or just "Type <Alt>+H"
>
> > >>How often will this be useful?  Keybindings should be
> > >>reserved for a few, often-used functions that require quick access.  I
> > >>understand the idea is to make it easier to follow references, but the
> > >>shell is all about typing anyway.  Is it so hard to type "help
> > >>function"?
> >
> > Shouldn't a friendly shell be in part about the tersest typing (and
> > thought) necessary to achieve a goal?  That's why I find things like
> > completion so useful.  This binding would be used mostly by migrators
> > from other shells I imagine, but would also be helpful for simple typos.
>
> It does make some sense.  Still, it requires a new mechanism for
> specifying hints in error messages.
>
> I was wondering if it can be made more general than copying
> pre-defined hints from an error message.  A while ago I wanted to be
> able to see or even copy the output from the last command, without
> re-running it.  Is this at all related?  I guess not...

Since we're talking about an imaginary features, it can be anything we
want it to be!

One possibility is that the output of the last command is stored in
$ans (like the ans button on calculators), and that syntax error hints
also set $ans. That way, we could simply bind Alt-h to 'echo
$ans|commandline'. Not that I know why one would want the two to be
related, but they would be.

I would _love_ an $ans feature, but that would require for fish to do
hairy things with virtual terminals, so it hasn't happened yet. I'm
hoping it will happen, though, since there are tonnes of cool features
made possible by this. We'll see.

--
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&kid0709&bid&3057&dat1642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to