On 9/3/06, Philip Ganchev <[EMAIL PROTECTED]> wrote:
> Is there a way to list the key bindings currently handled by fish?  I
> think this should be done by the 'bind' command, wither when no
> arguments are specified (as with 'set'), or when (say) '-a' is
> specified.
>
> It would be more discoverable if `bind` on its own printed a help
> message, like `function` does.
>
> Since 'bind' does for bindings what 'set' does for variables and
> 'function' for funcions, it would be nice if the syntax was similar
> for all three.  Could `set` be made to print a brief help, and use,
> say `set -a` for printing the currently defined variables?

There used to be a keyboard shortcut that printed all the bindings,
but making 'bind' itself do it is a much better idea. As for 'set' vs.
'function', you can't get 'function' to print a listing of the
currently defined functions, you get that functionality using the
'functions' builtin. Separating function definition and listing into
two builtins is very unfortunate, it is a side effect from having the
'function' builtin create a new block scope. 'set' and 'functions'
share a lot of behaviour, including many commandline switches. So I
think it would make a lot of sense to make 'bind' behave a lot more
like those two, and that includes making a call to bind with no
argument list the current bindings.

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