Giorgos Gaganis
c4d8cef44d
Fixed . reseting the last find movement where repeating change that also uses movement.
...
On the original vim when we repeat a change with . that also contain an find movement the last find that was typed before the repeat is the one used by the motion repeat ;. Before the commit the plugin would have reset the last movement to use the movement contained in the command that was repeated.
To solve this I took a simple approach where I save the last find motion before starting the repeat and then restoring it to its original value after the repeat is over. In order to access the find motion fields from RepeatChangeAction I created getters in MotionGroup for the movement type and character.
modified: src/com/maddyhome/idea/vim/action/change/RepeatChangeAction.java
modified: src/com/maddyhome/idea/vim/group/MotionGroup.java
modified: test/org/jetbrains/plugins/ideavim/action/ChangeActionTest.java
2016-11-28 19:05:11 +02:00
Andrey Vlasovskikh
72fbe758b4
VIM-1205 Don't move key handling into separate event for raw handlers
2016-11-22 21:58:32 +03:00
Pavel Fatin
6b9ab7163a
Support for zero-latency rendering, #VIM-1007 fixed
2016-10-26 12:53:13 +02:00
Andrey Vlasovskikh
563092cffb
Fixed caret model exception when changing selection in documents open in several editors
2016-10-21 18:11:15 +03:00
Andrey Vlasovskikh
f33f73d2f5
VIM-1190 Fixed exception "Write access is allowed from write-safe contexts only"
...
We now use IntelliJ's version of invokeLater() in order to satisfy the
new protocol for running read-write actions in modal dialogs.
2016-09-30 20:44:16 +03:00
Andrey Vlasovskikh
b595dfd443
VIM-1098 Don't start visual selection when mouse click was actually drag over single character
2016-09-01 20:50:55 +03:00
Andrey Vlasovskikh
364b3567fc
VIM-1126 Fixed warning about modifying shortcuts of global actions for 2016.2
2016-07-07 17:39:29 +03:00
John Grib
b5ea2127d9
added :shell command
2016-06-17 15:03:38 +09:00
Andrey Vlasovskikh
9522a51dc7
Enabling key repeat on Mac OS X doesn't require restart
2016-04-29 21:52:35 +03:00
Andrey Vlasovskikh
0bf561e326
Merge remote-tracking branch 'pbu88/adds_more_folding_commands'
2016-04-29 21:34:19 +03:00
Andrey Vlasovskikh
3fde0fc209
Non-public methods made private
2016-04-29 21:19:17 +03:00
Andrey Vlasovskikh
24bc09796f
Fixed NPE
2016-04-29 21:18:28 +03:00
Andrey Vlasovskikh
758bff79d6
Removed unused code
2016-04-29 21:16:05 +03:00
Andrey Vlasovskikh
3b0660799b
VIM-843 Don't highlight search results after restart
...
Added limited support for 'viminfo' option. Only 'h' in 'viminfo' is
taken into account.
2016-04-29 21:15:01 +03:00
Andrey Vlasovskikh
6880afa73c
VIM-139 Focus on current search and use modal confirmation for ':s///gc'
2016-04-29 01:33:28 +03:00
Andrey Vlasovskikh
8ee49edef0
VIM-287 Fixed insert new line before and after folds
2016-04-28 20:13:08 +03:00
Andrey Vlasovskikh
dd0a7207d5
Removed old block selection API usages to become compatible with IntelliJ branch 146
2016-04-22 03:22:02 +03:00
Andrey Vlasovskikh
c471ddd12f
Merge remote-tracking branch 'ayzenquwe/ayzen/VIM-259'
2016-04-18 02:47:38 +03:00
Andrey Vlasovskikh
b0ac8f89c5
Merge remote-tracking branch 'ayzenquwe/ayzen/VIM-964'
2016-04-18 02:41:35 +03:00
Andrey Vlasovskikh
a47338d8b7
Merge remote-tracking branch 'ayzenquwe/ayzen/VIM-564'
2016-04-18 02:36:58 +03:00
Andrey Vlasovskikh
76d00ab47f
Merge remote-tracking branch 'ayzenquwe/ayzen/gomethod'
2016-04-18 02:31:11 +03:00
Andrey Vlasovskikh
52148f69c1
Merge remote-tracking branch 'ayzenquwe/ayzen/registers'
2016-04-18 02:24:00 +03:00
Andrey Vlasovskikh
f280f8138d
Support <Plug> in mapping commands
2016-04-18 01:46:46 +03:00
Andrey Vlasovskikh
530846bc7a
Added 'timeout' option for toggling timeout for mapping commands
2016-04-18 01:46:46 +03:00
Andrey Vlasovskikh
745a356c87
Cleanup
2016-02-21 07:08:21 +03:00
Andrey Vlasovskikh
b16a4a1343
Handle <Esc> in modal input better
2016-02-21 07:00:44 +03:00
Andrey Vlasovskikh
36e41555ea
Cleaned up ModalEntry
2016-02-21 06:16:11 +03:00
Andrey Vlasovskikh
3f824cf205
Enable SecondaryLoop-based implementation for Java 7+
2016-02-21 06:07:34 +03:00
dhleong
c61b3c2f29
More closely emulate SecondaryLoop with reflection and a Proxy
2016-02-17 20:46:33 -05:00
dhleong
fd97cfbd15
Add compat layer for JDK6
...
JDK7 mode works like a dream, but JDK6 still seems to break
after the first invocation.
2016-02-15 09:19:18 -05:00
dhleong
4b4c293008
Refactor modal input for Vim Extensions
...
Doesn't use dialogs, so should fix VIM-1086
2016-02-14 13:23:51 -05:00
Andrey Vlasovskikh
69a573a279
Handle <Esc> in inputKeyStroke() uniformly as "typed Esc"
2016-02-09 00:40:37 +03:00
Andrey Vlasovskikh
c33d4d989e
Clearer offsets comparison + multi-line deletion test
2016-02-09 00:20:58 +03:00
dhleong
3cd1134973
Fix calculation of how to paste surrounded value
...
Fixes VIM-1085; includes test
2016-02-06 10:23:05 -05:00
Andrey Vlasovskikh
4f42d4dc4f
Merge branch 'vlasovskikh/surround'
...
# Conflicts:
# CHANGES.md
# resources/META-INF/plugin.xml
# src/com/maddyhome/idea/vim/option/Options.java
2016-02-04 23:08:37 +03:00
Andrey Vlasovskikh
7e1e50ffde
Cleanup
2016-02-04 22:52:59 +03:00
Andrey Vlasovskikh
ab3cbb113e
Restore caret position properly
2016-02-04 22:18:37 +03:00
dhleong
1c7e6af1fc
Fix <esc> not sent after VSurround; support change with tags
2016-02-02 20:57:54 -05:00
dhleong
84f7e25c5e
Cleanup overly verbose code; remove unused import
2016-02-02 20:32:09 -05:00
dhleong
458fe97b75
Add visual surround (S) command
2016-01-30 09:31:25 -05:00
dhleong
31364607f5
Add ds command; jump to start when executed to match vim-surround
2016-01-30 09:14:34 -05:00
dhleong
56ec2c7ebc
Add cs action
...
Note that, unfortunately, we can't do `cst`, as IdeaVim doesn't
support the tag textobject. Once that's supported, however, we
just need to disable the safety check to enable that.
2016-01-30 09:02:06 -05:00
Andrey Vlasovskikh
2cf7d89581
VIM-271 Added 'incsearch' option for showing search results while typing
2016-01-30 02:05:24 +03:00
Andrey Vlasovskikh
91546700d4
Added simple ys{motion}t tag surround and input() function
2016-01-26 22:25:36 +03:00
Andrey Vlasovskikh
a972aec9b0
Implementation notes
2016-01-26 21:33:31 +03:00
Andrey Vlasovskikh
82a1e920e0
Initial refactoring of dhleong's 'ys' on top of extension infrastructure
2016-01-26 21:14:15 +03:00
Andrey Vlasovskikh
1a96533a3c
Added unit test-friendly version of VimExtensionFacade.getKeyStroke()
2016-01-26 18:14:14 +03:00
Andrey Vlasovskikh
2d86054fe8
Fixed regression after setChangeMarks() refactoring
2016-01-26 17:49:05 +03:00
Andrey Vlasovskikh
50e3af7b82
Added modal getKeyStroke() similar to Vim's getchar()
2016-01-26 04:17:19 +03:00
Andrey Vlasovskikh
27af4b926b
Added the 'g@' command for IdeaVim extensions
2016-01-26 01:02:20 +03:00