Commit Graph
4848 Commits
Author SHA1 Message Date
Alex Plate b7396fdf8c Fix formatting 2021-06-30 10:31:27 +03:00
Alex Plate e8f0e31a27 Correct caret for selecting from the end for 212+ versions of IJ 2021-06-30 10:29:51 +03:00
Matt Ellis 64be75142e Use guicursor options to draw ex caret 2021-06-29 17:05:11 +01:00
Matt Ellis f05123123c Use guicursor instead of editor cursor settings
This changes VIM-1475 and ignores IntelliJ's "use block cursor" setting in favour of guicursor. Also affects caret placement around inlays and handling of template hotspots via idearefactormode
2021-06-29 00:21:19 +01:00
Matt Ellis 2f73dac57a Force the caret visible when updating attributes
Changing EditorSettings.setBlockCursor does this via EditorImpl.updateCaretCursor
2021-06-28 23:48:27 +01:00
Matt Ellis a6087dd08f Use replace mode caret for change character action 2021-06-28 23:42:36 +01:00
Matt Ellis ad19dc0100 Use guicursor options to draw caret 2021-06-28 23:09:21 +01:00
Matt Ellis d19c776ec3 Minor refactor 2021-06-28 23:08:29 +01:00
Matt Ellis ccd792bf62 Provide hook for resetting cached values 2021-06-28 23:08:22 +01:00
Matt Ellis 9cf0a1ac26 Report errors while parsing guicursor option 2021-06-28 23:06:49 +01:00
Matt Ellis 43620c280d Add guicursor option 2021-06-28 23:04:58 +01:00
Alex Plate 98ffb3bf9e [VIM-1672] IdeaVim correctly populates clipboard history 2021-06-28 11:48:09 +03:00
Alex Plate 4cc4fb4d3c [VIM-1192] Fix dollar motion from single-command 2021-06-28 09:21:32 +03:00
Alex Plate 16d9a3ba8b Join till character motions into the single file 2021-06-28 08:19:27 +03:00
Alex Plate a01fc5d72c Remove useless condition 2021-06-28 07:24:30 +03:00
Alex Plate f4e777b8df [VIM-2336] Fix repeat for 'T' movement 2021-06-28 07:24:15 +03:00
Alex Plate 232dd34717 [VIM-2317] Fix memory leak 2021-06-24 10:38:15 +03:00
Matt EllisandAlex Pláte 982d6921cb Fix formatting 2021-06-24 10:13:36 +03:00
Matt EllisandAlex Pláte bb28b76a5b Support % as shortcut for file name in filter 2021-06-24 10:13:36 +03:00
Matt EllisandAlex Pláte 67fed0da9e [VIM-1566] Use OS shell to execute filter command 2021-06-24 10:13:36 +03:00
Matt EllisandAlex Pláte e3cf50b4c9 [VIM-1357] Invoke shell filter commands with proper path and argument handling
Also moves the filter command out of a write action, and under a cancellable modal progress dialog. Any errors are substituted into the text, as per Vim.

Fixes #VIM-1357
2021-06-24 10:13:36 +03:00
Matt Ellis 9f46e1960e Fix typo 2021-06-10 13:51:43 +01:00
Matt Ellis e93a619859 Make ListOption generic + create StringListOption 2021-06-10 13:51:23 +01:00
Matt Ellis 287ba7055e Simplify BoundedListOption 2021-06-10 11:29:20 +01:00
Matt Ellis dfbec1f23a Rename "bound" options to "bounded" 2021-06-10 11:18:57 +01:00
Matt Ellis 55dedb4c4d Remove resetShape method
We should avoid setting the shape explicitly, and let it update when the mode changes.

Note that shape can affect the visual position of the caret around inlays (e.g. 'a' at the end of a rename hotspot with a trailing inlay for options will remain in between the text and the inlay, while 'l' in command mode will move after the inlay. Both positions are at the same text offset). We should still avoid explicitly setting shape before moving the caret. We can't guarantee the order of changing mode and moving the caret, so we update the visual position at the current offset when changing mode. (We're also currently using mode as an assumption of shape)
2021-06-10 11:05:41 +01:00
Matt Ellis 9c71b444c6 Update caret visual attributes when mode changes
Removes updateCaretState and unnecessary usages
2021-06-05 01:04:01 +01:00
Matt Ellis e859b1c131 Remove resetCaret 2021-06-05 00:33:04 +01:00
Matt Ellis 6c4bd9cc10 Refactor caret shape functions 2021-06-05 00:21:58 +01:00
Matt Ellis b50281f8d5 Extract caret shape methods to helper 2021-06-05 00:14:10 +01:00
Matt Ellis 2be0f5cedb Reset caret visual position after mode changes
Fixes an issue where the caret was incorrectly positioned because it was moved before the mode was changed. This wasn't visible in 211 because a couple of bugs in the platform combined to put the caret in the right place.

See #280, IDEA-262153 and KTIJ-3768
2021-06-04 17:05:03 +01:00
Matt Ellis 646a89d52a Refactor showMode update 2021-06-04 16:45:07 +01:00
Alex Plate b5b6c8f37a fix(sethandler): Correct presentation on settings page 2021-06-03 10:44:23 +03:00
Alex Plate 067aaa798d setHandler: fix parsing of a mapping 2021-06-03 10:12:38 +03:00
Alex Plate c85d7dcd7a Do not save the executed command to history 2021-06-02 10:54:11 +03:00
Alex Plate c1b1f1efd8 Add tests for nested global commands 2021-06-02 10:31:49 +03:00
Alex Plate 06fc25cf3b Remove TODO 2021-06-01 16:31:40 +03:00
Alex Plate 91139005dc Suppress some deprecated methods 2021-05-29 11:21:05 +03:00
Alex Plate 08f29bacfd feat: Support :print command 2021-05-28 11:51:54 +03:00
Alex Plate 5a6803551b Fix typo 2021-05-28 10:29:34 +03:00
Alex Plate e1f0098164 Add custom inspection to use vimRunForEachCaret 2021-05-27 22:33:05 +03:00
Alex Plate 14428aaf49 Formatting 2021-05-27 22:01:49 +03:00
Alex Plate f9ebfcc467 Use RangeMarker for marking lines 2021-05-27 12:50:48 +03:00
Alex Plate 07446309d3 Finish command even after an exception 2021-05-27 12:50:48 +03:00
Alex Plate d2de23481a Add clarification what is weird 2021-05-27 12:50:47 +03:00
Alex Plate d8ead10c0f Add gotInt variable 2021-05-27 12:50:47 +03:00
Alex Plate 6a38188602 Add tests for incorrect :g command 2021-05-27 12:50:47 +03:00
Alex Plate 13884e9524 Add error message about failed search command 2021-05-27 12:50:47 +03:00
Alex Plate 1ff629e257 Add tests for global command 2021-05-27 12:50:47 +03:00
Alex Plate 67649a1746 Extract search_regcomp function 2021-05-27 12:50:47 +03:00