Shifting lines took the current indent width from the editor's logical
column, which expands tabs with the editor's tab size, but built the new
indent with the code style tab size. When those differ (e.g. language
injections, indent detection), each shift added stray spaces after the tabs.
Only <C-]> pushed onto the tag stack, so Ctrl+Click and the other ways to run Go to Declaration left nothing for <C-T>
to return to: it reported an empty stack or went back to an older <C-]>. The tag stack is now filled by the IDE action
listener for Go to Declaration, Go to Type Declaration and Go to Implementation, however they are invoked: mouse,
shortcut, <Action> mapping, :action, <C-]> and gd.
:tag without an argument redoes a jump that is already on the stack by running Go to Declaration again. It passes
TAG_STACK_PLACE as the action place, which travels with the event even when the action runs asynchronously, so the
listener can skip it. The place goes through a new VimActionExecutor overload to keep the published API compatible.
Rider's ReSharper navigation still isn't covered: the IDE hides the real action behind a composite there.
* VIM-1153 replay all keystrokes during .
we were storing actions and commands to replay during . repeat. Due to that we had to do a lot of strange logic to move cursor after ide chagnes. Becouse of that renaming tag element didn't work.
To make it work and more vim like we store real keystrokes and replay them
* VIM-1153 replay autocomplete
in new mechanism C-Y was working on active lookup and during replay there was no lookup. to fix that we go through action path which adds those keys by itself but we need to drop C-Y from RedoBuffer stack as it's replaved by actruall charachters
* VIM-1153 Fix other lookup actions
* VIM-1153 keep lookup commands as separate ones
Extracted all lookup commands as separate handlers as it was confusing to have seprate paths depending on isActiveLookup in handlers
`didAutoIndent` was set for `o`, `O` and Enter as well as for `cc` and `S`,
so leaving Insert mode without typing anything deleted the indent of a line
that had just been opened.
Vim does delete it, and it does so for an indent computed by 'indentexpr' or
'cindent' too (`fixthisline()` in indent.c). This is a deliberate difference:
in the IDE the indent comes from language support, and a line you have just
opened is expected to stay where it is. `cc` and `S` still follow Vim, since
there the line held text a moment ago and its leftover indent is noise.
Allow to disbale char-ise block comments.
Original plugin doesn't support comment part of line.
Here we add `commentary_block_comments` variable to allow to disable it
We had discreppancy between ideavim implementation of multi-cursor plugin and original one as we defined different mappings.
Here we restore original mapping and add flag to switch to old IdeaVim alt-based mappings
We shouldn't mimic exactly vim here as it always remove whole line with fold region but in ij fold might be in middle of line or just end of it so we don't want to delete fold content whne we do dl in middle of line
normally space is added by rider/clion backend which we cannot directlly execute as it is not running on JVM. Workaround is to specify space flag for comment handler
Formatting was broken in split mode and also in monolith mode cursor position restoring didn't match vim actual behaviour. refactored it to work in same way as commenting works