Commit Graph
5765 Commits
Author SHA1 Message Date
Alex Plate 534fbe1a6b Tests: reset repeat between tests 2021-07-26 19:07:46 +03:00
Alex Plate 19b51a4a69 Add docs for types of motion 2021-07-22 11:13:58 +03:00
Alex Plate f64439dab9 Remove unused function 2021-07-01 22:24:39 +03:00
Alex Plate 5018b0e9ff Change action place for IdeaVim actions 2021-07-01 19:52:20 +03:00
Alex Plate 81076d9c43 Several improvements 2021-07-01 19:30:37 +03:00
Alex Plate df9d5bfe25 Fix GlobalHandlerTest 2021-07-01 18:13:01 +03:00
Alex Plate afbfacb462 Format code 2021-07-01 17:36:28 +03:00
Michal Placek 408cd0e037 vim-2335 Support for navigation to previous buffer with :b# 2021-07-01 13:41:15 +03:00
Michal Placek c15eccf49a vim-1062 -fixes 2021-07-01 13:31:27 +03:00
Michal Placek ddb159eec8 vim-1062 2021-07-01 13:31:27 +03:00
Matt Ellis 91585e1059 Run linters 2021-06-30 21:41:59 +01:00
Matt Ellis 0d840b2c41 Merge branch 'master' into feature/guicursor 2021-06-30 18:39:03 +01:00
Matt Ellis 0288a0f2b5 Use insert caret for select mode 2021-06-30 17:26:44 +01:00
Matt Ellis fe7dc4902b Make ExShortcutKeyAction dumb aware 2021-06-30 17:17:55 +01:00
Matt Ellis 1caf380505 Improve caret painting in command line 2021-06-30 17:15:52 +01:00
Alex Plate 31e633f55e Update formatting 2021-06-30 07:42:22 +00:00
Alex Plate e3aa3e24f5 Create a job for automatic formatting 2021-06-30 10:39:39 +03:00
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 Ellis 982d6921cb Fix formatting 2021-06-24 10:13:36 +03:00
Matt Ellis bb28b76a5b Support % as shortcut for file name in filter 2021-06-24 10:13:36 +03:00
Matt Ellis 67fed0da9e [VIM-1566] Use OS shell to execute filter command 2021-06-24 10:13:36 +03:00
Matt Ellis 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