keybindings configuration

25 views
Skip to first unread message

HansBKK

unread,
Dec 6, 2011, 9:57:49 PM12/6/11
to leo-e...@googlegroups.com
Although I appreciate the flexibility they provide, I'm a bit flummoxed by the various mechanisms for associating keystrokes to commands.

Is there a way to output a global listing of what keys are bound to which commands, ideally with a pointer to where each is configured?

In an ideal world, it would also be possible to display "alternative standard" choices at the same time, but I'd be happy enough to switch e.g. to the vi set and then diff the results of the above output between the two. . .

If "no", then are there places other than leoSettings --> Keyboard shortcuts to look?

Finally, I assume changes should be made by "overriding" in myLeoSettings with a tree paralleling the main leoSettings file rather than editing the latter. If so, and I don't want to replace but just disable a binding, is an override with "propagate-key-event" the way to go?

TIA. . .

HansBKK

unread,
Dec 6, 2011, 11:29:36 PM12/6/11
to leo-e...@googlegroups.com
Doc note - the explanations for keyboard shortcuts in leoSettings has a lot of references to Tk. Not sure if the meaning is still accurate anyway, but probably at least some doc edits are warranted. Searching on Tk in general brings up other areas as well.


HansBKK

unread,
Dec 7, 2011, 12:40:57 AM12/7/11
to leo-e...@googlegroups.com
Odd behavior report, and please correct me if my whole approach is wrong:

From mySettings.leo

insert-child                = Ctrl-Insert
insert-node                 = Shift-Insert
# insert-node                 = Ctrl-I
# insert-node                 = Insert
do-nothing                  = Insert

results in Shift-Insert doing nothing. Comment out the do-nothing and it works.

The fact that I don't want Insert to do anything is one issue, and my immediate one, but is the fact that Shift-Insert isn't orthogonal to bare Insert a windoze key-scan-code quirk or?

Matt Wilkie

unread,
Dec 7, 2011, 2:42:09 AM12/7/11
to leo-e...@googlegroups.com
> Is there a way to output a global listing of what keys are bound to which
> commands, ideally with a pointer to where each is configured?

:) Yup: Help > Print Bindings

though there's still some work to figure what the various commands
thus presented mean/do.


-matt

HansBKK

unread,
Dec 7, 2011, 3:10:03 AM12/7/11
to leo-e...@googlegroups.com
> :) Yup: Help > Print Bindings

Note to self - go through all the menus, not just docs 8-)


> though there's still some work to figure what the various commands thus presented mean/do.

I see "Help for command" in the same place.


Well while I'm here, I'll post some of my tentative findings, corrections clarifications most welcome:

"do-nothing" is the string to disable-by-override from mySettings
"propagate-key-event" will also work, apparently as long as it isn't an OS defined keystroke (e.g. Windows with the main Menu - Alt-F)

I'm not sure about "self-insert-command", seems to pass through the leoSettings.

The issue in the third post about the Insert vs Shift-Insert still stands.



HansBKK

unread,
Dec 7, 2011, 7:49:35 AM12/7/11
to leo-e...@googlegroups.com
Sorry to keep talking to myself here, but I've spent about a half-hour googling and looking through the @menu tree in settings and didn't find anything useful.

I've just noticed that despite making keybindings I don't want go away with donothing, they're still showing up as "helpful hints" in the menus - and of course my beautiful new key mappings aren't.


Reply all
Reply to author
Forward
0 new messages