On Wednesday, June 16, 2021 at 2:42:15 PM UTC-5 Edward K. Ream wrote:

>
> One question - about handling of keystrokes that mean something in Leo, 
>> such as CNTL-B.  Do you think there could be a way to get some of them to 
>> work as expected from within the leointeg environment?  Of course, there is 
>> the potential for interference with native vsc key shortcuts.
>>
>
> I can answer this one. Félix may have more details. vs-code (and thus 
> leoInteg) has *superb *key-binding features, of which Félix has taken 
> full advantage.
>
> In the vs-code command palette (Shift-Ctrl-P), type "short". You will see 
> an entry: "Preferences, Open Keyboard Shortcuts". Select that command, and 
> type the (Leo) command you want to bind to.  It's dead simple.
>

I should add that right now you should do F5 (or Ctrl-F5) first, so that 
vs-code knows about Leo commands. After that, you can just type "leo" in 
the "Keyboards Shortcuts" to see all of Leo's commands, and make any 
bindings you like. 

Notes:

1. vs-code will tell you about conflicting shortcuts.
2. leoInteg's shortcuts apply only when focus in a Leo pane. Otherwise, 
default vs-code shortcuts apply.

In short, vs-code's key binding capabilities are miles ahead of Leo's, and 
Félix has ensured that Leo's bindings don't conflict *unnecessarily* with 
vs-code's default bindings.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d2f86ca0-8f1c-4606-95bb-ff4c27b212cdn%40googlegroups.com.

Reply via email to