Commit Graph
42 Commits
Author SHA1 Message Date
1grzyb1 3b42f660a1 VIM-4259 Put the clipboard back after the backend paste in split mode
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.
2026-11-20 11:14:03 +01:00
1grzyb1 915c322bb4 VIM-2726 Add textobj-quote extension
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.
2026-11-19 10:39:45 +01:00
1grzyb1 9cf19ae343 VIM-2363 Add lion extension
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.
2026-11-18 08:45:04 +01:00
1grzyb1 e3c95eb14b Fix(VIM-4351): Bring back the diff editor with <C-O> in split mode
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.
2026-11-02 10:56:07 +01:00
1grzyb1 a8eb19380a Fix(VIM-4351): Bring back the diff editor with <C-O>
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.
2026-11-02 10:56:07 +01:00
grzybek bdbb3c424e VIM-4338 fis dot scramble after autocomplete
Action listener was registered project wide so it was getting events from multiple projects which scrambled . repeat eventually
2026-10-29 12:15:56 +01:00
1grzyb1 57a6952543 VIM-2342 Keep quickfix list per project 2026-10-26 09:41:18 +01:00
1grzyb1 f1a8ae4789 VIM-2342 Add cprev command 2026-10-26 09:41:18 +01:00
1grzyb1 0f2d81233d VIM-2342 Add cnext to jump to next item in quickfix list
Ggrep works based on quickfix list and we didn't have implementation of that so we need to support it first
2026-10-26 09:41:18 +01:00
1grzyb1 78b82c395f VIM-2342 Add fugitive extension with grep command 2026-10-26 09:41:18 +01:00
grzybek f03d41e2fc VIM-1309 Don't move caret on middle paste in x11 2026-10-20 07:32:23 +00:00
1grzyb1 9e142d4401 VIM-1975 implement clever-f extension 2026-10-12 12:06:01 +02:00
1grzyb1 30c876dd59 VIM-2293 Add vim visual multiple extension
Extracted base class to nto duplicated code in both multi cursor extensions. new one has different mappings for some actions
2026-10-08 11:25:42 +02:00
1grzyb1 2ec828b529 VIM-1314 Replace mode paste with cmd+v
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
2026-10-01 11:54:35 +02:00
Grzybek b00370888a VIM-1306 Add keylog extension (#2096)
Extension that logs all typed keys
2026-10-01 10:56:08 +02:00
1grzyb1 4ab0520d9a VIM-2627 Configure ideavimrc path
Allow users to define custom locations of ideavimrc with path expansions and ij macros
2026-09-11 11:46:06 +02:00
1grzyb1 ee899f6227 VIM-2089 Implement Visual Star Search extension 2026-09-08 12:26:39 +02:00
1grzyb1 baef79a4b7 VIM-1974 implement textobj-line extension 2026-09-04 12:57:09 +02:00
1grzyb1 d8a32a1c62 VIM-4321 Set configurable key in xml 2026-09-03 09:42:33 +02:00
1grzyb1 d34b861aff VIM-1370 ctrl-t to pop from tag stack 2026-08-26 11:01:35 +02:00
1grzyb1 6ff778148c VIM-1347 Implement signature marks plugin
With this plugin local marks are also shown on toolbar
2026-08-25 11:36:19 +02:00
1grzyb1 1ac974e3d1 VIM-2168 store jumps per jumpsListId instead of project
Now depending on windowjumps option we store jumplist based on window or whole project. this enables stroing diffrent jump history for each split window
2026-08-19 13:30:24 +02:00
1grzyb1 f6143f8de5 VIM-301 Cycle through yanked values 2026-08-05 12:36:37 +02:00
1grzyb1 4a94518074 VIM-330 Add zg command to mark word as correct 2026-07-27 12:09:08 +02:00
1grzyb1 409b04c9a4 VIM-4281 update output panel theme on change
Listen for changes in theme and update output panel theme on that change
2026-07-21 11:28:44 +02:00
1grzyb1 b24b8f5ec4 VIM-1850 Implement keymap option
when this option is set ideavim loads keymap from file
2026-07-21 09:43:45 +02:00
1grzyb1 9ed0cb6509 VIM-1341 Open url with gx command
Implement gx command to open url using OS native process like real vim does which allows to open both brower urls or any other applications
2026-07-15 11:35:12 +02:00
1grzyb1 8a13d58a08 VIM-3100 handle basic text object user
hadnle simple user mappings defined with `textobj#user#plugin` function
2026-07-09 12:46:15 +02:00
1grzyb1 dd5bd38f5c VIM-4267 rename vim-indentwise to indentwise plugin
We have convention of naming plugin without `vim-` prefix
2026-06-30 11:29:34 +02:00
1grzyb1 be8934a983 VIM-2116 indentwise motion for previous lesser indent
wip
2026-06-26 11:01:48 +02:00
1grzyb1andClaude Opus 4.8 79502800e3 VIM-1960 Add targets.vim extension: pair text objects
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>
2026-06-16 11:32:00 +02:00
1grzyb1 c74e767159 VIM-1025 Add control chars editor
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.
2026-06-10 08:13:15 +00:00
1grzyb1 990d75af55 VIM-1617 YouCompleteMe plugin support
Add plugin that allows to cycle through completion using tab instead of arrow keys
2026-06-09 09:02:59 +00:00
1grzyb1 643b76e069 VIM-1984 Implement CamelCaseMotion plugin 2026-06-02 09:48:32 +00:00
1grzyb1 0fa82885bb VIM-2078 Adding new abbreviations and expanding them on trigger 2026-05-29 08:25:40 +00:00
1grzyb1 c7c82fa580 VIM-1362 Implement vim abolish plugin 2026-05-20 10:40:45 +00:00
1grzyb1 be91bf2504 VIM-833 implement command history actions
Add `q:` `q/` and `q/`
2026-05-19 10:05:00 +00:00
1grzyb1 2917f0d15e VIM-380 add support for a method and a class vim object 2026-05-15 06:21:41 +00:00
1grzyb1 3b268f38c3 VIM-4217 Persist widget state
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
2026-05-13 11:32:29 +00:00
1grzyb1 5d6622b77e Use only jbr cache repository 2026-05-13 09:48:47 +00:00
1grzyb1 2b4a4eeff4 Add jbr cache repo per module 2026-05-13 08:45:11 +00:00
1grzyb1 7bf2c9196d Align content module names with plugin.xml so 2026.1 finds them 2026-05-12 08:06:28 +00:00