mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-08-18 01:31:44 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b7e37aeb20 | ||
![]() |
a86ef05d52 | ||
![]() |
1be2d9affc |
10
CHANGES.md
10
CHANGES.md
@@ -4,6 +4,16 @@ The Changelog
|
|||||||
History of changes in IdeaVim for the IntelliJ platform.
|
History of changes in IdeaVim for the IntelliJ platform.
|
||||||
|
|
||||||
|
|
||||||
|
0.31, 2013-11-12
|
||||||
|
----------------
|
||||||
|
|
||||||
|
A bugfix release.
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
|
||||||
|
* VIM-582 Fixed line comment and reformat commands with no visual selection
|
||||||
|
|
||||||
|
|
||||||
0.30, 2013-11-11
|
0.30, 2013-11-11
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
version-id:0.30
|
version-id:0.31
|
||||||
platform-version:110.0
|
platform-version:110.0
|
||||||
idea.download.url=http://download.jetbrains.com/idea/ideaIU-12.1.zip
|
idea.download.url=http://download.jetbrains.com/idea/ideaIU-12.1.zip
|
||||||
build.number=x
|
build.number=x
|
||||||
|
@@ -3,6 +3,10 @@
|
|||||||
<id>IdeaVIM</id>
|
<id>IdeaVIM</id>
|
||||||
<change-notes>
|
<change-notes>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
|
<p>0.31:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Various bug fixes</li>
|
||||||
|
</ul>
|
||||||
<p>0.30:</p>
|
<p>0.30:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Support for a separate <code>.ideavimrc</code> config file</li>
|
<li>Support for a separate <code>.ideavimrc</code> config file</li>
|
||||||
@@ -26,13 +30,6 @@
|
|||||||
<li>Fixed a long-standing bug with code completion and repeat last change command ('<code>.</code>')</li>
|
<li>Fixed a long-standing bug with code completion and repeat last change command ('<code>.</code>')</li>
|
||||||
<li>Various bug fixes</li>
|
<li>Various bug fixes</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>0.26:</p>
|
|
||||||
<ul>
|
|
||||||
<li>Added support for paste in the command mode: from a register using <code><C-R></code>, from the clipboard using <code><S-Insert></code> or <code><M-V></code></li>
|
|
||||||
<li>Added support for the last change position mark (the dot <code>.</code> mark)</li>
|
|
||||||
<li>New shortcuts for Go to declaration <code><C-]></code> and Navigate back <code><C-T></code></li>
|
|
||||||
<li>Various bug fixes</li>
|
|
||||||
</ul>
|
|
||||||
<p>See also the complete <a href="https://github.com/JetBrains/ideavim/blob/master/CHANGES.md">changelog</a>.</p>
|
<p>See also the complete <a href="https://github.com/JetBrains/ideavim/blob/master/CHANGES.md">changelog</a>.</p>
|
||||||
]]>
|
]]>
|
||||||
</change-notes>
|
</change-notes>
|
||||||
|
@@ -25,9 +25,8 @@ import com.intellij.openapi.editor.Editor;
|
|||||||
import com.maddyhome.idea.vim.KeyHandler;
|
import com.maddyhome.idea.vim.KeyHandler;
|
||||||
import com.maddyhome.idea.vim.action.AbstractDelegateEditorAction;
|
import com.maddyhome.idea.vim.action.AbstractDelegateEditorAction;
|
||||||
import com.maddyhome.idea.vim.command.Command;
|
import com.maddyhome.idea.vim.command.Command;
|
||||||
import com.maddyhome.idea.vim.common.TextRange;
|
import com.maddyhome.idea.vim.handler.AbstractEditorActionHandler;
|
||||||
import com.maddyhome.idea.vim.handler.DelegateActionHandler;
|
import com.maddyhome.idea.vim.handler.DelegateActionHandler;
|
||||||
import com.maddyhome.idea.vim.handler.VisualOperatorActionHandler;
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public class VisualOperatorDelegateAction extends AbstractDelegateEditorAction {
|
public class VisualOperatorDelegateAction extends AbstractDelegateEditorAction {
|
||||||
@@ -40,15 +39,9 @@ public class VisualOperatorDelegateAction extends AbstractDelegateEditorAction {
|
|||||||
((Handler)getHandler()).setOrigAction(origAction);
|
((Handler)getHandler()).setOrigAction(origAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class Handler extends VisualOperatorActionHandler implements DelegateActionHandler {
|
private static class Handler extends AbstractEditorActionHandler implements DelegateActionHandler {
|
||||||
protected boolean execute(@NotNull Editor editor, @NotNull DataContext context, @NotNull Command cmd,
|
protected boolean execute(@NotNull Editor editor, @NotNull DataContext context, @NotNull Command cmd) {
|
||||||
@NotNull TextRange range) {
|
|
||||||
if (logger.isDebugEnabled()) {
|
|
||||||
logger.debug("execute, cmd=" + cmd + ", range=" + range);
|
|
||||||
logger.debug("origAction=" + origAction);
|
|
||||||
}
|
|
||||||
KeyHandler.executeAction(origAction, context);
|
KeyHandler.executeAction(origAction, context);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -20,8 +20,6 @@ package com.maddyhome.idea.vim.helper;
|
|||||||
|
|
||||||
import com.intellij.openapi.actionSystem.DataContext;
|
import com.intellij.openapi.actionSystem.DataContext;
|
||||||
import com.intellij.openapi.actionSystem.PlatformDataKeys;
|
import com.intellij.openapi.actionSystem.PlatformDataKeys;
|
||||||
import com.intellij.openapi.command.undo.UndoManager;
|
|
||||||
import com.intellij.openapi.editor.Editor;
|
|
||||||
import com.intellij.openapi.fileEditor.FileEditor;
|
import com.intellij.openapi.fileEditor.FileEditor;
|
||||||
import com.intellij.openapi.project.Project;
|
import com.intellij.openapi.project.Project;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
@@ -30,16 +28,13 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
* @author oleg
|
* @author oleg
|
||||||
*/
|
*/
|
||||||
public class UndoRedoHelper {
|
public class UndoRedoHelper {
|
||||||
|
|
||||||
public static boolean undo(@NotNull final DataContext context) {
|
public static boolean undo(@NotNull final DataContext context) {
|
||||||
final Project project = PlatformDataKeys.PROJECT.getData(context);
|
final Project project = PlatformDataKeys.PROJECT.getData(context);
|
||||||
final FileEditor fileEditor = PlatformDataKeys.FILE_EDITOR.getData(context);
|
final FileEditor fileEditor = PlatformDataKeys.FILE_EDITOR.getData(context);
|
||||||
final UndoManager undoManager = UndoManager.getInstance(project);
|
final com.intellij.openapi.command.undo.UndoManager undoManager = com.intellij.openapi.command.undo.UndoManager.getInstance(project);
|
||||||
if (fileEditor != null && undoManager.isUndoAvailable(fileEditor)) {
|
if (fileEditor != null && undoManager.isUndoAvailable(fileEditor)) {
|
||||||
undoManager.undo(fileEditor);
|
undoManager.undo(fileEditor);
|
||||||
final Editor editor = PlatformDataKeys.EDITOR.getData(context);
|
|
||||||
if (editor != null) {
|
|
||||||
editor.getSelectionModel().removeSelection();
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@@ -48,12 +43,11 @@ public class UndoRedoHelper {
|
|||||||
public static boolean redo(@NotNull final DataContext context) {
|
public static boolean redo(@NotNull final DataContext context) {
|
||||||
final Project project = PlatformDataKeys.PROJECT.getData(context);
|
final Project project = PlatformDataKeys.PROJECT.getData(context);
|
||||||
final FileEditor fileEditor = PlatformDataKeys.FILE_EDITOR.getData(context);
|
final FileEditor fileEditor = PlatformDataKeys.FILE_EDITOR.getData(context);
|
||||||
final UndoManager undoManager = UndoManager.getInstance(project);
|
final com.intellij.openapi.command.undo.UndoManager undoManager = com.intellij.openapi.command.undo.UndoManager.getInstance(project);
|
||||||
if (fileEditor != null && undoManager.isRedoAvailable(fileEditor)) {
|
if (fileEditor != null && undoManager.isRedoAvailable(fileEditor)) {
|
||||||
undoManager.redo(fileEditor);
|
undoManager.redo(fileEditor);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user