Commit Graph
5146 Commits
Author SHA1 Message Date
Alex Plate c3fa093d32 Upgrade the code to use the 2025.1 functions 2025-05-08 17:47:35 +02:00
Alex Plate a94d509441 Remove other code deprecations 2025-05-08 17:33:41 +02:00
Alex Plate 12fd5bc79a Remove deprecated functions 2025-05-08 17:20:58 +02:00
Alex Plate 57ecd25640 Refactor MacKeyRepeat.kt in order to remove the deprecated methods use 2025-05-08 17:18:17 +02:00
Alex Plate 09d37ebd38 Convert MacKeyRepeat to kotlin 2025-05-08 17:11:39 +02:00
Alex Plate 81bc3f1f1b Rename .java to .kt 2025-05-08 17:11:39 +02:00
Alex Plate 9e3058dace Code cleanup: remove some deprecations from the source code 2025-05-08 17:04:25 +02:00
M. VandAlex Plãte 35b9eaae3e VIM-2263 Add a not-null assertion operator to getRegister function to since assertions won't be executed if register does not exist 2025-05-07 18:54:26 +02:00
M. VandAlex Plãte 4eee1d3192 VIM-2263 Add additional tests that check the content of the registers 2025-05-07 18:54:26 +02:00
M. VandAlex Plãte 3c2e2bfb68 VIM-3771 Add a smile command with python ascii art 2025-05-07 18:54:12 +02:00
M. VandAlex Plãte 3f75b6db6d VIM-3771 Add a smile command with java ascii art 2025-05-07 18:54:12 +02:00
M. VandAlex Plãte 5fd318bf88 VIM-3771 Add a smile command with kotlin and default ascii art 2025-05-07 18:54:12 +02:00
M. VandAlex Plãte 6d34c70a9d VIM-3771 Rename VirtualFile.kt to VimVirtualFile.kt and add a new property extension 2025-05-07 18:54:12 +02:00
Alex Plate 5bf2b51c5d Add a comment about the change 2025-05-05 17:00:33 +02:00
Ivan.YarkovandAlex Plãte 5959fc2824 RIDER-123506 don't insert line break on enter in insert mode for Rider 2025-05-05 16:59:57 +02:00
Alex Plate a9f9ae3727 Fix(VIM-3786): Make a workaround to fix shift-enter in AI chat 2025-04-29 19:36:05 +03:00
Alex Plate 8bfcd13c33 Fix(VIM-3882): Register the VimShortcutAction to the editor component instead of its wrapper
It turned out the editor.getComponent returns not the editorComponent, but the parent of the component. This caused no problems until the AI plugin started to register enter/esc on the editor component directly. Since an editor component is more specific than the component with vim actions, the vim shortcuts were suppressed.

In this change, we start to register shortcuts on the editor component directly, allowing them to properly work on the same level as AI shortcuts. This is also the level where the shortcuts are supposed to be registered.
2025-04-28 17:55:18 +03:00
Matt EllisandAlex Pláte 70d662fe28 Remove obsolete internal options 2025-04-22 15:48:19 +03:00
Alex Plate 8247392dc3 Fix some compilation warnings 2025-04-16 22:12:36 +03:00
Alex Plate 443e50b55f Add tests for case changing
Mostly to highlight that commands in format `gugu` and `gUgU` don't work for the moment
2025-04-16 19:44:38 +03:00
Alex Plate 1891216182 Fix(VIM-3878): Support ROT13 command g? 2025-04-16 19:44:38 +03:00
Alex Plate 5d2852420a Remove the duplication method for existing the select mode 2025-04-15 09:20:00 +03:00
Matt EllisandAlex Pláte e86503798a Remove special case handling for Plug mapping
While it might not make sense to replay an incorrect `<Plug>` or `<Action>` mapping as characters where they are likely to cause unexpected behaviour as Normal commands, this is standard Vim behaviour (at least for `<Plug>`).

Note that `<Plug>` (and `<Action>`) is a special key code that cannot be typed. In Insert mode, Vim expands it to the text "<Plug>".
2025-04-10 19:32:29 +03:00
Matt EllisandAlex Pláte 9b4f114d61 Refactor MappingProcessor
Extract single implementation for replaying unhandled keys and update to match the longest mapping that fits in the unhandled keys.
2025-04-10 19:32:29 +03:00
Matt EllisandAlex Pláte 3155556832 Reformat and update comments for MappingProcessor
Minor refactorings, should be no changes in logic
2025-04-10 19:32:29 +03:00
Matt EllisandAlex Pláte 07190f38c9 Fix :normal command with multi-letter mapping 2025-04-10 19:32:29 +03:00
Matt EllisandAlex Pláte db116faa32 Fix handling of modes in NormalCommand
All commands are called in Normal, so there is no need to check mode at execution time. The SAVE_VISUAL flag is perhaps poorly named, as it still change to Normal mode, but will save the current selection for commands that need (usually because they interact with IDE features). The `:normal` command does not need the current selection.
2025-04-10 19:32:29 +03:00
Matt EllisandAlex Pláte 58496fa1a1 Uncomment NormalCommandTest.kt 2025-04-10 19:32:29 +03:00
Alex Plate 8af848cef6 Fix(VIM-3861): Fix the debug action execution 2025-03-31 12:33:18 +03:00
Matt EllisandAlex Pláte 6d3bde3ad5 Fix incorrect implementation of DoesNotMatchHandler 2025-03-28 19:07:06 +02:00
Matt EllisandAlex Pláte 3b2b863c88 Update truthy expressions 2025-03-28 19:07:06 +02:00
Matt EllisandAlex Pláte e2cc9c648f Introduce toVimString to match toVimNumber 2025-03-28 19:07:06 +02:00
Matt EllisandAlex Pláte 51ea947ccb Move comparison operator data rules to base class 2025-03-28 19:07:06 +02:00
Matt EllisandAlex Pláte 5f8d552e8a Extract error message 2025-03-28 19:07:06 +02:00
CCCC-LandAlex Pláte 440cab1674 CommentaryTextObject no longer contains spaces to be consistent with neovim 2025-03-28 18:45:42 +02:00
Alex Plate 9322e3b81b Update intellij gradle plugin 2025-03-28 18:40:26 +02:00
Matt EllisandAlex Pláte e232cb3ceb Support 32-bit Unicode codepoints in digraphs
Fixes VIM-3842
2025-03-28 18:13:14 +02:00
Matt EllisandAlex Pláte a33b3980ab Fix unhandled key stroke after surround operation
Fixes VIM-3841
2025-03-28 17:51:14 +02:00
Matt EllisandAlex Pláte 7917c83cb5 Add extra tests for line() function behaviour
It's not obvious that line('v') will return the opposite end of the current selection. Add some tests to highlight this.

Relates to VIM-3838
2025-03-28 17:23:41 +02:00
Matt EllisandAlex Pláte 421c3bbfb8 Support <C-U> in commandToKeys 2025-03-28 17:23:41 +02:00
Matt EllisandAlex Pláte dbd097a91a Fix caret position after :move command
Fixes VIM-3837
2025-03-28 17:23:41 +02:00
Alex Plate 30f019aa18 Fix enter for Clion Nova 2025-03-28 15:35:33 +02:00
Alex Plate 543d8dbb13 Fix(VIM-3856): Disable new way of action execution for CLion 2025-03-28 14:05:53 +02:00
Alex Plate 2800b2d5fc Fix(VIM-3857): Fix pasting for the client 2025-03-28 13:45:13 +02:00
Alex Plate cd27ce8004 Fix(VIM-3852): Fix incorrect cast while checking the shortcuts 2025-03-28 13:27:59 +02:00
Alex Plate b043296cde Fix(VIM-3826): Fix action execution in Rider 243 and older versions
It still doesn't work fine when executing in format `:action ReformatCode` in 243, but with 251 format updates from Rider, it should be fine.
2025-03-27 17:20:23 +02:00
Alex Plate 7144d73488 Mute a slow operation related to VIM-3648 2025-03-27 14:12:55 +02:00
Alex Plate 7c39e9e585 Fix the runForEachCaret exception 2025-03-14 17:40:19 +02:00
Alex Plate abdb6cb906 Fix(VIM-3825): Proper processing of enter for Rider & similar IDEs 2025-03-14 13:39:36 +02:00
Ilya UsovandAlex Plate f40540d114 Fix IdeaVim state after starting the template in remdev scenario
Now the template is properly detected on client as well.

Related: RIDER-118965
2025-03-13 11:50:10 +02:00