Commit Graph

38 Commits

Author SHA1 Message Date
J.R. Maingat
bca06cd994
Implement filter commands (#5042)
This PR implements filter commands, which allows filtering lines in the buffer with an external command.
The following operators are implemented here:

- !{motion}{filter}
- !!{filter}
- {Visual/Visual block/Visual line}!{filter}

Fixes #4166
Fixes #4857
2020-07-18 01:47:44 -04:00
Jason Fields
5f6ef5fada
g? (rot13) support (#4367)
Fixes #4363
2019-12-26 01:36:27 -05:00
Jason Fields
516778be1e Rename ModeName to Mode since after the refactor, that separation is gone 2019-11-29 15:59:20 -05:00
Jason Fields
6c8e67776d Use const instead of let when possible in tests
I'd love to enable `prefer-const` in tslint, but with 17 pull requests outstanding, I think it might cause some merge conflicts. Making the switch in test/** is a step toward that goal which should result in essentially no conflicts.
2019-10-20 23:26:26 -04:00
hetmankp
a19098f077 Make it possible to add skipped tests (#4129)
It would be nice to add tests that can be skipped until future support
for the specified behaviour can be implemented.
2019-10-04 00:38:28 -04:00
Jason Fields
969372771a :s/newTestOnly/newTest
Oops
2019-09-04 02:39:31 -04:00
Jason Fields
317d2cc5db gc (commentary) works in visual block mode
Fixes #4036
2019-09-04 02:35:49 -04:00
Jason Fields
dd845dc500 Fix gC in visual mode
Fixes #2448
2019-08-05 20:05:33 -04:00
Faddi
34d27e3347 Fix: visual block yank, delete and put behavior for single line selections.
Fixes: #3231, #2961, #2336, #2093, #1796
2019-01-16 07:22:18 +01:00
Casey Watson
f9ef65c614 Format operator fixes and tests
Make format operator (=) consistent with Vim8/NeoVim.
- Format operator now operates on complete lines.
- Cursor ends on first non-blank character instead of column 0.

fix #1574
2018-12-09 00:58:26 -07:00
Jason Poon
defb07f347 refactor: clean-up unused imports and vars 2018-06-15 01:40:32 -07:00
Jason Poon
fc50c207e6 fix: remove duplicate test 2018-06-15 01:40:31 -07:00
Jason Poon
9c7b8e6e73 refactor: allow 'configuration' class to be mocked in tests 2018-01-31 15:36:10 -08:00
jessewmc
86007ae374 Fix: Left shift fix closes #2299 (#2300)
* Fix tokenizeKeySequence to allow left shift operator in keysPressed.

* Tests for #2299 and other left and right shift operations.

* Fix #2299 left shift operator off by one bug

* Fix tokenizeKeySequence bug introduced by handling left shift.

* Make rawTokenize clearer.
2018-01-19 01:56:31 -08:00
Jason Poon
1f20072098 sort and remove unused imports 2017-12-13 11:36:31 +11:00
Horace He
d3610143d3 Cleaned up test results by disabling neovim 2017-08-08 23:53:46 -07:00
Philip Mateescu
050c4d9f00 Update tests due to VSCode PR 28238
This PR: Microsoft/vscode#28238 inserts spaces inside block comments, which affects VSCodeVim tests.
2017-07-13 13:43:26 -07:00
Horace He
3284bbd6d3 Fixed whitespace at beginning of line 2017-06-30 14:11:03 -07:00
Horace He
1e51dbbd5b Fixed lint issues 2017-06-30 14:11:03 -07:00
Horace He
edd08c0f46 Formattted everything with prettier 2017-06-30 14:11:03 -07:00
Horace He
bc4e5bcdb7 replaced all instances of new ModeHandler() with getAndUpdateModeHandler()? 2017-05-24 00:01:13 -04:00
Horace He
83e773559e Fixed tests, fixed #1534 2017-05-21 20:05:11 -04:00
Jason Poon
40724c021f clean up tests. increase timeout (#1672) 2017-05-09 17:12:56 -07:00
Kim Fiedler Vestergaard
f3cc7dc8d2 Add comment block operator 'gB' 2017-04-16 12:49:49 +02:00
Kim Fiedler Vestergaard
5a6d305e1c Add test for comment operator 2017-04-16 10:55:54 +02:00
rebornix
b3918771ab fix false positive tests 2017-03-09 18:17:06 -08:00
rebornix
45acc57ddc make sure we update cursor position internally correctly 2016-10-18 15:58:37 -07:00
Jason Poon
73f4f6ee22 Use angle bracket notation replacing ctrl+* => <C-*>, backspace => <BS>, etc. Closes #64 (#683) 2016-08-31 21:09:50 -07:00
johnfn
e5499335c3 DRY up extension.ts and standardize on key names
Those arrays in extension.ts have been a thorn in my side, I tell you.
2016-08-02 23:27:23 -07:00
Peng Lyu
9c1ec4b32d Convert 4 space tab to 2 space tab. (#460)
* Convert 4 space tab to 2 space tab.

* Add tab config to workspace settings.
2016-07-16 10:02:31 -07:00
johnfn
9df6a16c13 Add some yy unit tests. 2016-06-05 21:42:56 -07:00
johnfn
668dfa13cd Add put test and pass all tests. 2016-06-04 18:33:44 -07:00
johnfn
b87a41a0e7 Shove everything in one massive class.
TypeScript was having some issues with files with circular dependencies.
2016-05-30 20:20:24 -07:00
johnfn
0b5296958e Make all state transitions into Actions. 2016-05-29 21:59:07 -07:00
johnfn
c5b271a096 Add rudimentary register implementation. 2016-05-29 00:58:09 -04:00
johnfn
fc0acf1071 The put operator tests had a race condition. 2016-05-28 23:16:43 -04:00
Pete Gleeson
4b43f51e8e fixed style violations 2016-04-28 22:20:37 +10:00
Pete Gleeson
3bacebb397 added put operator with tests 2016-04-26 22:53:02 +10:00