Completely disable mouse selection in IDEA/Android Studio - android-studio

I'm using the IdeaVim plugin for Android Studio, which introduces vim selection semantics and insert/normal mode. When there is a selection, something akin to visual mode is used. However, it is possible to select text while inside either of these modes, and the result is some hybrid insert-visual mode which is highly confusing and leads me to tons of accidental edits (i.e. clicking an editable area sometimes puts me in a mode I don't understand).
If I could completely disable mouse selection (using mouse only to select text, like set mouse=ni), it would make the editor much more comfortable, as this is my preferred vim selection mechanic.
There seems to be no standard option for disabling mouse selection. Is some modification feasible?
I still need to be able to select text using IdeaVim visual mode, i.e. v followed by cursor keys.

Related

Make Android Studio autopop up not change constrast

In Android Studio, pressing the up an down arrows will change the contrast of the autopopup bar.
Before
After
This also occurs in the default themes. Is there anyway to make the contrast start in the after position, even without pressing any arrows?
The popup is dimmed to indicate that there is no default selection for completion. It depends on context and in some cases the first entry will be selected automatically, while in the other cases you need to select the completion varian with the arrow keys first.
To get the pre-selection work automatically in IntelliJ IDEA and Android Studio enable the Insert selected suggestion by pressing space, dot, or other context-dependent keys option:
In some other cases it may be also necessary to add
-Dide.completion.lookup.element.preselect.depends.on.context=false
in Help | Edit Custom VM Options and restart the IDE.
Related issue: https://youtrack.jetbrains.com/issue/IDEA-193090.

Is there a way in Android Studio to use Ctrl+tab to navigate to recently used editor?

Is there a way in Android Studio to use Ctrl+tab to navigate to recently used editor?
Android Studio has two types of switching methods, as can be seen on the keymap settings:
"Recent Editors" - shows a list of recent editors but you need to leave the ctrl key and click up/down keys then another click to select the relevant editor.
"Switcher" - shows a quick list of recent editors. Setting Ctrl+tab to this will behave like many of the other editors in the market: Notepad++, Visual Studio, Eclipse ADT, etc...
You can use Ctrl+E to list last opened or edited files, use arrow key to move up and down.
Ctrl + tab is already doing that! it shows the switcher having the most recently used editor highlighted, after releasing Ctrl key it will switch to the editor, if you keep holding the Ctrl then there are 2 ways to navigate through the switcher, either by Tab, or by up and down arrows with Enter.
Another way is Navigate-> Back/Forward which will move cursor between edit locations in same file and move along to other files, the default key mapping for those are (Alt +Ctrl + Left)/(Alt +Ctrl +Right), which conflicts with windows mapping, Personally I am using Eclipse key mapping, so they are (Alt + left)/(Alt + right).
Don't forget that you can change any key mapping or add an extra key mapping from File->Settings->Keymap

VsVim: Is there a way to dismiss ReSharper intellisense and stay in insert mode?

When using VsVim and ReSharper, I type something that brings up the intellisense window. I want to make it go away, so I press the escape key. The intellisense window is gone, but I'm also back in normal mode.
Is there a way to make the intellisense window go away and stay in insert mode?
I'm currently working on a guide for working with VsVim and Resharper ( https://github.com/keithn/vsvimguide )
One of the little tricks I found for this situation is to press Alt then Alt again and it gets rid of the autocomplete.
What it's actually doing is taking you to the menu bar then takes you back to editing but ditches the autocomplete in the process.

Disabling mouse support on ideavim

Is there a way to disable mouse support in file edition on ideavim? It is really annoying that it enters into visual mode each time I click.
It isn't possible to have the same behavior as vim without mouse in terminal, but can I have it on pycharm's ideavim?
I also hate when the editor suddently goes into visual mode when I accidentally drag with the mouse. I ended up modifying the ideavim source and compiled my own version. I got the idea from another answer https://stackoverflow.com/a/24256022/598781
I just return immediately in the EditorMouseHandler.mouseDragged method. i.e. changed line 1772 in the file ideavim/src/com/maddyhome/idea/vim/group/MotionGroup.java to:
if (true || !VimPlugin.isEnabled()) return;
This change could have some consequences, but I don't use mouse select anyway.
It's not possible to disable mouse support in Vim emulation. Note however that IdeaVim switches to Visual selection mode only when you're selecting text with the mouse. Simple clicks shouldn't make IdeaVim enter visual selection mode.
You should try :set selectmode=mouse,ideaselection. It is a workaround but that worked for me.
https://github.com/JetBrains/ideavim/blob/master/doc/set-commands.md

Tab/Window group movement: (Ctrl-W)(Ctrl-L), etc

I noticed that in the list of supported features for VsVim tab group movement was listed.
I've been trying to use CTRL-W CTRL-K and CTRL-W CTRL-L, but I haven't been able to get them to move between tabs. I was wondering if I needed to do anything in the settings to get this to work properly.
I'm currently using the VsVim on Visual Studio 2013.
For a long time, CTRL-l and CTRL-h were not implemented. I have implemented them and they should be available as of the next release of VsVim. They do work across tab groups. In the meantime, if you are anxious to have them, you could grab an AppVeyor build.
Also CTRL-j and CTRL-k are available already. However, they don't move between tab groups; they move between actual Visual Studio horizontal window splits. It is tough to map Vim buffers/windows/tabs onto Visual Studio tabs/tab groups/splits/documents...

Resources