-
Notifications
You must be signed in to change notification settings - Fork 7
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
Cursive keyboard mappings conflict with IdeaVim #384
Comments
Most of these went away after disabling "use structural editing". If I don't run into any more I'll close this. |
Can you give me an example of how these conflict? I'm actually looking at some IdeaVim problems at the moment but I don't use it myself. |
When "use structural editing" is enabled, two conflicts I run into all the time in vim's normal mode are '%' and ';'. For example, ';' is supposed to go to the next instance of whatever was searched using f,F,t, or T, but in cursive it would insert a comment instead. There must be a lot of other conflicts since Vim's normal mode uses a lot of keys that are normally used for entering text. Unless one is willing to give up on structural editing completely, the only solution I see is for cursive to be aware of what mode IdeaVim is in (normal or insert), and only enable the special mappings in insert mode. |
I see - interesting, thanks. I'll check that - cross plugin communication is a little tricky, but that may be possible, I'll check. |
BTW the main problem with IdeaVim right now is that ESC doesn't work in the REPL editor. I'm investigating this now, it seems to be by design - looks like it won't work in a lot of places like language consoles, debug watches etc. Hopefully I can work around this. |
As far as I'm concerned ESC works fine, adopting the intellij standard behavior of returning focus to the editor window. The REPL appears alongside run, debug, todo, changes, etc. and for all of those, you can get to them with alt- (each one has a number assigned), and go back to the editor by hitting ESC. |
For me the ESC issue is a constant annoyance. I am frequently in situations where I need to escape while in the REPL, and sending it back to the document window often ends up with me typing in the wrong place and messing up the code. |
Yes, I can imagine this is annoying. There are some more strange bugs too, but they're not specific to the Cursive REPL, they also happen with the Python console. I'm corresponding with the IdeaVim maintainer to see what we can do to fix this, but it's going slowly. |
fwiw, ctrl-[ works as a secondary escape both in vim and IdeaVim, and can be used to that purpose in the REPL without focusing out of it. It's annoying and conflicts with the muscle memory most of us vimists have spent years reinforcing, but at least in the meantime, it works for this purpose. :-/ |
BTW I've added an IdeaVim issues wiki page to collect information relating to IdeaVim. |
A simple option do disable all special mappings altogether would take care of this.
The text was updated successfully, but these errors were encountered: