-
Notifications
You must be signed in to change notification settings - Fork 91
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
Cycling through tagged results on screen via "Enter" or "Shift+Enter" keys does not work any more #380
Comments
|
By the way, I see that key "Alt+Enter" which binds in my case for action "Action: EditorStartNewLine" works instead of "Shift+Enter" for previous match. Maybe there is some workaround instead of "Enter" for next match also?... |
Okay! After some digging, I can reproduce this issue, but only when IdeaVim is active. If IdeaVim is disabled, tag navigation using Enter/Shift+Enter triggers the callback as expected, however when IdeaVim is active (either in normal mode, or insert mode), this causes the caret move in editor, or produces the message AceJump/src/main/resources/META-INF/plugin.xml Lines 26 to 29 in 6858b74
When IdeaVim is enabled, this action handler would not appear to work. I wonder if there is a better way to steal editor actions like Enter/Shift+Enter from the IDE when AceJump is active. I remember an older issue (#266) where competing focus occurred in certain IdeaVim modes. @AlexPl292 Should we be doing anything differently here? |
IdeaVIM registers a raw key handler that takes priority over everything else, I ran into a similar issue with one of my plugins. You could try copying my approach and see if that works: |
IdeaVim had a workaround for AceJump, but it was broken by the last huge refactoring. We are already discussing on how to fix it in a better way. I hope that the fix will be available in the next release. |
A fix will be available with the next release of IdeaVim. It was fixed by introducing a dependency to the AceJump plugin, but actually we're discussing IdeaVim keys handling refactoring. |
Much appreciated! Please let us know when your next release is ready for testing and if we need to make any changes to support the integration. We release |
We've released a new version 1.9.0 with a workaround that should fix the issues. However, we're working on a new shortcut registering mechanism that should fix the issue properly :) |
I have confirmed that AceJump's Enter/Shift+Enter functionality now works again with the latest version of IdeaVim. Thanks for looking into this Alex! We will now release |
Describe the bug
Feature "Pressing Enter or Shift+Enter during a search will cycle through tagged results on screen" doesn't work in new version AceJump
To Reproduce
Screenshot
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: