Commit Graph
5765 Commits
Author SHA1 Message Date
Matt Ellis 080c2059ee Format unset global-local toggle options 2023-07-31 11:28:32 +03:00
Matt Ellis a288850010 Add support for resetting option to global value 2023-07-31 11:28:32 +03:00
Matt Ellis 16811602d2 Support global-local options 2023-07-31 11:28:32 +03:00
Matt Ellis 749d111e89 Reset options for current editor only
Matches Vim behaviour for `:set all&`
2023-07-31 11:28:32 +03:00
Matt Ellis 365d8d34ce Introduce AUTO scope for effective option values 2023-07-31 11:28:32 +03:00
Matt Ellis ced25bbf28 Initialise options when opening windows/buffers
Note that this temporarily changes the semantics of `:set` to always set the local option, instead of setting the global option (because we now eagerly initialise local values). Neither is correct, but we don't yet have a way to support the proper behaviour.
2023-07-31 11:28:32 +03:00
Matt Ellis 7e1ce5a203 Use Vim terminology in storage service 2023-07-31 11:28:32 +03:00
Matt Ellis aeec754f7e Override IjVimEditor.toString for better debugging 2023-07-31 11:28:32 +03:00
Matt Ellis 9a3fcb56a1 Support local-to-buffer options
Previously, all local options were treated as local-to-window
2023-07-31 11:28:32 +03:00
Matt Ellis aff956f4c8 Update parsed value cache for declared scope 2023-07-31 11:28:32 +03:00
Matt Ellis 0f49fd6406 Introduce declared scope for all options 2023-07-31 11:28:32 +03:00
Filipp Vakhitov 0201acb5f7 Fix test 2023-07-28 20:09:09 +03:00
Filipp Vakhitov dfbefe96da Fix(VIM-802): IdeaVim vs. Vim: discrepancies in using registers 2023-07-28 19:58:51 +03:00
filipp a71b35097f Fix(VIM-2246): X11/Xorg Primary selection register "* not supported 2023-07-28 19:56:42 +03:00
filipp 0058f81e76 VIM-3022 Search is broken in folded regions 2023-07-27 01:03:12 +03:00
Matt Ellis 6bd1782c4b Fix OS specific values in tests 2023-07-19 18:04:02 +03:00
Matt Ellis 2f5d402c61 Support :set! to output as a single column 2023-07-19 18:04:02 +03:00
Matt Ellis a78e21a167 Use soft wraps instead of hard wraps in ex output
Hard wraps require figuring out the width of the panel, and all we have is the width of the associated editor, which excludes gutter, etc. Easier to let the UI toolkit handle it
2023-07-19 18:04:02 +03:00
Matt Ellis 2e9b626523 Fix formatting of value pair options 2023-07-19 18:04:02 +03:00
Matt Ellis 4487b8904c Sort options output before formatting
Sorts on option name, not including "no" prefix for toggle options
2023-07-19 18:04:02 +03:00
Matt Ellis 1f01f915dc Remove trailing padding from options list 2023-07-19 18:04:02 +03:00
Alex Plate 834d1476ce Replace VimDataContext with a dataContextWrapper
This should fix some issues like
https://jb-web.exa.aws.intellij.net/report/16130069
https://jb-web.exa.aws.intellij.net/report/16092668
2023-07-14 16:58:26 +03:00
filipp a769a8d1a4 Fix(VIM-2818): Wrong caret position after multicaret paste 2023-07-14 16:24:36 +03:00
filipp ece8c3821d Add test for VIM-481 2023-07-14 16:00:54 +03:00
filipp 2bc0c4c41b Better buffer storage 2023-07-14 15:06:03 +03:00
filipp 58ad8417e5 Fix vim logger 2023-07-14 13:22:32 +03:00
samabcde d3f942aebc VIM-2920 fix select block expansion when enclose boundary is line break 2023-07-07 11:46:41 +03:00
Ludwig Valda Vasquez 28887c1da2 Update VimMessages#updateStatusBar to accept VimEditor
This is required for vim support in Fleet.
2023-07-07 10:57:56 +03:00
filipp 2582f1e907 Fix(VIM-1294): unvoluntary unfolding when using ideavim 2023-06-30 12:32:41 +03:00
Alex Plate 13139966ea Implement UserDataHolder for out VimDataContext
This is needed for fix Rider issues with put: https://youtrack.jetbrains.com/issue/RIDER-94213/StackOverflowError-when-using-GotoDeclaration-action-or-gd-with-IdeaVIM-plugin-in-Rider-2023.2#focus=Comments-27-7617177.0-0
2023-06-30 10:50:38 +03:00
filipp c376feb4d8 Fix(VIM-2685): Register command outputs different values for same registers 2023-06-27 17:40:56 +03:00
filipp fa0bcfa37a Remove duplicate file 2023-06-23 17:19:37 +03:00
filipp 6b70b11ffc Focus active tab after :tabclose 2023-06-23 17:05:09 +03:00
filipp e474075778 Basic support for commands that were not added to grammar 2023-06-23 15:18:57 +03:00
filipp 1205bb67f2 VIM-2973 Multiline editing like "ciw" doesn't work well when have remappings to stop c and d from using the default register 2023-06-21 01:20:46 +03:00
filipp 10bcd20cd8 Retire obsolete commands
With all the gratefulness for 20 years of service. Thank you, pioneers of our plugin's legacy.
2023-06-20 15:59:09 +03:00
filipp 3a2e6e018d Add missing command tests 2023-06-20 15:59:09 +03:00
Alex Plate 2468c359a4 Disable test warning 2023-06-15 13:23:00 +03:00
Martin Yzeiri dd490967d3 Add Matchit PHP patterns 2023-06-12 10:39:45 +03:00
Martin Yzeiri 391202877a Extract tagNamePattern to an argument
Providing a custom tagNamePattern makes it easier to interop with
languages like PHP.
2023-06-12 10:39:45 +03:00
Martin Yzeiri c48acd8fb7 Simplify JavaScript PSI checks
The less than/greater than operators are the only binary expressions in
the JS patterns, so the extra PSI checks are redundant.
2023-06-12 10:39:45 +03:00
Martin Yzeiri c8428258fe Switch to linkedMapOf
mapOf happens to give us LinkedHashMaps, but we'll use the explicit
constructor since insertion order matters for PatternsTables.
2023-06-12 10:39:45 +03:00
Alex Plate 7b71af9e1d Fix(VIM-2964): Fix an issue with leaking caret instance
Now I use the subscription to the disposer, but I think we can update it to the flow
2023-06-06 16:12:54 +03:00
Alex Plate 51c464f8d2 Fix out of bounds exception 2023-06-06 12:07:33 +03:00
filipp cc2de42415 Moving from gorgeous YAML to good old JSON 2023-06-06 10:42:42 +03:00
filipp c9b9bb6cf8 Remove generated files for tests 2023-06-06 10:42:42 +03:00
filipp 434d882314 Add vimscriptfunctionannotation option 2023-06-06 10:42:42 +03:00
filipp 617d9d90ed Add excommandannotation option 2023-06-06 10:42:42 +03:00
filipp f456e0a8dd Fix tests 2023-06-06 10:42:42 +03:00
filipp 4d907213c3 Split ex-commands in YAML 2023-06-06 10:42:42 +03:00