Skip to content
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

Open
pkozikow opened this issue Jun 3, 2014 · 10 comments
Open

Cursive keyboard mappings conflict with IdeaVim #384

pkozikow opened this issue Jun 3, 2014 · 10 comments

Comments

@pkozikow
Copy link

pkozikow commented Jun 3, 2014

A simple option do disable all special mappings altogether would take care of this.

@pkozikow
Copy link
Author

pkozikow commented Jun 3, 2014

Most of these went away after disabling "use structural editing". If I don't run into any more I'll close this.

@cursive-ide
Copy link
Owner

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.

@pkozikow
Copy link
Author

pkozikow commented Jun 4, 2014

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.

@cursive-ide
Copy link
Owner

I see - interesting, thanks. I'll check that - cross plugin communication is a little tricky, but that may be possible, I'll check.

@cursive-ide
Copy link
Owner

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.

@pkozikow
Copy link
Author

pkozikow commented Jun 4, 2014

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.

@jacksonja
Copy link

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.

@cursive-ide
Copy link
Owner

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.

@awebneck
Copy link

awebneck commented Jan 2, 2015

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. :-/

@cursive-ide
Copy link
Owner

BTW I've added an IdeaVim issues wiki page to collect information relating to IdeaVim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants