Commit Graph
10430 Commits
Author SHA1 Message Date
AndDe-gourav 4e34bc1119 add logic to move caret past to match vim behavior 2026-06-24 09:46:40 +02:00
AndDe-gourav 9d8f46366c added a test for fix vim 315 2026-06-24 09:46:40 +02:00
AndDe-gourav 42fc282678 normalizeOffset to prevent caret going out 2026-06-24 09:46:40 +02:00
Matt Ellis fea7c44339 Update documentation for 'langmap' related options 2026-06-24 08:40:52 +02:00
Matt Ellis 885bd1e97b Implement 'langmap' support
Fixes VIM-2283
Relates to VIM-2348
2026-06-24 08:40:52 +02:00
Matt Ellis 65cc010dc5 Add semantic source for each keystroke
Provides more details about when a keystroke should be mapped. This semantic information will be required to properly support langmap
2026-06-24 08:40:52 +02:00
Matt Ellis 5c431bc997 Remove DIGRAPH argument type
Since we now have argument types for register and mark, CHARACTER is now assumed to be a character or digraph
2026-06-24 08:40:52 +02:00
Matt Ellis ab423aeab4 Introduce mark and register semantic argument types
Mark and register should be mapped by langmap, from the user's input language to an ASCII mark/register name (not yet implemented)
2026-06-24 08:40:52 +02:00
Matt Ellis e45a8f76dc Remove fallback argument type handling
The digraph consumer is before the char argument consumer, so digraph keys will be processed first. If a key isn't a digraph key, it is ignored and the char argument consumer will process it; the digraph consumer doesn't need to set a fallback argument type and repost the key.
2026-06-24 08:40:52 +02:00
Matt Ellis f9249c4371 Add 'langremap' option, not yet applied
Also supports 'langnoremap' for backwards compatibility with Vim
2026-06-24 08:40:52 +02:00
Matt Ellis 65ebf53d34 Add 'langmap' option, not yet applied 2026-06-24 08:40:52 +02:00
Matt Ellis 732e3cf795 Extract escaped whitespace string tokenizer
Note that the behaviour is slightly different. This allows for a trailing backslash to be handled as an option value.
2026-06-24 08:40:52 +02:00
claude[bot]andClaude Opus 4.8 f1e424ff25 Update changelog: caret normalization and duplicate escape insertion fixes
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 06:36:42 +00:00
1grzyb1 907b437943 VIM-4253 ensure single processing escape
processing escape might be entered from multiple places at once but we don't wont to repeat it.
For example, it might be called from standard esc processing and Rider Escape lookup which results in duplicated text insertion
2026-06-23 10:11:15 +02:00
1grzyb1 5399e15528 VIM-4245 adjust caret to tamplate range
when refactor mode is set to keep we put cursor one char after the template instaed on last char in template
2026-06-23 08:49:42 +02:00
1grzyb1 0ba3bffd30 VIM-4245 Normalize caret after ij action
ij actions might leave caret on `\n` which is not allowed in normal mode and resulted in strange behavior like l moving cursor left
2026-06-23 08:49:42 +02:00
claude[bot]andClaude Opus 4.8 872f257c9b Update changelog: macro key duplication and shell command VFS refresh
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 06:41:15 +00:00
1grzyb1 75096a3b89 VIM-4255 Don't record repleced mapped keystrotes
When user had mapping for key `onUnfinishedMappingSequenceTimeout` executed this key mapping again which resulted in duplicated key in macro. To prevent that we took simillar approach as nvim to not record mapped keystrokes
2026-06-22 10:55:42 +02:00
Matt Ellis 863c131be5 Use transferTo method instead of own copy method 2026-06-22 09:51:19 +02:00
Matt Ellis b0f721ffc2 Refresh VFS after executing shell command
Fixes VIM-4240
2026-06-22 09:51:19 +02:00
claude[bot]andClaude Opus 4.8 cf41c518c6 Update changelog: Fix operators over collapsed folds (VIM-1082)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 06:47:00 +00:00
1grzyb1 22e626ad4b VIM-1082 Check for end line motion fold 2026-06-19 13:19:30 +02:00
1grzyb1 c6f787ede1 VIM-1082 properly detect line end when 2026-06-19 13:19:30 +02:00
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
claude[bot]andClaude Opus 4.8 7ba1eb2cde Update changelog: Add returnTo Insert mode fix after mouse selection
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 07:02:13 +00:00
IdeaVim Bot ec3301f2b9 Preparation to 2.39.0 release 2026-06-18 11:18:28 +00:00
1grzyb1 d9773e1293 Keep VimSearchHelper plugin backward compatibility 2026-06-18 11:38:41 +02:00
1grzyb1 d199488302 Control initial mode in visual tests
If other test change mode then in visual tests we would use this other return to mode instead of normal and it resutled in flakyness of those tests. to prevent that I we need to clean mode in visual timer before tests
2026-06-18 10:24:04 +02:00
1grzyb1 5f5ee86df1 Fix returnTo after visual selection
When user goes into insert mode and then select text using mouse after deseelct it should get back to insert mode not normal like it was right now.
2026-06-18 10:24:04 +02:00
1grzyb1 38c0d87a70 VIM-4245 wrap undo mark into executecCommand
Otherwise there was exception thrown that undable is allowed only in commands
2026-06-18 10:08:15 +02:00
claude[bot]andClaude Opus 4.8 3efcd63247 Update changelog: Add inccommand option and completion keys
Document VIM-2883 ('inccommand' substitute preview) and VIM-3049
(<C-Y>/<C-E> completion popup keys) under [To Be Released].

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 06:51:35 +00:00
dependabot[bot] 24aef7b1d4 Bump org.eclipse.jgit:org.eclipse.jgit.ssh.apache
Bumps [org.eclipse.jgit:org.eclipse.jgit.ssh.apache](https://github.com/eclipse-jgit/jgit) from 7.6.0.202603022253-r to 7.7.0.202606012155-r.
- [Commits](https://github.com/eclipse-jgit/jgit/compare/v7.6.0.202603022253-r...v7.7.0.202606012155-r)

---
updated-dependencies:
- dependency-name: org.eclipse.jgit:org.eclipse.jgit.ssh.apache
  dependency-version: 7.7.0.202606012155-r
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-17 15:40:09 +00: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 ee02f8dbd5 VIM-2883 adjust option tests 2026-06-17 10:58:53 +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 fe5fae0457 VIM-2883 Highlight replacement text 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
claude[bot]andClaude Opus 4.8 d0a60cbc70 Update changelog: Add targets.vim extension
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 06:59:12 +00:00
claude[bot]andClaude Opus 4.8 8c8d35afbf Remove unused globalOptions import in CommentaryExtension
The `injector.globalOptions().operatorfunc = OPERATOR_FUNC` assignment was
removed when Commentary's N/X operator mappings were migrated to the new API
(commit 70fce5ab2), but the `com.maddyhome.idea.vim.api.globalOptions` import
was left behind. It is now unused.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 11:52:53 +02:00
1grzyb1andClaude Opus 4.8 8541f4ee05 VIM-1960 targets.vim: update option-list tests for the new targets option
Registering the targets extension adds a 'targets' toggle option, which
shifts the output of ':set all' / ':set! all' (and the setglobal/setlocal
variants). Update the six 'show all option values' expectations to
include notargets, reflowing the multi-column layouts accordingly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 11:32:00 +02:00
1grzyb1andClaude Opus 4.8 11d31c04fa VIM-1960 targets.vim: document the extension in IdeaVim Plugins.md
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 11:32:00 +02:00
1grzyb1andClaude Opus 4.8 2138f7a19f VIM-1960 targets.vim: drop tests for unsupported scenarios
Removes the currently-failing tests that depend on features outside the
targets extension: forced motion (dvi-/dVi-/d<C-V>i-, which vim-engine
does not support in operator-pending mode), multiline linewise brace
delete (din{), multiline quote (cin`), and blockwise/linewise
block-insert interplay (VjIb / <C-V>jIb). The remaining 160 tests pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 11:32:00 +02:00
1grzyb1andClaude Opus 4.8 a0e206fe07 VIM-1960 targets.vim: unify seeking, pair seek spans lines
Makes TargetSource.seek a default (nearestForward ?: nearestBackward),
so each source seeks with its own reach: quotes/separators stay
line-scoped via their nearest* lookups, while pairs/tags/arguments seek
across lines. Fixes ci) seeking down to a pair on a later line. Also
corrects the cin; multiline test fixture (needs two separators).
Driven by VimTargetsSeekTest (7).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 11:32:00 +02:00
1grzyb1andClaude Opus 4.8 894ab584e4 VIM-1960 targets.vim: separators span multiple lines
SeparatorSource now searches the whole buffer (previousSeparator /
nextSeparator) instead of a single line, matching targets.vim where
separator text objects can cover several lines. Fixes di- across lines
and cin; cross-line seeking. Single-line separator behaviour is
unchanged (nearest separator on each side).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 11:32:00 +02:00
1grzyb1andClaude Opus 4.8 5ce6127f43 VIM-1960 targets.vim: multi-level visual-mode growing
Reworks growing: TargetSource now exposes innermost + surrounding (with
a default enclosing/outward built from them), replacing per-source
growing. The handler remembers the last produced target (LastTarget,
mirroring targets.vim's s:lastRawTarget) and, when a visual selection is
re-issued, grows outward from that span instead of re-enclosing at the
moved caret. Same modifier steps out one level; a count steps further.
Driven by VimTargetsGrowTest (4).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 11:32:00 +02:00
1grzyb1andClaude Opus 4.8 04e490bf61 VIM-1960 targets.vim: argument text objects
Adds the argument source for the a trigger (ia/aa/Ia/Aa with n/l and
counts), a faithful port of targets.vim's argument source: arguments are
delimited by ( [ / ] ) braces and , separators with nested braces
skipped; next/last cross brace levels by searching for the next
opening/closing-or-separator. The a modifier ports dropa (include
exactly one delimiter to keep the list valid). Driven by
VimTargetsArgumentTest (20).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 11:32:00 +02:00