With ideaput, the register is put into the clipboard for the IDE paste and the
clipboard is put back afterwards (VIM-4371). In split mode the backend executes
the paste again with its own clipboard, which is synced from the frontend.
Since 2026.3 (IJPL-254899) the backend runs the action after a hop to the EDT,
so the clipboard that was put back reaches it first, and the backend pastes the
old system clipboard over the register text.
The frontend editor action handler completes a continuation from the data
context once the backend has executed the action. A new frontend split module
puts it there, and the clipboard is put back only after it completes, with a
timeout. Before 2026.3, or with the document synced by Rhizome, the clipboard
is still put back right away.
Several puts in a row are all sent before the first one is pasted on the
backend, so the clipboard is put back once, after the last of them. Until then
each put and each read of the clipboard register take the content from before
the first put, and a write of the clipboard by IdeaVim drops the pending
restore.
Port of preservim/vim-textobj-quote, requested in VIM-2726. Adds the iq/aq
text objects for text inside typographic double quotes and iQ/aQ for
single ones, so prose with curly quotes can be changed, deleted or
selected the same way as text in straight quotes.
A closing ’ followed by a letter or a digit is taken for an apostrophe,
nested quotes of the same kind are skipped, and the keys and the quote
characters can be changed with the g:textobj#quote#doubleMotion,
g:textobj#quote#singleMotion, g:textobj#quote#doubleDefault and
g:textobj#quote#singleDefault variables. Educating quotes while typing
is left for a separate change.
Port of tommcdo/vim-lion, requested in VIM-2363. Adds the gl and gL
operators that align the text covered by a motion or a Visual selection
to a character, so lists of assignments, maps or tables don't have to be
aligned by hand.
Supports a count, a number before the character to start at a later
occurrence, <Space> to align words, / to align to a pattern, the
g:lion_create_maps, g:lion_map_right, g:lion_map_left, g:lion_prompt and
b:/g:lion_squeeze_spaces variables, characterwise and blockwise
selections limited to their columns, and dot-repeat.
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.
A jump only stored the file and line, so a jump recorded in a diff tab
came back as the plain file. Jumps now record where they were made
(JumpSource): a plain editor, or a side of a diff tab.
- The position is kept per side of the diff, not per view. The user can
switch a tab between side-by-side and unified at any time, so each view
translates the side's line to its own editor.
- A side that shows the file itself can come back in any other diff of
the file, or as the plain file once no diff shows it: the file looks
the same everywhere. A side showing anything else (e.g. the old
revision) only exists in its own tab, so once that tab is closed its
jump is dropped from the list and <C-O> goes on to the next one. Such
jumps are not saved across restarts.
- A tab can show many files one at a time. Which files and how to switch
depends on the tab, so it is behind DiffTabFiles: "Show Diff" chains
in the core, and previews that follow a tree of changes (Commit, VCS
Log, Shelf, staging) in the new optional ideavim-vcs module, because
ChangeViewDiffRequestProcessor lives in intellij.platform.vcs.impl.
- Selecting the file in the tree is protected before 2026.3, so older
IDEs only switch the preview and it follows the tree again on the next
refresh. 2026.3 adds showChange(FilePath), called by reflection until
it is the minimum version.
- One rule decides which jumps are the same place (Jump.isSamePlaceAs):
file, line and source. The same line in a diff and in a plain editor
are two jumps. The ' mark records its jump with the editor's source,
otherwise it duplicated the diff jump as a plain file one.
- The API keeps seeing only files: jumps added through it are plain file
jumps.
To be vim compatible we need to wrap idea paste during replace mode.
Vim is pasting and replacing text and we were inserting it before cursor.
So to this we wrap paste action handler and in replace mode we handle it by ourselves
Now depending on windowjumps option we store jumplist based on window or whole project. this enables stroing diffrent jump history for each split window
First cycle of porting wellle/targets.vim. Registers the "targets"
extension and implements the pair source: triggers ( ) { } [ ] < > with
the B and b (any-block) aliases, the i/a/I/A modifiers, the n/l
next/last qualifiers, counts, current-line seeking, and visual-mode
growing. Driven by VimTargetsPairTest (41 tests).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
It adds new action that opens special kind of editor where user can paste and yank control cahrachters like ^M ^[.
Normally IDE doesn't allow showing them especially ^M is always turned into \n s othere was no way of editing macros.
Previously we changed widget variables from vim variables to global one but those are not being persisted. We should not persist then so we've decided to persist them in `ModeWidgetSettings` and override if user will manually set global variable