Pavel Sanda wrote:
Richard Heck wrote:
The attached patch is a start on this. It does work, in the sense that you
can have both completion-accept and cell-forward bound to Tab, and this
works in tables.
"completion-accept" is added from me and works in a different way then
"complete"
which was bound to tab before. i'm not sure, but most people probably want
"complete" one.
Yes, complete suggests a completion, whereas completion-accept accepts
it. I think you probably do NOT want Tab bound to complete. I did that
first, and then Tab never works if you are at the end of a word in a
table (because LFUN_COMPLETE will be enabled). Of course, we can bind
LFUN_COMPLETE to something else....
what is the advantage of having "\addbind" instead of using old "bind"?
See the answer to JMarc. But I'm not fussed about this. Maybe just
having bind would make the shortcut panel easier to handle, because...
The problem is that it is entirely unclear how to integrate this with the
shortcut editing UI. Ideas are welcome.
maybe to allow multiple bindings in shortcut pane and only show warning about
already used key?
yes, then we could do that. But note that there'd be no way to manage
the order of the bindings then, and no indication of what they are. So
I'm inclined not to allow "adding" a binding via the shortcut panel
unless those problems are solved. And maybe we could also disallow
rebinding a key that has multiple bindings. I don't know. This seems to
call for listing the bindings by key, rather than by LFUN.
By the way---this isn't necessarily for you, Pavel---I've noticed some
oddities in the shortcut dialog while working on this. First, it seems
bindings from site.bind don't show up in the dialog. They should, at
least so you know what they are. Attempts to overwrite these bindings
seem to fail, as well, though they "look" as if they work. For example,
if you try to bind Shift-Tab to accent-umlaut, it shows up in the panel,
but it doesn't work. Second, but presumably easier to solve: Hitting
"Remove" doesn't active "Apply".
Richard
rh