-
-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hi Felix, this project and plugin are amazing and I'm very excited about it! Thank you!
Step 1 for me really using it in earnest though is that I have to use, align and test my heavily customized key bindings.
Obviously I can go through and set these myself (and in a perfect world I'd set them once here in VSCode), but here's my issue.
It seems that when I remove a binding in VSCode, it also removes the 'when' conditions with it, and doesn't seem to provide
the default value again after you remove it, but obviously these conditions are really important!
If I have a Leo pane, a code pane, and a preview pane open then it's going to be absolutely critical that these are in sync,
because there are specific commands to update the outline (always), and separate ones to manipulate the text in the editor pane, and the preview pane needs to stay in sync.
I'm not exactly sure how we solve this, I was considering whether we could someday extract the bindings (all the bindings?) into a Leo outline with clones & alternate hierarchies which could serve as a bit of a leoInteg showcase. I can imagine 3+ hierarchies; one by the command name (the vscode default), one by the context (when: resource scheme, focused area, etc), and one based on the key binding combinations. This could also be extracted/applied to say an @file in markdown which could be previewed/printed/shared in a nicer way to show that functionality off too.
Something else to consider, while I'm on a ramble, is that we could read in the VsCode default bindings and just map them straight to the leoInteg bindings (unless they've been overridden) with the resourceScheme & Focus appended to the command, so the same binding would apply even though different things are happening under the hood.
My only ask for this ticket is if the default bindings which you've clearly taken the time to figure out, could just be maybe written out in readme or in a separate document (leo outline?), so I can go through and recreate them but setting my own bindings. i.e. I'd prefer to scrap all of them and recreate them one by one as I go as a form of self tutorial.
Anyway, thanks for considering, can't wait to dig in.
Kevin