-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple extensions registering the 'type' command #13441
Comments
We added |
Could this be changed to something like a ...
vscode.commands.registerCommand("start-mode", () => {
// Latest attached handler receives the keys first.
const subscription = vscode.handleKeys((evt) => {
// event will bubble to the next handler if you don't cancel
evt.stopPropagation()
})
// End subscription to return the key priority to the previous holder.
setTimeout(() => subscription.unsubscribe(), 3000)
}) Would really like to use vscode-jumpy, I imagine this would be fairly easy to implement? |
For what it's worth, Atom is able to handle both jumpy and vim emulation (and probably more). |
@alexandrudima I'd really like this feature, if you would point me in the right direction in the source and discuss a pull request I'd be glad to work on it. |
I have the same precise issue by using my extension (codeacejumper) |
I would like to turn off vim keybinding while activating jumpy line or word mode. |
Hey, all. |
It's has been 2 years, still can't get emacs-keymap work with ace-jump ext, does anyone have solution about this issue ? |
If my reading of @alexandrudima am I misunderstanding anything there? I think there is a separate use case worth discussing though, which is extensions that want to be notified when typing happens but do not need exclusive control over changes to the output buffer. These might be well-served by an edit: I'm actually seeing references to an |
I like @thieman's ideas, especially (2):
|
Why is this problem still not solved? It's a big problem right? |
@thieman @alexdima If I copy that test into my extension then I get the error. This is what I put in my extension:
IIUC, this is expected to work, right? This is what's in the test:
Thanks. |
Steps to Reproduce:
Jumpy Word Mode
. Two letter decorations should appear at the start of each wordI am the author of
vscode-jumpy
(repo). A user has reported that Jumpy does not work in combination with VSCodeVim: wmaurer/vscode-jumpy#1.It seems that both extensions are doing a
registerCommand('type')
, butVSCodeVim
seems to take priority overvscode-jumpy
. Is there are way to manage which extension has priority, so that it can receive and process the keystrokes?Ideally I want to Jumpy to receive and process the next two keystrokes after enabling
Jumpy Word Mode
, but then let the rest of the keystrokes forward toVSCodeVim
.The text was updated successfully, but these errors were encountered: