Rider has no speculative undo, so the undo stack is on the backend. The
backend applies the frontend's changes as undo-transparent patches,
merges all of them into one undo step, and undoes all transparent steps
on top of the stack at once. So one `u` undid every change IdeaVim made
since the backend's own last command, e.g. both deletions after `x x`.
Before each command that follows a change, the frontend now asks the
backend to end the undo step. If the step has only the frontend's
changes, the backend merges a no-op non-transparent action into it first,
so it's undone on its own.
It relies on how the platform merges undo steps, so it's a workaround
until RIDER-145069 is fixed.
With ideaput the register goes into the clipboard for the IDE paste and is
removed from the clipboard history afterwards. The frontend of split mode uses
FrontendCopyPasteManager, which keeps no history: removeContent() does nothing
and getAllContents() holds only the current system clipboard content, which is
not a TextBlockTransferable. So the removal was never even tried, and the
register text stayed in the system clipboard, replacing what another
application had copied.
Read the previous text from any transferable, and when the clipboard still
holds the register text after the removal, set the previous content back.
The CI agents have no git user configured, so the commit in the test
setup failed with "Author identity unknown" and the whole class failed
with an initializationError.
Cmd+B and Ctrl+Click run the IDE's Go to Declaration, which IdeaVim doesn't
see, so only the IDE's navigation history records them, mirrored into the
jump list by 'ideaunifyjumps'. The history knows a diff tab only as a
whole, without a caret, so JumpsListener dropped such places.
For a place in an open diff tab, JumpsListener now asks the tab for its
caret on the side the user works in. Navigating away to another file
leaves that caret where it was, so it is the place the IDE recorded.
JumpInfo carries the diff source over RPC. JumpsListener runs on the
backend, where diff tabs live in split mode too.
A removal is not mirrored for a diff tab: its caret says nothing about the
older place the IDE drops.
The tests wait before navigating like the IDE: for a short while after any
jump, the jump list ignores the IDE's navigation, which would otherwise
mirror IdeaVim's own jumps a second time. That window also drops the IDE's
places mirrored from its history, which is left as it is here. The
split-mode test project gets a module with `src` as a source root, so that
Java resolves the declaration.
In split mode the diff tab lives on the backend: the frontend only shows
it, with editors that mirror the backend's ones. IdeaVim runs on the
frontend, so it found no diff tab and fell back to the plain file.
- The diff code moved to ideavim-common, so it runs on both sides, and
uses only the platform: the backend has no IdeaVim injector. The
frontend looks for a local diff tab first (monolith), and otherwise
asks the backend through JumpRemoteApi. The mirrored editors share the
backend editors' EditorId, so the backend finds the real diff editor.
- On the backend, split mode keeps a diff tab in its own file editor
(DiffRequestDirectTransferEditor), which exposes the diff only as a
`processor` property. There is no public API for it, so it is read by
reflection, with the old behaviour as the fallback.
- A write action can't wait for the backend, so a jump recorded during
one stays a plain file jump, as before.
- The left side of a diff from version control has a document with a
LightVirtualFile, so it counted as "in the file": such a jump was saved
across restarts and came back as the plain file at the wrong line.
Only a file on disk counts now. The tests use such a left side too.
Two jump bugs showed up on the way, not specific to diffs:
- <C-O> could stay where the caret already was, when the IDE had already
recorded that place as the newest jump (e.g. after clicking another
file in the Commit tool window). Leaving the newest end of the jump
list now adds the place of the caret first, which replaces the older
jump to it, and then goes back, as Vim does.
- In split mode, jumping to a file that wasn't open didn't place the
caret: selectEditor looked for the frontend editor right after the RPC,
before the frontend has it, so the file opened wherever it was last
left. The backend now opens the file at the position, for jumps, marks,
the tag stack, the change list and quickfix.
For large files running search count blocked edt which caused IDE freezes.
Now we first try to quickly show coutn and if we are not able in given threshold move it to other thread and later on update UI accordingly.
Additionally added tests for large files
* 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
Wrap the undo-mark only when there's actual replay work (count > 1, block insert, or dot-repeat) — otherwise the always-fired wrap on plain `iHi<Esc>` emitted an empty mark group that swallowed the first `u`.
The VIM-4234 rollback dropped both Java 25→21 *and* ideaVersion 2026.1→2025.3
because Java 25 was incompatible with the platform. The Java rollback was the
necessary fix; the IDE-version rollback was a side change that broke 3
split-mode tests due to 2025.3 JBC regressions in speculative undo and
`IdeDocumentHistoryImpl.RecentPlacesListener.isChanged`.
Java 21 + IntelliJ 2026.1 is the prior known-working combination
(`Ideavim_IdeaVimTests_2026_1` build config has been green on master), so
restoring it here gets all 24 split-mode tests passing again. Verified
locally and on TeamCity personal build #16791.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The 262 EAP refactored ide-starter (commit aa3d516047 in
intellij-community, "AT-2967 Compile time dependency on dedicated
IDE info"): IdeProductProvider was removed, and per-IDE info now
lives in dedicated modules accessed via IdeInfo.Companion.IdeaUltimate.
Constructing IdeInfo directly is the only form that compiles on
both 261 (default ideaVersion=2026.1) and 262 (LATEST-EAP-SNAPSHOT),
since the IdeInfo data-class signature is unchanged across the
refactor. Values mirror DefaultIdeaUltimate from the new
intellij.tools.ide.starter.product.idea.ultimate module.
This unblocks :tests:split-mode-tests:compileTestKotlin on the
Latest EAP TeamCity build, which was failing with "Unresolved
reference 'IdeProductProvider'".
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Implements g; and g, to walk through the per-buffer change list, mirroring Neovim's b_changelist semantics. The list is fed by the backend's RecentPlacesListener over an RPC topic (the same pattern as the existing jump service), so it works in both monolith and split mode.
in split mode/clion/ rider, after the comment action runs on rpc, it happens after removing selection. To fix that, we execute handler directly in synchronous way