100 Commits
Author SHA1 Message Date
Matt EllisandAlex Pláte 494500041b Rearrange and document the public search API
No code changes, just moved everything
2020-12-17 10:02:16 +03:00
Matt EllisandAlex Pláte 011a5a3b23 Remove unnecessary UNSET direction enum value 2020-12-17 10:02:16 +03:00
Matt EllisandAlex Pláte 03726858f0 Move find methods to SearchHelper 2020-12-17 10:02:16 +03:00
Matt EllisandAlex Pláte 4ea7c421a8 Extract and use common Direction enum 2020-12-04 09:53:58 +03:00
Matt EllisandAlex Pláte 3c8b7e2de4 Convert SearchHighlightsHelper to Kotlin 2020-12-04 09:53:58 +03:00
Matt EllisandAlex Pláte b13acaf823 Rename .java to .kt 2020-12-04 09:53:58 +03:00
Matt EllisandAlex Pláte 709cd6ad6e Extract SearchHighlightsHelper 2020-12-04 09:53:58 +03:00
Matt EllisandAlex Pláte 1316ccc56f Update default for history to match Vim 2020-12-04 09:53:58 +03:00
Matt EllisandAlex Pláte 881ddd0e11 Refactor setting special registers 2020-12-04 09:53:58 +03:00
Matt EllisandAlex Pláte 49611ee6b9 Show the correct handler class in :map 2020-12-04 09:33:14 +03:00
Matt EllisandAlex Pláte c38b18e16b Prevent inlays causing scrolling to stick 2020-11-12 09:37:55 +03:00
Matt EllisandAlex Pláte 8d65c3ed26 Limit how much of an inlay is shown when scrolling 2020-11-12 09:37:55 +03:00
Matt EllisandAlex Pláte 995bb966ad Reposition cursor when scrolloff changes 2020-11-12 09:37:55 +03:00
Matt EllisandAlex Pláte dbda1a76ca [VIM-2158] Fix scrolling when scrolloff is greater than half screen height, but less than full screen height 2020-11-12 09:37:55 +03:00
Matt Ellis 2dc54ea882 Use deterministic width for inlays 2020-09-17 16:15:27 +01:00
Matt Ellis 63db148aae Merge branch 'master' into VIM-2104 2020-09-17 15:29:05 +01:00
Matt Ellis 78f1c8499a Use test inlay renderer for consistent width 2020-09-17 14:55:41 +01:00
Matt Ellis 26dae9b4e0 Add zH scroll half screen width action 2020-09-17 14:35:43 +01:00
Matt Ellis 007f33be0b Add zL scroll half screen width action 2020-09-17 00:01:24 +01:00
Matt Ellis fa17af8d33 Fix keeping caret on screen with preceding inlay 2020-09-16 18:58:21 +01:00
Matt Ellis eabe43061c Add tests and fixes for ScrollColumnLeftAction 2020-09-16 16:59:14 +01:00
Matt Ellis 64502fb31b Reformat comments 2020-09-16 12:11:48 +01:00
Matt Ellis d693906905 Add tests and fixes for ScrollColumnRightAction 2020-09-16 11:47:28 +01:00
Matt Ellis df3a533515 Fix arithmetic for scrolling columns 2020-09-16 09:29:43 +01:00
Matt Ellis 53a687fd53 Fix issues with side scrolling and inline inlays
Fixes VIM-1556, fixes VIM-1770, fixes VIM-2110
2020-09-15 17:07:42 +01:00
Matt Ellis 2091bbc025 Improve cursor position handling with inlay hints
E.g. navigation around Kotlin type annotations, replacing a character with a preceding parameter hint
2020-09-08 17:45:44 +01:00
Matt Ellis 62601686aa Add internal action to show inline inlays 2020-09-08 00:20:54 +01:00
Matt Ellis 5ca0298497 Add tests for ScrollHalfPage actions
<C-D> and <C-U>
2020-09-03 17:46:30 +01:00
Matt Ellis 7321099a0f Add tests for ScrollMiddleScreenLine actions
z. and zz
2020-09-03 10:10:57 +01:00
Matt Ellis 63d9a33d80 Add tests for ScrollLastScreenLine actions
z- and zb
2020-09-03 09:57:32 +01:00
Matt Ellis a7ba6d6004 Add tests for ScrollFirstScreenLine actions
z<CR> and zt
2020-09-03 09:55:53 +01:00
Matt Ellis be0adb833f Add tests for ScrollLastScreenLinePageStartAction 2020-09-03 01:10:58 +01:00
Matt Ellis 8f90ff8a65 Add tests for ScrollFirstScreenLinePageStartAction 2020-09-03 00:05:01 +01:00
Matt Ellis c8a1938155 Add tests for ScrollPageUpAction 2020-09-02 23:27:16 +01:00
Matt Ellis 3cf42c86f3 Add tests for ScrollPageDownAction 2020-09-02 23:11:53 +01:00
Matt Ellis 632e9fad2e Remove incorrect mappings for page up/down
i_<C-Down> and i_<C-Up> are not standard Vim mappings, but can be set up in .ideavimrc if required
2020-09-02 17:18:03 +01:00
Matt Ellis a5de935192 Add tests for ScrollLineDownAction 2020-09-02 17:05:01 +01:00
Matt Ellis 111c1ebe32 Add tests for ScrollLineUpAction 2020-09-02 15:09:11 +01:00
Matt Ellis 8a42bff6ad Add tests for scrolloff and scrolljump
Behaviour matches Vim, apart from soft wraps
2020-09-02 14:11:04 +01:00
Matt Ellis d878c3e05d Improve handling of scrolljump
Now very closely follows Vim's somewhat unintuitive handling. Doesn't work properly with soft wraps (like a lot of other parts of IdeaVim)
2020-09-01 17:46:18 +01:00
Matt Ellis d08da77b2f Split scrollPositionIntoView method into two 2020-09-01 17:44:24 +01:00
Matt Ellis 4cebaa865b Fix scrolljump 2020-08-20 14:21:53 +01:00
Matt Ellis 589e43f825 [VIM-2104] Use side scroll offset for horizontal scrolling 2020-08-20 11:45:39 +01:00
Matt Ellis 5d95917727 Do not add line numbers when caret moves
Fixes VIM-2021
2020-06-20 19:00:59 +01:00
Matt Ellis eff13180b3 Update to new line number API
Fixes VIM-1934, fixes VIM-1852
2020-06-19 23:51:46 +01:00
Matt Ellis bf853e3c0c Initialise as soon as possible during startup 2020-05-13 17:38:09 +01:00
Matt Ellis 7de08e08d0 Support smooth scrolling 2020-04-07 17:30:18 +01:00
Matt Ellis 14c8b6a248 Fix nullability compile error on 2019.2 2020-02-11 10:29:02 +00:00
Matt Ellis 9b71215cde Merge branch 'master' into feature/showcmd 2020-02-11 00:24:29 +00:00
Matt Ellis 8be572f976 Update set-commands and changes 2020-02-11 00:22:29 +00:00
Matt Ellis 4f43bcffb9 Replace SelectRegisterAction with direct parsing
It's not a command, but part of a command
2020-02-11 00:08:08 +00:00
Matt Ellis 29e4dc5fb5 Show digraph entry in showcmd 2020-02-10 23:38:02 +00:00
Matt Ellis 0dc95cb13c [VIM-434] Display showcmd in status bar
IdeaVim has showcmd enabled by default. Vim has it enabled by default, but disabled for Unix, with concerns about slow terminals. It is enabled by defaults.vim
2020-02-10 11:35:52 +00:00
Matt Ellis 9fad4a74ed Remove keys from Command
Also refactors PutVisualTextAction
2020-02-04 00:36:59 +00:00
Matt Ellis 24f023c8b3 Update changes 2020-02-03 23:35:53 +00:00
Matt Ellis 3eb46114f8 Remove Shortcut class 2020-02-03 23:35:04 +00:00
Matt Ellis 6a5fd30531 Remove unnecessary empty shortcut registration 2020-02-03 23:31:18 +00:00
Matt Ellis 96e83150e5 Ensure :jumps formats non-printable characters correctly
Also ensures long output lines are truncated
2020-02-03 22:50:39 +00:00
Matt Ellis b2b65c65b9 Ensure :ascii formats non-printable characters correctly 2020-02-03 22:50:38 +00:00
Matt Ellis 5b028b4fa3 Ensure :marks formats non-printable characters correctly
Also adds a bunch of tests, and fixes offset for ^ and ] registers
2020-02-03 22:50:38 +00:00
Matt Ellis 8f4e1b3409 [VIM-1900] Ensure :reg formats non-printable characters correctly 2020-02-03 22:50:38 +00:00
Matt Ellis 3403cdf84b [VIM-1835] Macros record actual keystrokes not mapped 2020-02-01 11:36:40 +00:00
Matt Ellis d1d0323112 [VIM-1899] Add argument to :registers command
Also introduce testable clipboard handling
2020-01-27 10:47:37 +00:00
Matt Ellis 7b225cb824 Remove CHAR_OR_DIGRAPH state 2020-01-07 20:14:56 +00:00
Matt Ellis 562e0b06df Refactor expected argument type 2020-01-07 19:54:20 +00:00
Matt Ellis 51ce064507 Simplify and document handling of EX_STRING 2020-01-07 19:09:58 +00:00
Matt Ellis ebaeff9b4d Merge branch 'master' into refactor/command-state 2019-12-30 16:31:24 +00:00
Matt Ellis 8889e799ca Refactor setting command argument 2019-12-30 16:26:32 +00:00
Matt Ellis 668705e475 Refactor handling of duplicate operator chars 2019-12-30 16:08:04 +00:00
Matt Ellis e428e909bf Simplify handling of count editing characters 2019-12-30 16:08:00 +00:00
Matt Ellis d755c751c2 Move fix up of command/motion count 2019-12-30 15:36:52 +00:00
Matt Ellis 312c547412 Rearrange methods 2019-12-30 15:30:33 +00:00
Matt Ellis 48d30f2a3c Extract CommandBuilder 2019-12-30 15:28:15 +00:00
Matt Ellis d8ed30df14 Encapsulate command node state 2019-12-27 18:09:50 +00:00
Matt Ellis 50176cb267 Move mapping mode to mapping state 2019-12-27 16:19:57 +00:00
Matt Ellis 5898d21857 Remove unnecessary annotations 2019-12-27 12:44:13 +00:00
Matt Ellis e3839bc0b2 Remove unused command flags override 2019-12-27 12:42:00 +00:00
Matt Ellis f97555d4a8 Rename executing command 2019-12-27 12:34:13 +00:00
Matt Ellis 79bdca9769 Move command stack to per-editor state 2019-12-27 12:26:10 +00:00
Matt Ellis ced457dd94 Move command state to per editor state 2019-12-27 10:33:22 +00:00
Matt Ellis 784fc6c6fa Rename mode state class and make immutable 2019-12-27 10:10:39 +00:00
Matt Ellis f817e6cb7f Extract mapping state 2019-12-23 16:49:27 +00:00
Matt Ellis 6a622565ca Move mapping availability check 2019-12-19 17:00:38 +00:00
Matt Ellis 23126aeb6d Extract abandoned mapping sequence handling 2019-12-19 11:49:53 +00:00
Matt Ellis 61fd67472b Extract completed mapping sequence handling 2019-12-19 11:39:34 +00:00
Matt Ellis 105c073e1f Extract unfinished mapping sequence handling 2019-12-19 01:11:24 +00:00
Matt Ellis 200f3484b6 Move current arg type state to per-editor 2019-12-10 20:20:13 +00:00
Matt Ellis 6a40eb48fe Remove forward search state 2019-12-10 20:14:32 +00:00
Matt Ellis fb3e9ce9f3 Move captured keys to per-editor state 2019-12-10 20:11:08 +00:00
Matt Ellis 91865460a2 Move DigraphResult to top level class 2019-12-10 20:05:12 +00:00
Matt Ellis 644afe541e Move <BS> digraph state to DigraphSequence 2019-12-10 20:01:42 +00:00
Matt Ellis 232303f06a Refactor to maintain digraph state at all times
Also allows <C-K> and <C-V>/<C-Q> to be remapped
2019-12-10 19:59:11 +00:00
Matt Ellis 280845610b Move digraph sequence state to per-editor 2019-12-10 19:32:25 +00:00
Matt Ellis 6108c9d6d2 [VIM-1284] Allow mapping numbers
Includes special case for 0 while entering counts. See :help :map-modes.
Also fixes issues when both operator and motion have a count - value should be multiplied, not appended (e.g. 3d2w is the same as 6dw, no 32dw!). See :help operator
2019-12-10 19:31:38 +00:00
Matt Ellis ce04e995ee Move command count state per editor 2019-12-10 19:31:23 +00:00
Matt Ellis e44d7e6d49 Update CHANGES.md 2019-09-02 17:52:53 +01:00
Matt Ellis 261911f6de [VIM-1773] Provide fall back error stripe colour 2019-09-02 17:37:44 +01:00
Matt Ellis fe714a9003 Move caret during incsearch to match Vim behaviour 2019-09-02 17:05:27 +01:00
Matt Ellis e8501a658b Merge branch 'master' into bug/search-highlights 2019-09-02 12:31:28 +01:00
Matt Ellis 14163a0791 [VIM-1766] Fix ex caret rendering on Linux 2019-08-13 20:28:22 +01:00