Commit Graph
2222 Commits
Author SHA1 Message Date
1grzyb1 d63510c7b8 VIM-1082 folds at begining of line 2026-06-19 13:19:30 +02:00
1grzyb1 aff1d4db63 VIM-1082 delete fold only when motion covers start of region
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
2026-06-19 13:19:30 +02:00
1grzyb1 78ebb9122c VIM-1082 motions over fold regions
motions on closed fold regions didn't take into account this fold region so dd only deleted first line without collapsed content
2026-06-19 13:19:30 +02:00
1grzyb1 d9773e1293 Keep VimSearchHelper plugin backward compatibility 2026-06-18 11:38:41 +02:00
1grzyb1 a042964c4e VIM-3049 Use existing C-Y handler
needed to make InsertCharacterAboveCursorAction SingleExecution as otherwise exception was thrown that accept on lookup cannot be called inside run for each
2026-06-17 12:51:51 +02:00
1grzyb1 b8a0b40b27 VIM-3049 accpet completion with ctrl+Y 2026-06-17 12:51:51 +02:00
1grzyb1 e43cb52c05 VIM-3049 close completion with ctrl+E 2026-06-17 12:51:51 +02:00
1grzyb1 a6a721a737 VIM-2883 support split option to show modified line
Enhanced VirtualBufferGroup with refresh method and opening without stealing focus so we can dynamiclly show lines that will be replaced
2026-06-17 10:58:53 +02:00
1grzyb1 c70cc7764d VIM-2883 Implement incremental search
when inccomand option is not empty editor will incrementally update text during substitute
2026-06-17 10:58:53 +02:00
1grzyb1 8a9553d4d7 VIM-2544 Adjust option tests for new option 2026-06-12 11:00:08 +00:00
1grzyb1 76acd08388 VIM-2544 Implement max search count option 2026-06-12 11:00:08 +00:00
1grzyb1 9d8d146078 VIM-2544 Update search after moving caret
When we were updating match count in search highlit carret was still in old position which resulted in incorrect calculations
2026-06-12 11:00:08 +00:00
1grzyb1 90bea363a7 VIM-2544 show search count in output panel
Added new status label on output panel in which we display current search count
2026-06-12 11:00:08 +00:00
Matt Ellis f0c22272ff Implement g< action to show last output 2026-06-12 06:24:51 +00:00
Matt Ellis 7c78f1a51e Show hit-enter prompt for external commands 2026-06-12 06:24:51 +00:00
Matt Ellis f21ebe046a Support modeless selection and copy to clipboard
In both output panel and ex entry panel
2026-06-12 06:24:51 +00:00
Matt Ellis 90b8e005ae Support 'cmdheight' option for "single-line" output 2026-06-12 06:24:51 +00:00
Matt Ellis 856ad4ff86 Update more prompt to match Vim text and behaviour 2026-06-12 06:24:51 +00:00
Matt Ellis 73fbc7681c Clear single-line message after timeout
Introduces the `'messagesopt'` option, plus handling of options that are key/value pairs + flags
2026-06-12 06:24:51 +00:00
Matt Ellis 00900dd03f Clear single line message with Escape 2026-06-12 06:24:51 +00:00
Matt Ellis da6befdb60 Include output panel when checking scroll height 2026-06-12 06:24:51 +00:00
Matt Ellis 5fefedd5ed Add tests for output panel
Changes to UnknownCommand are due to a test for output panel with an unknown command that was returning a string with a trailing space.
2026-06-12 06:24:51 +00:00
Matt Ellis cdb9d595bc Remove unnecessary APIs from thin API
There is no reason for a caller (presumably an extension) to need to know what the text of the output panel is, or to get/set the prompt text
2026-06-12 06:24:51 +00:00
Matt Ellis a579c87bfa Remove unnecessary APIs from interface 2026-06-12 06:24:51 +00:00
Matt Ellis 9a94e2b33c Use simpler API to show output panel 2026-06-12 06:24:51 +00:00
1grzyb1 781f8101f8 VIM-4250 preserve cursor pistion with one column diff
when going jk between lines with just 1 column difference and going back it moved one column before.
It was due to not normilzed offset so when doing k went to AbsoulteOffset and didn't save last column position
2026-06-11 08:50:42 +00:00
Matt Ellis a222cf0464 Fix output of maps when prefix match fails 2026-06-10 10:21:52 +00:00
1grzyb1andClaude Opus 4.8 1ec4241372 Read ~/.debug.ideavimrc when running the dev IDE
Add an `ideavim.use.debug.ideavimrc` flag (VimRcService.USE_DEBUG_VIMRC_PROPERTY):
when set to "true", IdeaVim prefers ~/.debug.ideavimrc over ~/.ideavimrc,
falling back to the regular file if the debug one is absent. The runIde
Gradle task sets the flag so development runs can use a separate config
without touching the real ~/.ideavimrc.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 08:53:21 +00:00
1grzyb1 2961707664 VIM-1025 Syntax highlighting in control chars editor 2026-06-10 08:13:15 +00:00
1grzyb1 1370b8820d VIM-1025 Notify about control chars editor 2026-06-10 08:13:15 +00: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 e1a19a869f VIM-2431 use count to repeat mapped action 2026-06-08 08:31:50 +00:00
Alex Plate ce372eada8 Fix(VIM-3459): smartcase should not affect star search highlighting
findAll silently ignored its ignoreCase parameter and re-derived case
sensitivity from the global smartcase/ignorecase options. As a result,
using * on a capitalized word with 'smartcase' enabled performed a
case-insensitive search but highlighted only the case-sensitive matches.

findAll now honors an explicit ignoreCase request: smartcase is skipped
and ignorecase is forced when the caller has already resolved case
handling. Behavior is unchanged when ignoreCase is false, so existing
callers are unaffected.

Cherry-picked from #1466 by davidot.
2026-06-02 17:30:31 +03:00
1grzyb1 2107442040 Fix(VIM-4245): Batch caret events in block-visual to unfreeze split mode
In split mode every per-caret event drove PatchEngineEditorSynchronizer, which walks all carets to build a model and ships an RD-protocol message per event — block-visual motion fires N caret events × O(N) per event = O(N²) per keystroke on the host, freezing the EDT.

Bulk caret-mutating sites (block-visual setVisualSelection, exitVisualMode's secondary-caret removal, repeatInsert's row-by-row replay) now run inside caretModel.runForEachCaret so beforeAllCaretsAction/afterAllCaretsAction fire and the synchronizer batches per-event sends into one end-of-op snapshot; a new CaretVisualAttributesListenerSuppressor gates IdeaVim's own EditorCaretHandler.updateCaretsVisualAttributes to drop the same O(N²) walk on the local side.
2026-05-29 13:22:05 +00:00
1grzyb1 145e05d76f VIM-2078 ! in abbrev listing 2026-05-29 08:25:40 +00:00
1grzyb1 d7d9d9c7a5 VIM-2078 Use iskeyword option in abbrev 2026-05-29 08:25:40 +00:00
1grzyb1 1b0e39899d VIM-2078 Added <expr> in abbreviation parsing and handling 2026-05-29 08:25:40 +00:00
1grzyb1 5c2f1e7301 VIM-2078 added buffer scoped abbreviations 2026-05-29 08:25:40 +00:00
1grzyb1 c06640fe71 VIM-2078 invalidate abbreviation session when caret moves 2026-05-29 08:25:40 +00:00
1grzyb1 3bbc5a0c9e VIM-2078 command line abbreviations 2026-05-29 08:25:40 +00:00
1grzyb1 1857b1a1bf VIM-2078 Added clearing abbreviations 2026-05-29 08:25:40 +00:00
1grzyb1 0fa82885bb VIM-2078 Adding new abbreviations and expanding them on trigger 2026-05-29 08:25:40 +00:00
claude[bot]andClaude Sonnet 4.6 1d6f16794e Clean up dead code and unnecessary verbosity in MultiVisitor
- Remove dead if/else in visitRange: both branches returned the same
  Multi.RangeMulti value, making the condition a no-op
- Simplify `?: run { 0 }` to `?: 0` in limited lookbehind visitors;
  a run block with a single constant expression adds no value

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 15:58:50 +03:00
claude[bot]andClaude Sonnet 4.6 5786cb7bf7 Fix incomplete KDoc comment on PatternVisitor.hasUpperCase
The comment "Determines whether the visited tree contains" was missing
what the tree contains; it now reads "contains uppercase characters".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 15:58:50 +03:00
1grzyb1 14e7cfe0e7 VIM-4245 Fix repeat-insert undo grouping so one u reverts one logical change
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`.
2026-05-22 09:41:25 +00:00
dependabot[bot] 004602e59b Bump org.junit.vintage:junit-vintage-engine from 6.0.3 to 6.1.0
Bumps [org.junit.vintage:junit-vintage-engine](https://github.com/junit-team/junit-framework) from 6.0.3 to 6.1.0.
- [Release notes](https://github.com/junit-team/junit-framework/releases)
- [Commits](https://github.com/junit-team/junit-framework/compare/r6.0.3...r6.1.0)

---
updated-dependencies:
- dependency-name: org.junit.vintage:junit-vintage-engine
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-20 20:50:20 +00:00
claude[bot]andClaude Sonnet 4.6 6178f423d4 Fix code style issues in mapping/digraph function handlers
- Remove double space in DigraphGetFunctionHandler
- Add missing space before != in MapFunctionHandlerBase
- Add missing space before colon in MapCheckFunctionHandler class declaration
- Move else keyword to same line as closing brace in MapSetFunctionHandler
- Remove unnecessary blank line after function opening brace in MapSetFunctionHandler

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 07:24:19 +03:00
Matt Ellis 550652e9af Restore compatibility for external plugins 2026-05-20 07:23:37 +03:00
1grzyb1 be91bf2504 VIM-833 implement command history actions
Add `q:` `q/` and `q/`
2026-05-19 10:05:00 +00:00
Matt Ellis 02c522b352 Fix histget() with omitted index 2026-05-19 12:51:26 +03:00