Commit Graph
1953 Commits
Author SHA1 Message Date
Filipp Vakhitovandfilipp 02540eb303 Pass KeyHandlerState as a method argument 2024-02-23 15:09:45 +02:00
Filipp Vakhitovandfilipp 282e581bdb Make state cloneable 2024-02-23 15:09:45 +02:00
Filipp Vakhitovandfilipp 31e7c49608 Add equals & hashCode 2024-02-23 15:09:45 +02:00
filipp 7966a6dc91 Create KeyHandlerState
We do not need multiple commandBuilder, digraphSequence or mappingState and this class will be a singleton containing them
2024-02-23 15:09:45 +02:00
filipp 5fc2f04224 Remove mappingMode from MappingState
It unnecessarily binds mappingState to mode and thus to editor. And we want to simplify things and have a single MappingState instead of multiple of them
2024-02-23 15:09:45 +02:00
filipp 6edfd8ed22 Remove deprecated showmode status bar text update that does not work with the new UI and will be replaced with widget 2024-02-23 15:09:45 +02:00
filipp 363db05db7 Macro recording state is no longer per editor
It will not only simplify VimStateMachine, but also help us to support multi-editor macros in future
2024-02-23 15:09:45 +02:00
filipp 3738012dd6 Listeners refactoring
1. Listeners now disposed after turning plugin off
2. Change widget listeners to be recreated on plugin toggle
3. Add CaretVisualAttributesListener
2024-02-23 15:09:45 +02:00
filipp 355cfe035d Remove Editor from VimStateMachine
Rationale:
1. A much more experienced developer, whom I highly respect, suggested to empty VimStateMachineImpl constructor in his TODO comment.
2. I aim for VimStateMachine to be a data class rather than being a container for both data and complex logic.
3. From an architectural perspective, it is more correct. Editors do have state (or they may possess a single global state if the corresponding option is set), but a state does not own an editor.
2024-02-23 15:09:44 +02:00
chylexandAlex Pláte 6dd924b2b2 Implement motions to go to next/previous misspelled word 2024-02-23 10:17:25 +02:00
Matt EllisandAlex Pláte f439474b73 Fix set command tests
Also hides more feature flags and diagnostic settings from users and unit tests. Shows them when in internal mode.
2024-02-23 10:04:23 +02:00
Matt EllisandAlex Pláte d6cd92e256 Migrate extensions to use operatorfunc option 2024-02-23 10:04:23 +02:00
Matt EllisandAlex Pláte 3a294268d9 Introduce operatorfunc option
Allows creating custom operators in script, as shown in JetBrains/ideavim#702
2024-02-23 10:04:23 +02:00
Alex Plate 9b81c7e650 Update junit version 2024-02-23 10:03:30 +02:00
dependabot[bot]andgithub-actions[bot] 9fc3fadee8 Bump org.antlr:antlr4 from 4.10.1 to 4.13.1
Bumps [org.antlr:antlr4](https://github.com/antlr/antlr4) from 4.10.1 to 4.13.1.
- [Release notes](https://github.com/antlr/antlr4/releases)
- [Changelog](https://github.com/antlr/antlr4/blob/dev/CHANGES.txt)
- [Commits](https://github.com/antlr/antlr4/compare/4.10.1...4.13.1)

---
updated-dependencies:
- dependency-name: org.antlr:antlr4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-21 17:42:05 +02:00
Alex Plate 73c3c9f7fe Replace Enum.values() with Enum.entries, as suggested since 1.9 2024-02-20 16:12:34 +02:00
Alex Plate 328bc5e95a Convert some services to light services 2024-02-20 16:10:07 +02:00
Alex Plate 12d0d2613f Allow sneak plugin to be registered with the original mappings from the sneak plugin 2024-02-13 19:20:41 +02:00
chylexandlippfi f69630b668 VIM-3238 Fix recording a macro that replays another macro 2024-02-10 20:05:47 +02:00
Alex Plate 4937985e2c Bump kotlin version from 1.8.21 to 1.9.22
One of the reasons for that is that 1.9.22 allows internal classes to be available in testFixtures from java KT-34901.
2024-02-07 09:29:15 +02:00
Alex Plate 855dbfab16 Fix issues with enter in python console
VIM-3287
2024-02-05 18:31:43 +02:00
Filipp Vakhitovandlippfi 63995e8c61 Support e flag for search 2024-02-05 16:29:49 +02:00
Filipp Vakhitovandlippfi 6386770ff3 Move more tests to src 2024-02-05 16:29:49 +02:00
Filipp Vakhitovandlippfi b4e831a81f Fix VisualAreaMatcher & TextRange 2024-02-05 16:29:49 +02:00
Filipp Vakhitovandlippfi 9b283360ce Minor improvements 2024-02-05 16:29:49 +02:00
Filipp Vakhitovandlippfi fabbd4d156 Better SelectionInfo implementation 2024-02-05 16:29:49 +02:00
filippandlippfi 9bea5bf5f7 Remove deprecated code 2024-02-05 16:29:49 +02:00
filippandlippfi 9fbc990493 Fix visual matching 2024-02-05 16:29:49 +02:00
filippandlippfi b05fdaaa73 Fix tests 2024-02-05 16:29:49 +02:00
filippandlippfi 52d5d4d64c Fix Keyword token 2024-02-05 16:29:49 +02:00
filippandlippfi 6ec712466c Fix StartOfWordMatcher & EndOfWordMatcher 2024-02-05 16:29:49 +02:00
filippandlippfi 6616b8dc07 Simplify MarkMatchers 2024-02-05 16:29:49 +02:00
filippandlippfi 807457c718 Hide method and add Deprecated annotation 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi 13d2a40903 removing print 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi 022b196d6a adding comments and small refactors 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi 7a64216830 getting rid of usages of deprecated classes 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi bf7d2bd465 marking classes as deprecated 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi 6e97b591de fixing some error messages 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi fc7c470966 fixing nohlsearch command 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi 51492ca121 moving seach methods back to VimSearchGroup base 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi ce1df84330 creating new IjVimSearchGroup class 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi 9b43e2a715 working on kotlin implementation of SearchGroup class 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi 732cabd6aa working on processSearchCommand 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi 7c14801d5c deprecating most of SearchHelper 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi 8fd6985316 deprecating SearchHelper find and findAll 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi feac001499 substitute command working with new engine 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi 4c47e3a8eb integrating new regex into global command 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi 7773b625a5 \c token can't get overrided by \C 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi abe1abec72 test for \c token always taking priority 2024-02-05 16:29:49 +02:00
Emanuel Gestosaandlippfi 023838a96b working on implicit DFA algorithm optimization 2024-02-05 16:29:49 +02:00