Commit Graph
1951 Commits
Author SHA1 Message Date
Mia Vucinic d09af15eb2 refactor transaction interface 2025-07-21 21:06:38 +02:00
Mia Vucinic cca73409bb refactor read interface 2025-07-21 21:06:38 +02:00
Mia Vucinic 71599ff01c rename highlighter to highlighter id 2025-07-21 21:06:38 +02:00
Mia Vucinic 2ec01d636b rename onPlugin listeners and delete onReplaceCharChange listener 2025-07-21 21:06:38 +02:00
Mia Vucinic 494da27353 make forEachCaret use sorted carets by default 2025-07-21 21:06:38 +02:00
Mia Vucinic f51d4af762 change functions to fields in caret read and change signatures of the text functions, update ReplaceWithRegister new api implementaion 2025-07-21 21:06:38 +02:00
Mia Vucinic dd9c1fdbdc get rid of register type 2025-07-21 21:06:38 +02:00
Mia Vucinic 8a505fd807 fix replace with register extension implementation 2025-07-21 21:06:38 +02:00
Mia Vucinic 0f9e8d3ad5 get rid of unnecessary text manipulation options in transaction functions, change tests and delete previous (incomplete) implementation of these functions 2025-07-21 21:06:38 +02:00
Mia Vucinic 9b91b16d88 move test for parseVariableValue function to service package and rename it
- since the parseVariableValue function was moved to variable service, tests for it are moved to a different file and package
2025-07-21 21:06:38 +02:00
Mia Vucinic 5a645f044d move parseVariableValue to variable service 2025-07-21 21:06:38 +02:00
Mia Vucinic 9eb7bb48d0 put exception messages in the properties file 2025-07-21 21:06:38 +02:00
Mia Vucinic 1c33a4e651 modify getNullableVariableValue to work when editor, context or vimContext is not available 2025-07-21 21:06:38 +02:00
Mia Vucinic fdb3b8814a add initial implementation for changing modes 2025-07-21 21:06:38 +02:00
Mia Vucinic 6248b7a879 move getFocusedEditor to editor group and delete editor service 2025-07-21 21:06:38 +02:00
Mia Vucinic c2203afebc fix transaction and getVariable tests 2025-07-21 21:06:38 +02:00
Mia Vucinic 260b4d62d6 add implementation for highlighted yank plugin 2025-07-21 21:06:38 +02:00
Mia Vucinic 5ad55ad891 have mapping owner and listener owner passed as parameters in all scopes where necessary 2025-07-21 21:06:38 +02:00
Mia Vucinic bdaf0e2389 remove unnecessary options 2025-07-21 21:06:38 +02:00
Mia Vucinic 91fdc91f69 add proper implementation for put data functions 2025-07-21 21:06:38 +02:00
Mia Vucinic 764a45c99a fix get variable test 2025-07-21 21:06:38 +02:00
Mia Vucinic abbc46a3ed add a mapping owner to vim scope 2025-07-21 21:06:38 +02:00
Mia Vucinic 98f8226246 add listener scope implementation 2025-07-21 21:06:38 +02:00
Mia Vucinic d2f73a6102 add a listener owner to all listeners 2025-07-21 21:06:38 +02:00
Mia Vucinic 267313a2e0 get rid of editor as a constructor parameter in scopes 2025-07-21 21:06:38 +02:00
Mia Vucinic 55d2371574 add editor service 2025-07-21 21:06:38 +02:00
Mia Vucinic 3a63ed596f add implementation with templates for getVariable function 2025-07-21 21:06:38 +02:00
Mia Vucinic 24a0322b5a add more functions to the read 2025-07-21 21:06:38 +02:00
Mia Vucinic 1a968f7721 move update caret to caret transaction 2025-07-21 21:06:38 +02:00
Mia Vucinic 02a8a84728 rename editor to vimEditor 2025-07-21 21:06:38 +02:00
Mia Vucinic 6a896664ed introduce editor scope 2025-07-21 21:06:38 +02:00
Mia Vucinic 4d01f286f5 introduce caret scope 2025-07-21 21:06:38 +02:00
Mia Vucinic f1cb9247d1 add mapping scope 2025-07-21 21:06:38 +02:00
Mia Vucinic e946e74840 merge two mappings into one 2025-07-21 21:06:38 +02:00
Mia Vucinic 4db3e91d6a huge refactoring
- In the `api` module:
  - remove dependency on `vim-engine` module due to circular dependencies
  - move implementations of scopes to the `vim-engine`
  - add VimPluginDsl annotation to interfaces
  - make VimScope abstract class
  - remove ScopeBuilders file and move scope builders to the VimScope abstract class
 - In the `vim-engine` module:
  - add dependency on `api` module
  - add implementation of scopes
  - in VimInjector add new field - pluginService (reason for that is because functions from VimExtensionFacade are not available in the VimEngine)
2025-07-21 21:06:30 +02:00
Mia Vucinic cf95ea1fc9 add a proper implementation for getVariableInt 2025-07-21 21:05:43 +02:00
Mia Vucinic 8ea9b29e5e first api draft 2025-07-21 21:05:43 +02:00
Matt EllisandAlex Plãte 7d44c87873 Move ex prompt character out of API
The prompt character is now implemented as a custom view, only in the UI, and not inserted directly into the text. This simplifies management of the text (and removes/fixes an exception due to manually handling prompt offset), and also allows highlighting of the prompt character.
2025-07-21 18:43:28 +03:00
Matt EllisandAlex Plãte b67c3d7bab Add extra logging details
Randomly hit this condition, but don't know how
2025-07-21 18:43:28 +03:00
Matt EllisandAlex Plãte 261b910845 Add tests for rendering control characters 2025-07-21 18:43:28 +03:00
Matt EllisandAlex Plãte 2a603a681c Simplify implementation of VimInputInterceptor 2025-07-21 18:43:28 +03:00
Matt EllisandAlex Plãte ddf1612d11 Fix scrolling issues editing long command lines
Instead of replacing the whole string, which will reset scroll position, delete or insert the required text/offsets, and let the text field manage scroll position
2025-07-21 18:43:28 +03:00
Matt EllisandAlex Plãte bf32c5d5b5 Render control characters in ex cmdline 2025-07-21 18:43:28 +03:00
Matt EllisandAlex Plãte 0e9c3d9d87 Replace constants with enum 2025-07-21 18:43:28 +03:00
Matt EllisandAlex Plãte 654b95147b Simplify command line keystroke dispatching
Pass the keystroke to the key handler directly rather than relying on the superclass to call a default action handler that would do the dispatching
2025-07-21 18:43:28 +03:00
Matt EllisandAlex Plãte 56e6ecca89 Update history command and add tests 2025-07-21 18:43:28 +03:00
Matt EllisandAlex Plãte 055a3bc910 Remove deprecated and unused history related code 2025-07-21 18:43:28 +03:00
dependabot[bot]andgithub-actions[bot] 8c40e19c44 Bump org.mockito.kotlin:mockito-kotlin from 5.4.0 to 6.0.0
Bumps [org.mockito.kotlin:mockito-kotlin](https://github.com/mockito/mockito-kotlin) from 5.4.0 to 6.0.0.
- [Release notes](https://github.com/mockito/mockito-kotlin/releases)
- [Commits](https://github.com/mockito/mockito-kotlin/compare/5.4.0...v6.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-16 19:15:13 +03:00
dependabot[bot]andgithub-actions[bot] d1ec7d617d Bump org.junit.jupiter:junit-jupiter-engine from 5.13.2 to 5.13.3
Bumps [org.junit.jupiter:junit-jupiter-engine](https://github.com/junit-team/junit-framework) from 5.13.2 to 5.13.3.
- [Release notes](https://github.com/junit-team/junit-framework/releases)
- [Commits](https://github.com/junit-team/junit-framework/compare/r5.13.2...r5.13.3)

---
updated-dependencies:
- dependency-name: org.junit.jupiter:junit-jupiter-engine
  dependency-version: 5.13.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-09 18:56:55 +03:00
Xinhe WangandAlex Plãte 353603b546 Fix(VIM-3266): Set FileSaveCloseAction to OTHER_SELF_SYNCHRONIZED 2025-07-07 10:55:53 +03:00