1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-06-05 22:34:03 +02:00

*** empty log message ***

This commit is contained in:
rmaddy 2003-04-22 18:16:33 +00:00
parent 6f256102f8
commit 2ff5feba78
19 changed files with 28 additions and 56 deletions

View File

@ -31,13 +31,13 @@ import com.maddyhome.idea.vim.command.Command;
import com.maddyhome.idea.vim.command.CommandState; import com.maddyhome.idea.vim.command.CommandState;
import com.maddyhome.idea.vim.group.CommandGroups; import com.maddyhome.idea.vim.group.CommandGroups;
import com.maddyhome.idea.vim.group.RegisterGroup; import com.maddyhome.idea.vim.group.RegisterGroup;
import com.maddyhome.idea.vim.helper.RunnableHelper;
import com.maddyhome.idea.vim.key.ArgumentNode; import com.maddyhome.idea.vim.key.ArgumentNode;
import com.maddyhome.idea.vim.key.BranchNode; import com.maddyhome.idea.vim.key.BranchNode;
import com.maddyhome.idea.vim.key.CommandNode; import com.maddyhome.idea.vim.key.CommandNode;
import com.maddyhome.idea.vim.key.KeyParser; import com.maddyhome.idea.vim.key.KeyParser;
import com.maddyhome.idea.vim.key.Node; import com.maddyhome.idea.vim.key.Node;
import com.maddyhome.idea.vim.key.ParentNode; import com.maddyhome.idea.vim.key.ParentNode;
import com.maddyhome.idea.vim.helper.RunnableHelper;
import java.awt.event.KeyEvent; import java.awt.event.KeyEvent;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Stack; import java.util.Stack;

View File

@ -22,7 +22,6 @@ package com.maddyhome.idea.vim.action;
import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.actionSystem.DataContext;
import com.maddyhome.idea.vim.KeyHandler;
import com.maddyhome.idea.vim.VimPlugin; import com.maddyhome.idea.vim.VimPlugin;
import com.maddyhome.idea.vim.command.Command; import com.maddyhome.idea.vim.command.Command;
import com.maddyhome.idea.vim.command.CommandState; import com.maddyhome.idea.vim.command.CommandState;

View File

@ -21,9 +21,9 @@ package com.maddyhome.idea.vim.ex;
import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.editor.Editor; import com.intellij.openapi.editor.Editor;
import com.maddyhome.idea.vim.VimPlugin;
import com.maddyhome.idea.vim.helper.RunnableHelper; import com.maddyhome.idea.vim.helper.RunnableHelper;
import com.maddyhome.idea.vim.undo.UndoManager; import com.maddyhome.idea.vim.undo.UndoManager;
import com.maddyhome.idea.vim.VimPlugin;
/** /**
* *

View File

@ -22,8 +22,8 @@ package com.maddyhome.idea.vim.ex;
import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.editor.Editor; import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.util.TextRange; import com.intellij.openapi.util.TextRange;
import com.maddyhome.idea.vim.ex.range.LineNumberRange;
import com.maddyhome.idea.vim.ex.range.AbstractRange; import com.maddyhome.idea.vim.ex.range.AbstractRange;
import com.maddyhome.idea.vim.ex.range.LineNumberRange;
import com.maddyhome.idea.vim.helper.EditorHelper; import com.maddyhome.idea.vim.helper.EditorHelper;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -20,8 +20,8 @@ package com.maddyhome.idea.vim.ex.handler;
*/ */
import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Editor;
import com.maddyhome.idea.vim.ex.CommandHandler; import com.maddyhome.idea.vim.ex.CommandHandler;
import com.maddyhome.idea.vim.ex.ExCommand; import com.maddyhome.idea.vim.ex.ExCommand;
import com.maddyhome.idea.vim.ex.ExException; import com.maddyhome.idea.vim.ex.ExException;

View File

@ -20,18 +20,18 @@ package com.maddyhome.idea.vim.ex.handler;
*/ */
import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Editor; import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.util.TextRange; import com.intellij.openapi.util.TextRange;
import com.intellij.openapi.diagnostic.Logger;
import com.maddyhome.idea.vim.ex.CommandHandler; import com.maddyhome.idea.vim.ex.CommandHandler;
import com.maddyhome.idea.vim.ex.CommandName;
import com.maddyhome.idea.vim.ex.ExCommand; import com.maddyhome.idea.vim.ex.ExCommand;
import com.maddyhome.idea.vim.ex.ExException; import com.maddyhome.idea.vim.ex.ExException;
import com.maddyhome.idea.vim.ex.InvalidArgumentException; import com.maddyhome.idea.vim.ex.InvalidArgumentException;
import com.maddyhome.idea.vim.ex.CommandName;
import com.maddyhome.idea.vim.group.CommandGroups; import com.maddyhome.idea.vim.group.CommandGroups;
import com.maddyhome.idea.vim.group.SearchGroup; import com.maddyhome.idea.vim.group.SearchGroup;
import java.util.StringTokenizer;
import java.util.NoSuchElementException; import java.util.NoSuchElementException;
import java.util.StringTokenizer;
/** /**
* *

View File

@ -19,19 +19,19 @@ package com.maddyhome.idea.vim.group;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.util.TextRange;
import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.diagnostic.Logger;
import java.io.CharArrayReader; import com.intellij.openapi.editor.Editor;
import java.io.StringWriter; import com.intellij.openapi.util.TextRange;
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.BufferedWriter; import java.io.BufferedWriter;
import java.io.CharArrayReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter; import java.io.OutputStreamWriter;
import java.io.Reader;
import java.io.StringWriter;
import java.io.Writer;
/** /**
* *

View File

@ -27,7 +27,6 @@ import java.nio.CharBuffer;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import javax.swing.JOptionPane; import javax.swing.JOptionPane;
import javax.swing.JButton;
/** /**
* *

View File

@ -22,7 +22,6 @@ package com.maddyhome.idea.vim.handler;
import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.editor.Editor; import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.actionSystem.EditorActionHandler; import com.intellij.openapi.editor.actionSystem.EditorActionHandler;
import com.maddyhome.idea.vim.KeyHandler;
import com.maddyhome.idea.vim.VimPlugin; import com.maddyhome.idea.vim.VimPlugin;
import com.maddyhome.idea.vim.command.Command; import com.maddyhome.idea.vim.command.Command;
import com.maddyhome.idea.vim.command.CommandState; import com.maddyhome.idea.vim.command.CommandState;

View File

@ -23,13 +23,13 @@ import com.intellij.openapi.actionSystem.DataConstants;
import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Editor; import com.intellij.openapi.editor.Editor;
import com.maddyhome.idea.vim.VimPlugin;
import com.maddyhome.idea.vim.command.Command; import com.maddyhome.idea.vim.command.Command;
import com.maddyhome.idea.vim.command.CommandState; import com.maddyhome.idea.vim.command.CommandState;
import com.maddyhome.idea.vim.ex.CommandParser; import com.maddyhome.idea.vim.ex.CommandParser;
import com.maddyhome.idea.vim.ex.ExException; import com.maddyhome.idea.vim.ex.ExException;
import com.maddyhome.idea.vim.group.CommandGroups; import com.maddyhome.idea.vim.group.CommandGroups;
import com.maddyhome.idea.vim.ui.CommandEntryPanel; import com.maddyhome.idea.vim.ui.CommandEntryPanel;
import com.maddyhome.idea.vim.VimPlugin;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;
import javax.swing.SwingUtilities; import javax.swing.SwingUtilities;

View File

@ -21,14 +21,10 @@ package com.maddyhome.idea.vim.handler.change;
import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.editor.Editor; import com.intellij.openapi.editor.Editor;
import com.maddyhome.idea.vim.KeyHandler; import com.maddyhome.idea.vim.command.Command;
import com.maddyhome.idea.vim.ex.CommandParser; import com.maddyhome.idea.vim.ex.CommandParser;
import com.maddyhome.idea.vim.ex.ExException; import com.maddyhome.idea.vim.ex.ExException;
import com.maddyhome.idea.vim.command.Command;
import com.maddyhome.idea.vim.command.CommandState;
import com.maddyhome.idea.vim.group.CommandGroups;
import com.maddyhome.idea.vim.handler.AbstractEditorActionHandler; import com.maddyhome.idea.vim.handler.AbstractEditorActionHandler;
import com.maddyhome.idea.vim.undo.UndoManager;
/** /**
*/ */

View File

@ -23,10 +23,10 @@ import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.editor.Editor; import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.util.TextRange; import com.intellij.openapi.util.TextRange;
import com.maddyhome.idea.vim.command.Argument; import com.maddyhome.idea.vim.command.Argument;
import com.maddyhome.idea.vim.ex.Ranges;
import com.maddyhome.idea.vim.group.CommandGroups; import com.maddyhome.idea.vim.group.CommandGroups;
import com.maddyhome.idea.vim.group.SearchGroup; import com.maddyhome.idea.vim.group.SearchGroup;
import com.maddyhome.idea.vim.handler.ChangeEditorActionHandler; import com.maddyhome.idea.vim.handler.ChangeEditorActionHandler;
import com.maddyhome.idea.vim.ex.Ranges;
/** /**
*/ */

View File

@ -23,9 +23,9 @@ import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.editor.Editor; import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.util.TextRange; import com.intellij.openapi.util.TextRange;
import com.maddyhome.idea.vim.command.Argument; import com.maddyhome.idea.vim.command.Argument;
import com.maddyhome.idea.vim.ex.Ranges;
import com.maddyhome.idea.vim.group.CommandGroups; import com.maddyhome.idea.vim.group.CommandGroups;
import com.maddyhome.idea.vim.handler.ChangeEditorActionHandler; import com.maddyhome.idea.vim.handler.ChangeEditorActionHandler;
import com.maddyhome.idea.vim.ex.Ranges;
/** /**
*/ */

View File

@ -23,7 +23,6 @@ import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.editor.Editor; import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.actionSystem.EditorActionHandler; import com.intellij.openapi.editor.actionSystem.EditorActionHandler;
import com.maddyhome.idea.vim.group.CommandGroups; import com.maddyhome.idea.vim.group.CommandGroups;
import com.maddyhome.idea.vim.undo.UndoManager;
/** /**
* *

View File

@ -42,7 +42,7 @@ import javax.swing.KeyStroke;
* <li>Insert - The mode where you actually enter text into the editor</li> * <li>Insert - The mode where you actually enter text into the editor</li>
* <li>Operator Pending - This mode is entered after an operator has been entered. Arguments then follow</li> * <li>Operator Pending - This mode is entered after an operator has been entered. Arguments then follow</li>
* <li>Command Line - The mode for entering ex commands</li> * <li>Command Line - The mode for entering ex commands</li>
* </ul>A * </ul>
* Several convenience methods are provided for building the key mapping trees. The mappings supplied to all the * Several convenience methods are provided for building the key mapping trees. The mappings supplied to all the
* <code>registerAction</code> methods are combinations of the five mapping constants. The action names supplied * <code>registerAction</code> methods are combinations of the five mapping constants. The action names supplied
* must be valid action ids registered with Idea. These can be built in actions supplied with Idea or custom actions * must be valid action ids registered with Idea. These can be built in actions supplied with Idea or custom actions

View File

@ -33,8 +33,6 @@ import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent; import java.awt.event.ComponentEvent;
import java.awt.event.FocusAdapter; import java.awt.event.FocusAdapter;
import java.awt.event.FocusEvent; import java.awt.event.FocusEvent;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import javax.swing.BorderFactory; import javax.swing.BorderFactory;
import javax.swing.JComponent; import javax.swing.JComponent;
import javax.swing.JLabel; import javax.swing.JLabel;
@ -45,6 +43,7 @@ import javax.swing.SwingUtilities;
/** /**
* TODO - support complete set of command line editing keys * TODO - support complete set of command line editing keys
* TODO - redo focus change support to work like MorePanel
*/ */
public class CommandEntryPanel extends JPanel public class CommandEntryPanel extends JPanel
{ {
@ -98,24 +97,6 @@ public class CommandEntryPanel extends JPanel
} }
} }
}); });
// TODO - move these keys to the ExEditorKit
/*
entry.addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent e)
{
if (e.getKeyCode() == KeyEvent.VK_BACK_SPACE)
{
if (entry.getDocument().getLength() == 0)
{
e.consume();
entry.setText("");
entry.postActionEvent();
}
}
}
});
*/
} }
public void activate(JComponent comp, String label, String initText) public void activate(JComponent comp, String label, String initText)

View File

@ -21,7 +21,6 @@ package com.maddyhome.idea.vim.ui;
import java.awt.event.KeyEvent; import java.awt.event.KeyEvent;
import javax.swing.KeyStroke; import javax.swing.KeyStroke;
import javax.swing.JTextField;
import javax.swing.text.JTextComponent.KeyBinding; import javax.swing.text.JTextComponent.KeyBinding;
/** /**

View File

@ -22,8 +22,8 @@ package com.maddyhome.idea.vim.ui;
import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.diagnostic.Logger;
import java.awt.Font; import java.awt.Font;
import javax.swing.Action; import javax.swing.Action;
import javax.swing.JTextField;
import javax.swing.InputMap; import javax.swing.InputMap;
import javax.swing.JTextField;
import javax.swing.text.Document; import javax.swing.text.Document;
import javax.swing.text.Keymap; import javax.swing.text.Keymap;
import javax.swing.text.TextAction; import javax.swing.text.TextAction;

View File

@ -19,28 +19,28 @@ package com.maddyhome.idea.vim.ui;
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.fileEditor.FileEditorManagerEvent;
import com.intellij.openapi.fileEditor.FileEditorManagerListener;
import java.awt.BorderLayout; import java.awt.BorderLayout;
import java.awt.Component; import java.awt.Component;
import java.awt.Container; import java.awt.Container;
import java.awt.Font; import java.awt.Font;
import java.awt.Point; import java.awt.Point;
import java.awt.Rectangle; import java.awt.Rectangle;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.awt.event.FocusAdapter; import java.awt.event.FocusAdapter;
import java.awt.event.FocusEvent; import java.awt.event.FocusEvent;
import java.awt.event.KeyAdapter; import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent; import java.awt.event.KeyEvent;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import javax.swing.BorderFactory; import javax.swing.BorderFactory;
import javax.swing.JLabel; import javax.swing.JLabel;
import javax.swing.JPanel; import javax.swing.JPanel;
import javax.swing.JScrollPane; import javax.swing.JScrollPane;
import javax.swing.JTextArea; import javax.swing.JTextArea;
import javax.swing.SwingUtilities; import javax.swing.SwingUtilities;
import com.intellij.openapi.fileEditor.FileEditorManagerListener;
import com.intellij.openapi.fileEditor.FileEditorManagerEvent;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Editor;
/** /**
* This panel displays text in a <code>more</code> like window. * This panel displays text in a <code>more</code> like window.