Closed joeshaw closed 5 years ago
Alternately, is it possible to expose when mark mode is enabled for the when
field of keybindings? I haven't seen any examples of that in the default keybindings, but if that were the case I'd be able to switch editorHasSelection
in my keybindings above to isInMarkMode
or similar.
Hello,
is it possible to expose when mark mode is enabled for the
when
field of keybindings?
Yes, it's possible. Please see here: https://github.com/tuttieee/vscode-emacs-mcx#when-clause-context (sorry, it's not salient)
And this may also help you as I implemented the when
context exposure for this issue and an example usage is written in the comment.
Thanks, I didn't realize that block-travel was an extension I must have installed. I'll try it the other way and submit a patch for the keybindings if that works. Cheers.
I'll try it the other way and submit a patch for the keybindings if that works
Thank you! and it's more preferable to write/update the tip or manual about the usage of when
context in README if it works, rather than to create a patch to make a dependency to anther extension even if it's in package.json.
I appreciate your contribution!
VSCode has
block-travel.jumpUp
andblock-travel.selectUp
and down variants. I can't quite get them to do what I want with mark mode, however.I have keybindings:
And this mostly works, except when I haven't started selecting anything yet.
I think what we might need are dedicated
BlockUp
andBlockDown
commands in emacs-mcx.Untested code:
I think these would be applied to C-Up and M-Up, and C-Down and M-Down in the default keybindings, respectively.