1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2026-06-15 10:16:32 +02:00
Commit Graph

1985 Commits

Author SHA1 Message Date
dependabot[bot]
c1944f1369 Bump org.mockito.kotlin:mockito-kotlin from 6.1.0 to 6.2.2
Bumps [org.mockito.kotlin:mockito-kotlin](https://github.com/mockito/mockito-kotlin) from 6.1.0 to 6.2.2.
- [Release notes](https://github.com/mockito/mockito-kotlin/releases)
- [Commits](https://github.com/mockito/mockito-kotlin/compare/v6.1.0...v6.2.2)

---
updated-dependencies:
- dependency-name: org.mockito.kotlin:mockito-kotlin
  dependency-version: 6.2.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-21 15:35:02 +00:00
Grzybek
0264e1cd75 VIM-566 Add zA toggle folding support 2026-01-21 16:48:36 +02:00
Matt Ellis
9bffb4f42f Fix min arity for remove() function 2026-01-09 19:12:27 +02:00
Matt Ellis
3cdea85df4 Move common functions to collectionFunctions
Add a new package for functions that apply to both List and Dictionary, as well as some String functions (where a String is treated like a collection of characters). Trying to group some functions that shouldn't just sit at top level
2026-01-09 19:12:27 +02:00
Matt Ellis
cc1122b3b6 Rename file 2026-01-09 19:12:27 +02:00
Matt Ellis
5adff67ec8 Add List uniq() function 2026-01-09 19:12:27 +02:00
Matt Ellis
8340be8459 Add List sort() function 2026-01-09 19:12:27 +02:00
Matt Ellis
9fbee06890 Add filter() function 2026-01-09 19:12:27 +02:00
Matt Ellis
4bf947a143 Fix comparison of String and Number 2026-01-09 19:12:27 +02:00
Matt Ellis
5225c409d8 Add List reduce() function 2026-01-09 19:12:27 +02:00
Matt Ellis
17eddab2ac Add map() and mapnew() functions 2026-01-09 19:12:27 +02:00
Matt Ellis
00fee97117 Add List indexof() function 2026-01-09 19:12:27 +02:00
Matt Ellis
fd9b283df1 Add call() function
Vim lists call() as part of List functions. We document it the same way so we can cross-reference, but it's not really a List function, so it's implemented with varFunctions
2026-01-09 19:12:27 +02:00
Matt Ellis
e6b863f1ca Add List+Dictionary foreach() function 2026-01-09 19:12:27 +02:00
Matt Ellis
ea209d5c94 Refactor function and funcref functions 2026-01-09 19:12:27 +02:00
Matt Ellis
88fa7c2a29 Add doc comment 2026-01-09 19:12:27 +02:00
Matt Ellis
648cebf8d5 Encapsulate calling named function 2026-01-09 19:12:27 +02:00
Matt Ellis
e2adf0af51 Handle range for builtin functions 2026-01-09 19:12:27 +02:00
Matt Ellis
1333051ad8 Make range an argument instead of a field 2026-01-09 19:12:27 +02:00
Matt Ellis
bd0edb01b6 Introduce BuiltinFunctionHandler base class 2026-01-09 19:12:27 +02:00
Matt Ellis
0f9923128d Update doc comment 2026-01-09 19:12:27 +02:00
Matt Ellis
7600d96d0a Improve handling of dictionary functions
VimFuncref is no longer mutable, since the instance can be shared between variables. A dictionary function must be invoked with a Funcref that captures the dictionary; when accessing a dictionary entry that is a function, the returned value is a newly created partial function that captures the dictionary. This helps fix some issues when printing a dictionary and/or dictionary function with `echo`, including a stack overflow.
2026-01-09 19:12:27 +02:00
Matt Ellis
5e5005f068 Rename FunctionCallExpression for clarity 2026-01-09 19:12:27 +02:00
Matt Ellis
603d7bc886 Remove function from public API 2026-01-09 19:12:27 +02:00
Matt Ellis
1f4e8f110e Fix missing parameter for resource 2026-01-09 19:12:27 +02:00
Matt Ellis
5e74cfdad7 Rename file 2026-01-09 19:12:27 +02:00
Matt Ellis
df48c41904 Add List flattennew() function 2026-01-09 19:12:27 +02:00
Matt Ellis
95d3aad9ff Add List flatten() function 2026-01-09 19:12:27 +02:00
Matt Ellis
1afd730083 Add error handling to reverse() function 2026-01-09 19:12:27 +02:00
Matt Ellis
3e23903d95 Rename file 2026-01-09 19:12:27 +02:00
Matt Ellis
5d4dd891e6 Add List+Dictionary extendnew() function 2026-01-09 19:12:27 +02:00
Matt Ellis
f27cafbae3 Add List+Dictionary extend() function 2026-01-09 19:12:27 +02:00
Matt Ellis
e1ddf7780f Add List+String slice() function 2026-01-09 19:12:27 +02:00
Matt Ellis
4103291d1a Add List+Dictionary+String items() function 2026-01-09 19:12:27 +02:00
Matt Ellis
727b94e6ff Add Dictionary values() function 2026-01-09 19:12:27 +02:00
Matt Ellis
d07a154a77 Add Dictionary keys() function 2026-01-09 19:12:27 +02:00
Matt Ellis
94736d2339 Add List+Dictionary remove() function 2026-01-09 19:12:27 +02:00
Matt Ellis
dc335e5178 Add List insert() function 2026-01-09 19:12:27 +02:00
Matt Ellis
52a1774f11 Add Dictionary has_key() function 2026-01-09 19:12:27 +02:00
Matt Ellis
6f553ec3c0 Add List add() function 2026-01-09 19:12:27 +02:00
Matt Ellis
ed50fa28f5 Refactor argument handling for functions 2026-01-09 19:12:27 +02:00
Matt Ellis
0e2349baac Refactor min/max args for function handler 2026-01-09 19:12:27 +02:00
Matt Ellis
12ab94452b Update error message for min and max functions 2026-01-09 19:12:27 +02:00
Matt Ellis
fa06644ece Move functions to more appropriate packages 2026-01-09 19:12:27 +02:00
Alex Plate
a476583ea3 Fix(VIM-4108): Use default ANTLR output directory for Gradle 9+ compatibility
ANTLR generated files were being included twice in sourcesJar, causing
duplicate entry errors in Gradle 9+. Removed custom outputDirectory to
use the default build/generated-src/antlr/main/ location, following
Gradle best practices.

- Remove custom outputDirectory from generateGrammarSource task
- Update .gitignore (remove obsolete src/main/java generated paths)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-05 18:14:19 +02:00
Alex Plate
5c0ca43cf0 Refactor: Replace FLAG_TEXT_BLOCK with preserveSelectionAnchor property
Replace the FLAG_TEXT_BLOCK command flag with a more descriptive
`preserveSelectionAnchor` property in TextObjectActionHandler.

This property controls what happens when the selection anchor is outside
the target text object range in visual mode:
- true (default): extends selection from current anchor
- false: jumps to select only the text object

Commands like iw/aw preserve anchor (extend), while structural text
objects like i(/a(, i"/a", is/as reset anchor (jump).

Also adds comprehensive documentation with examples to both the
internal handler and the public API.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 16:28:22 +02:00
Alex Plate
3852b0b737 Fix(VIM-4105): a" a' a` text objects now include surrounding whitespace
Per Vim docs: "Any trailing white space is included, unless there is
none, then leading white space is included."

Previously IdeaVim only selected the quotes and content without any
surrounding whitespace.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 15:38:47 +02:00
Alex Plate
850c2272b7 Add optional lambda and return scope for chaining in VimApi
Make lambda parameters optional and return scope objects in:
- mappings(), textObjects(), outputPanel(), commandLine(), digraph()

This enables both lambda style and chained style usage:
- Lambda: mappings { nmap("jk", "<Esc>") }
- Chained: mappings().nmap("jk", "<Esc>")

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 11:11:18 +02:00
Alex Plate
76bd4387ac Add text object registration API to VimApi
Introduce TextObjectScope for registering custom text objects via the
plugin API. Text objects can be used with operators (d, c, y) or in
visual mode.

- Add TextObjectScope interface with register() method
- Add TextObjectRange sealed interface (CharacterWise/LineWise)
- Implement TextObjectScopeImpl using IdeaVim's internal mechanisms
- Migrate VimTextObjEntireExtension from Java to Kotlin using new API
- Add textObjects() function to VimApi

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 10:59:07 +02:00
Alex Plate
b11f8a1895 Fix(VIM-4094): UninitializedPropertyAccessException in VimHistoryBase
Use lazy initialization for logger to avoid accessing injector during
static class initialization when the service is loaded.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 13:17:18 +01:00