Description
#3013 finally made the new bind
command available. Its tests demonstrate that unbind-key
can remove bindings created by bind
, but it works a little weird IMHO because:
- the syntax for
bind
andunbind-key
is different bind
can create multi-key bindings, butunbind-key
doesn't support that and unbinds a binding that starts with a given key.
Dennis points out :
However, given that the default configuration only contains single-key bindings, I don't see much of a reason for wanting to unbind a specific multi-key key-sequence.
I agree it's not a release-blocking issue, but I still think it's important to have a working unbind
, because that enables users to modify bindings on the fly. It might be totally wacky, but I think one can actually implement a modal interface a la Vim by dynamically changing the bindings (with some very long macros :)
So I suggest we add unbind
, which is the same as unbind-key
but accepts the bind
syntax.