1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2024-10-19 13:42:45 +02:00
Commit Graph

706 Commits

Author SHA1 Message Date
John Weigel
41c822fde1 Add support for buffer command. 2020-02-23 20:45:06 -06:00
Alexandre Grison
36f6027b0e Implement the vim-textobj-entire plugin emulation. 2020-02-20 12:13:55 +01:00
Alex Pláte
dd6079cfa6
Merge pull request #219 from fan-tom/bugifx/1008
Fix block actions (i.e ci{) in presence of quotes (VIM-1008)
2020-02-19 11:53:19 +03:00
John Weigel
3d7d75bae4 Merge remote-tracking branch 'upstream/master' 2020-02-16 21:11:02 -06:00
John Weigel
6da4d0ce5e Rework buffer list to more closely mimic vim. 2020-02-16 20:40:17 -06:00
Alex Plate
eb01b25f35
Fix some cases by disabling [, { and < support (what is not supported in the original plugin) 2020-02-14 12:23:32 +03:00
Matt Ellis
9b71215cde
Merge branch 'master' into feature/showcmd 2020-02-11 00:24: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
igrekster
5ee0a93675 Add argtextobj.vim plugin emulation 2020-02-09 11:57:54 +11:00
Alex Plate
50ba386f59
Write tests for dynamic extensions 2020-02-08 18:07:20 +03:00
Alex Plate
79d0565c2d
Update some tests 2020-02-08 16:09:39 +03:00
Alex Plate
843faa7cc6
Make plugins disposable 2020-02-08 14:36:01 +03:00
Alexey Gerasimov
59d87e0c94 More tests 2020-02-07 19:48:40 +05:00
Alexey Gerasimov
c2196785e7 Add tests 2020-02-07 19:48:40 +05:00
Alex Plate
c295dd5c62
Use special class for storing requiredShortcuts 2020-02-07 16:07:14 +03:00
Alex Plate
ea7e58535b
Fix tests 2020-02-07 12:41:47 +03:00
Alex Plate
ea342a8e4f
Preparation for 0.55.1 EAP release 2020-02-04 18:55:31 +03:00
Alex Plate
0b67dd1d05
Merge pull request #218 from citizenmatt/feature/registers
Macros record input keystrokes, not mapped keystrokes

This PR fixes VIM-1835 by recording input keystrokes for macros instead of the mapped keystrokes.

This PR is also required as a stepping stone for showcmd support (VIM-434), as both issues require refactoring KeyHandler#handleKey, and I thought it best to separate the issues.

A few other things were fixed as part of this PR:

VIM-1899 - support an argument to the :registers command
VIM-1900 - improve output of :registers, :marks, :jumps and :ascii
2020-02-04 18:46:15 +03: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
John Weigel
ff209d0120 Merge remote-tracking branch 'origin/master' 2020-02-01 22:38:18 -06:00
John Weigel
ea2fe618b5 Add support for buffer list (buffers, files, ls). 2020-02-01 22:33:12 -06:00
Matt Ellis
3403cdf84b
[VIM-1835] Macros record actual keystrokes not mapped 2020-02-01 11:36:40 +00:00
Alex Plate
4f9a6f3a7b
Make vimExCommand EP dynamic 2020-01-31 19:14:11 +03:00
Alex Plate
c8d6d233e5
Revert [Make vimExCommand EP dynamic] 2020-01-31 18:15:55 +03:00
Alex Plate
0cfb65a19a
Make vimExCommand EP dynamic 2020-01-31 17:59:07 +03:00
Alex Plate
384d917021
Make vimAction EP dynamic 2020-01-31 12:05:46 +03:00
Matt Ellis
d1d0323112
[VIM-1899] Add argument to :registers command
Also introduce testable clipboard handling
2020-01-27 10:47:37 +00:00
Alex Plate
0d190e4a63
Update copyright 2020-01-27 11:35:00 +03:00
Alex Plate
13cdb7cc35
Merge pull request #215 from citizenmatt/refactor/command-state
Refactor key handler state
2020-01-27 11:34:48 +03:00
Alex Plate
ca60c467f3
Capability for tests in 2020.1 2020-01-27 11:11:05 +03:00
Matt Ellis
ebaeff9b4d
Merge branch 'master' into refactor/command-state 2019-12-30 16:31:24 +00:00
Matt Ellis
50176cb267
Move mapping mode to mapping state 2019-12-27 16:19:57 +00:00
Matt Ellis
784fc6c6fa
Rename mode state class and make immutable 2019-12-27 10:10:39 +00:00
Alex Plate
30662a8110
Comment out incompatible test 2019-12-24 10:48:55 +03:00
Alex Plate
5cf68a7f06
[VIM-1878] Update submode in case of active template 2019-12-23 12:54:57 +03:00
Alex Plate
2c11ed43e4
[VIM-1875] Fix isk loading on startup 2019-12-19 17:12:29 +03: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
Alex Plate
2457079724
Fix some code smells 2019-12-06 18:31:06 +03:00
Alex Plate
09fbdf5541
Make test extension private 2019-12-06 15:11:09 +03:00
Alex Plate
d68bad313e
VIM-1854 Fix i_Ctrl-T
Refactor shift left/right classes as well
2019-11-29 12:33:08 +03:00
Alex Plate
59f4dc8c78
Surround and Commentary extensions can be repeated with a dot command
VIM-1118
2019-11-28 18:58:58 +03:00
Alex Plate
6434a06c08
Convert commentary extension test to kt 2019-11-28 18:23:44 +03:00
Alex Plate
6133ab509d
Rename .java to .kt 2019-11-28 18:23:43 +03:00
Alex Plate
3e78f50a76
Create commandState helper function 2019-11-28 14:42:57 +03:00
Alex Plate
eba9eaf37a
Faster command parser 2019-11-20 17:59:04 +03:00
Alex Plate
05ecb92a88
Use plugin.xml to define mappings for actions 2019-11-20 17:36:10 +03:00
Alex Plate
d05cc3cd35
Merge pull request #210 from igrekster/format-motion
Implement `gq<motion>` code formatting command for motions
2019-11-20 15:51:39 +03:00
Alex Plate
96dff832ba
Merge pull request #209 from igrekster/multicaret-ignorecase-fix
Fix multiple cursors selection getting stuck with ignorecase
2019-11-20 15:47:23 +03:00
Alex Plate
a4be636f9d
Run manual tests 2019-11-20 11:47:38 +03:00
Alex Plate
8e12c9bef0
Fix backward motion for ex commands 2019-11-19 14:31:30 +03:00
Alex Plate
7d9d8d4a02
Fix execution of actions in visual mode with incsearch enabled 2019-11-07 11:14:16 +03:00
Alex Plate
617c0e3813
Add missing gif 2019-11-05 15:54:51 +03:00
Alex Plate
76634e3eed
Fix "wrap with if" 2019-11-05 15:53:33 +03:00
igrekster
21536fb3ef Implement gq<motion> code formatting command for motions 2019-11-02 17:17:09 +11:00
Alex Plate
9d6f43cfeb
Fix problem with lookup selection 2019-11-01 13:55:32 +03:00
Alex Plate
cdcb31cf2f
Change listeners for tests 2019-10-31 18:13:37 +03:00
Alex Plate
629c48bba0
Run manual tests 2019-10-31 17:55:37 +03:00
Alex Plate
316cd2c02c
Rename refactoring to ideaselection 2019-10-31 13:05:22 +03:00
Alex Plate
e56f08505f
Convert IdeaVisualControlTest.kt to option test 2019-10-30 18:02:15 +03:00
Alex Plate
58a1f9e275
Move tests to different location 2019-10-30 17:57:24 +03:00
Alex Plate
bfdf54db67
Add tests for idearefactormode option 2019-10-30 17:46:25 +03:00
Alex Plate
df8598a6f4
Run manual tests 2019-10-30 16:49:39 +03:00
igrekster
0ddb7f971d Fix multiple cursors selection getting stuck with ignorecase
With `ignorecase` enabled, select next (`<A-n>`) would get stuck on the
second occurrence even though there are more occurrences to select. This
was happening because part of logic was still doing case sensitive
comparison against the current pattern. The fix is to use case
insensitive comparator everywhere the pattern is used, if `ignorecase`
option is set.
2019-10-30 23:59:32 +11:00
Alex Plate
fabe066f94
Move selection control methods to the separate file 2019-10-30 14:45:40 +03:00
Alex Plate
c77f43e7c7
Initial idearefactormode support 2019-10-30 13:00:04 +03:00
Alex Plate
6a1e8a0c22
Fix template with multiple variables 2019-10-25 17:14:23 +03:00
Alex Plate
35eb6c2974
Add tests and doc 2019-10-24 15:16:59 +03:00
Alex Plate
e51deac151
Make TemplateTest.kt as option test 2019-10-24 12:59:02 +03:00
Alex Plate
979bf26441
Change the implementation of system marks 2019-10-21 16:58:22 +03:00
Alex Plate
36f473508a
Disable mappings for the second part of multikey commands 2019-10-21 13:40:53 +03:00
Alex Plate
5eb2810352
Add new corrections for caret vertical motion 2019-10-18 15:15:35 +03:00
Alex Plate
7130760114
Fix vertical caret movements with inlays 2019-10-17 17:34:10 +03:00
Alex Plate
03c38e3454
[VIM-1804] Correct disabling and enabling IdeaVim 2019-10-15 18:14:13 +03:00
Alex Plate
8c0a85abf4
Vim script supports evaluating of integers 2019-10-14 12:44:08 +03:00
Alex Plate
48915cc6ad
Print iskeyword value as a regex string 2019-10-09 18:20:16 +03:00
Alex Plate
02b065cc2c
Extensions can use linewise selection 2019-10-08 14:36:20 +03:00
Alex Plate
29858e8b10
Do not handle plugin incomplete mappings 2019-10-08 10:31:47 +03:00
Alex Plate
700decb2e0
Update mappings handler for properly handler intersecting mappings. 2019-10-02 18:44:43 +03:00
Alex Plate
db68ae5cea
Add tests for extension in op mode 2019-10-01 10:15:44 +03:00
Alex Plate
eb724c8753
Fix yy command 2019-09-27 22:11:28 +03:00
Alex Plate
1bb0caa704
Fix dd for empty line 2019-09-27 17:46:00 +03:00
Alex Plate
70fd7ef89d
operator-W doesn't affect the next line 2019-09-26 15:31:05 +03:00
Alex Plate
50d8e79571
Use fail function from kotlin 2019-09-26 14:47:36 +03:00
Alex Plate
200a9c6318
Update key handling process 2019-09-25 20:01:19 +03:00
Alex Plate
9c5f50d0a6
Move change motion tests to the separate file 2019-09-25 13:02:49 +03:00
Alex Plate
8fcc9ac1e2
Some fixes on change motion actions. 2019-09-24 17:53:36 +03:00
Alex Plate
a575bc92cc
Correctly process d_ command 2019-09-18 22:40:29 +03:00
Alex Plate
d041712bd8
Run manual tests 2019-09-17 18:13:08 +03:00
Alex Plate
42375d143e
[VIM-1772] Fix last character for :y command 2019-09-04 17:30:34 +03:00
Alex Plate
cf2f223ad4
[VIM-1781] Fix yanking with $ motion 2019-09-04 11:30:24 +03:00
Alex Plate
848bb01c10
Get rid of VimActionBean 2019-09-03 14:07:35 +03:00
Alex Plate
d6d2a55747
Use handlers directly (without actions) 2019-09-03 14:07:35 +03: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
Alex Plate
3fb4830456
Create file that describes manual tests for IdeaVim project 2019-08-26 17:02:47 +03:00