Andrey Vlasovskikh
9f2697658b
Fixed code style
2014-10-23 18:25:01 +04:00
smartbomb
36fd59b92c
ExecuteActionByName use the content context on actions with the EnabledInModalContext flag set
...
(cherry picked from commit d375740)
2014-10-23 18:02:12 +04:00
Andrey Vlasovskikh
72b74e075c
Merge branch 'visual_block_delete'
2014-10-23 16:55:17 +04:00
Andrey Vlasovskikh
3c6ede2f8f
Normalize offsets in order to prevent selecting newlines
2014-10-23 16:53:31 +04:00
Andrey Vlasovskikh
5434edbd54
VIM-792 Fixed line-wise and block-wise paste commands for * and + registers
2014-10-23 16:09:56 +04:00
Andrey Vlasovskikh
6a8c7e4b17
VIM-511 Record caret adjustment changes to the document during <Enter> processing
...
We have to handle Enter by our VimShortcutKeyAction in order to be
able to record it as an action for repeating it via '.'. Since original
Enter handlers are not run in this case we invoke them manually by
collecting a list of actions that can be run for the editor component
on Enter and then running the first action ready to run.
Caret adjustments are detected on changes to the document caused by
Enter. This allows to position the caret properly (e.g. between {})
before recording Enter.
2014-10-23 15:26:22 +04:00
Alexey Shmalko
0ac659f2d1
Fix visual block deleting
...
Currently deleting visual block leaves last char in line untouched. This
patch fixes that as well as tests.
2014-10-21 21:40:43 +03:00
Andrey Vlasovskikh
b3d12c8b58
VIM-511 Fixed removing a paren just after inserting it with auto-inserting matching parens on
2014-10-21 21:47:06 +04:00
Andrey Vlasovskikh
27efe0c9d6
Handle left and right motions during key repeat only as document (caret) changes
...
Previously they have been recorded twice: implicitly by a document
change listener as changes to the caret position and by a command
processor.
2014-10-21 18:24:36 +04:00
Andrey Vlasovskikh
b5bf6c08d8
Repeat typing commands by inserting text instead of handling a typed key
...
It will prevent auto-completion and other auto-inserting typed key
handlers from messing up with the repeated text.
2014-10-21 18:22:19 +04:00
Andrey Vlasovskikh
e3fce51ea1
VIM-511 Fixed editing offset after <BS> for '.' command
2014-10-21 16:56:54 +04:00
Andrey Vlasovskikh
cc2ed452f0
Merge branch 'clipboard-unnamed'
...
Conflicts:
src/com/maddyhome/idea/vim/option/Options.java
test/org/jetbrains/plugins/ideavim/action/CopyActionTest.java
2014-10-20 15:59:15 +04:00
Andrey Vlasovskikh
d4d3843725
VIM-476 Added default register reset on 'clipboard' change
...
Added a test for :set clipboard=unnamed.
2014-10-20 15:53:33 +04:00
Andrey Vlasovskikh
dee16da1c2
Coding style
2014-10-20 14:52:22 +04:00
Andrey Vlasovskikh
8596911a0e
VIM-483 VIM-410 Added support for 'number' and 'relativenumber' commands
...
These commands override the line numbers setting in the IDE when the
Vim emulation is enabled.
2014-10-20 13:27:09 +04:00
Andrey Vlasovskikh
6c2de9f151
Extracted EditorGroup
2014-10-17 17:07:39 +04:00
Andrey Vlasovskikh
d3a6b1e39e
Use '\n' as universal line separator for sorting lines
...
The Document class takes care of detecting and using the correct
platform-specific line separators.
2014-10-17 14:54:48 +04:00
Andrey Vlasovskikh
86aa59bb29
Merge branch 'vim-624'
2014-10-16 23:29:33 +04:00
smartbomb
c6eeaed7da
:actionlist added support for wildcards
2014-10-15 22:49:08 +02:00
smartbomb
edba90f188
Renamed :findaction => :actionlist + added statusbar error message when calling invalid action names
2014-10-15 21:17:26 +02:00
Andrey Vlasovskikh
c873524cb1
VIM-784 Fixed visual line selection where start > end of the selection range
...
It was a regression introduced by the fix of VIM-632.
2014-10-15 15:10:22 +04:00
smartbomb
7943e34bde
Fix action execution contexts, use a delay on popup actions to allow the command handler to unwind
2014-10-15 08:31:44 +02:00
smartbomb
74970c74b4
Implemented :findaction
2014-10-14 22:47:03 +02:00
Andrey Vlasovskikh
d3afd83e8e
Merge branch 'VIM-407'
2014-10-14 15:25:43 +04:00
smartbomb
722431f5b2
VIM-652 Add support for executing and mapping arbitrary IDEA actions
...
* no tests performed..! *
Example usage:
:nnoremap gi :action GotoImplementation<CR>
:nnoremap gu :action FindUsages<CR>
:nnoremap gcw :action RenameElement<CR>
Action overview:
6c6cb47c5a/platform/platform-resources-en/src/messages/ActionsBundle.properties
2014-10-13 21:58:38 +02:00
Andrey Vlasovskikh
6a1c792cda
VIM-171 Added support for window navigation commands: left/right/up/down
2014-10-13 23:08:56 +04:00
Andrey Vlasovskikh
3e0e08c5e1
VIM-632 Restored visual block mode that was broken due to multiple carets support
...
Vim actions with multiple carets in modes other than visual block are
not supported yet. It will be a separate feature. The idea behind this
commit is to fix the regression in visual block mode.
Bounds of visual selection are no longer reversed if they are
overlapped, this fixes expanding the block selection in all directions.
IdeaVim no longer uses SelectionModel.hasBlockSelection() since it
always returns 'true' now.
There are a couple of places where we remove secondary carets when
moving the primary caret or re-setting visual mode. It may be
incompatible with the forthcoming support for multi-caret Vim actions.
2014-10-09 18:01:47 +04:00
Andrey Vlasovskikh
fcc564df25
Cleanup
2014-10-07 14:29:30 +04:00
Andrey Vlasovskikh
4ecbb93d01
Converted window actions into subclasses of VimCommandAction
2014-10-07 13:52:46 +04:00
Alexey Shmalko
9bdc9b3634
VIM-171 Add checks for that window is not null
2014-10-04 01:29:41 +03:00
Alexey Shmalko
f46c3b0aa9
VIM-171 Add support for window cycling
...
Adds following keystrokes:
<C-W>w <C-W><C-W> next window
<C-W>W previous window
With number both commands go to window with specified index.
2014-10-04 00:52:24 +03:00
Alexey Shmalko
095fdf07c5
VIM-171 Add support for closing all windows except current
...
Adds <C-W>o, <C-W><C-O> keystrokes.
2014-10-04 00:02:15 +03:00
Alexey Shmalko
648e988b64
VIM-171 Add support for closing window
...
Adds <C-W>c keystroke.
2014-10-03 23:41:53 +03:00
Alexey Shmalko
b1add735d6
Add split action
...
This patch adds following keystrokes:
<C-W>s <C-W>S <C-W><C-S> horizontal split
<C-W>v <C-W><C-V> vertical split
2014-10-02 20:52:13 +03:00
Andrey Vlasovskikh
4e83f56696
Merge branch 'vim-265'
...
Conflicts:
AUTHORS.md
2014-09-10 13:58:29 +04:00
Andrey Vlasovskikh
4672dece51
VIM-770 Close the current tab on :quit instead of all tabs with the current file
2014-09-10 13:52:00 +04:00
Andrey Vlasovskikh
a632de9214
Cleanup
2014-09-09 18:30:21 +04:00
Andrey Vlasovskikh
e8ebba8b3d
Removed unused declarations
2014-09-09 18:25:45 +04:00
Andrey Vlasovskikh
a717e4785d
VIM-569 Fixed <C-W> when the caret is at the end of a line
2014-09-09 00:36:39 +04:00
Dathan Bennett
8d7bf2661a
Set isChange to true when calling deleteRange from ctrl-w handler
2014-09-06 01:07:03 -07:00
salaam
9e1b026a88
VIM-265 Add window split commands
...
Conflicts:
src/com/maddyhome/idea/vim/VimPlugin.java
src/com/maddyhome/idea/vim/ex/CommandParser.java
2014-08-31 23:57:22 -05:00
Thomas B Homburg
df8e455a6d
Get default register from clipboard=unnamed setting
2014-08-26 22:51:17 +02:00
Chang Wang
b35bec2839
deselect visual selection range '<,'> when poping up ex entry field.
2014-08-13 16:40:50 -07:00
Andrew Brookins
19365effa9
VIM-407 Add tests. Only skip the ending line if it is empty.
...
Conflicts:
src/com/maddyhome/idea/vim/group/ChangeGroup.java
test/org/jetbrains/plugins/ideavim/action/ShiftRightLinesActionTest.java
2014-05-22 22:04:14 -07:00
Andrey Vlasovskikh
e564eb5878
VIM-213 Use '< and '> marks for saving and restoring last visual selection
2014-05-15 02:49:50 +04:00
Andrey Vlasovskikh
9cd620af58
VIM-646 Don't update visual selection if command moves caret and exits visual mode
2014-05-12 21:50:50 +04:00
Andrey Vlasovskikh
1414ef8a4f
Removed check for unused FLAG_KEEP_VISUAL flag
2014-05-12 20:06:46 +04:00
Andrey Vlasovskikh
110623f6ef
Moved StringHelper.parseKeysSet() to VimCommandAction
2014-05-12 20:04:32 +04:00
Andrey Vlasovskikh
0887c72486
Updated index docs for all the visual mode commands
2014-05-12 20:00:17 +04:00
Andrey Vlasovskikh
a516fd880e
Made visual-only mode actions VimCommandActions
2014-05-12 19:28:24 +04:00