public static void UpdLastUsed(IViCommand c, Object a) { _lastusedcommand = c; _lastusedargument = a; if (!c.GetType().IsDefined(typeof(MovementAttribute), false)) { LastUsedCommandForDot = c; LastUsedArgumentForDot = a; } }
private void TextEnteringEventHandler( Object sender, TextCompositionEventArgs e) { vh.TextArea.Selection = ICSharpCode.AvalonEdit.Editing.Selection.Empty; if ( e.Text.Length >0){ _argument = e.Text.ToCharArray()[0]; ViSDGlobalText.Text = e.Text; if ( ServeArgumentCmd!=null){ ServeArgumentCmd.Execute(this); ServeArgumentCmd=null; } e.Handled= true; ViSDGlobalCount.Process(); ViSDGlobalState.State = State.Command; } }
private void TextEnteringEventHandler(Object sender, TextCompositionEventArgs e) { vh.TextArea.Selection = ICSharpCode.AvalonEdit.Editing.Selection.Empty; if (e.Text.Length > 0) { _argument = e.Text.ToCharArray()[0]; ViSDGlobalText.Text = e.Text; if (ServeArgumentCmd != null) { ServeArgumentCmd.Execute(this); ServeArgumentCmd = null; } e.Handled = true; ViSDGlobalCount.Process(); ViSDGlobalState.State = State.Command; } }
public ViInputBinding(IViCommand vc, Key k, ModifierKeys mk) { key = k; command = vc; modkey = mk; }
public CmdAppend() { movecur = new CmdCaretRight(); }
public void Add(IViCommand vc, Key k, ModifierKeys mk) { inputList.Add(new ViInputBinding(vc, k, mk)); }
public static void UpdateMove( IViCommand c, Object a) { _MoveCursor = c; _MoveCursorArg = a; }
public CmdOpenAboveInsert() { movecur = new CmdOpenAbove(); }
public CmdPrevLine() { Up = new CmdCaretUp(); BolHard = new CmdBOLHard(); Bol = new CmdBOLSoft(); }
public CmdOpenBelowInsert() { movecur = new CmdOpenBelow(); }
public CmdSubCharInsert() { movecur = new CmdSubChar(); }
public CmdNextLine() { Down = new CmdCaretDown(); BolHard = new CmdBOLHard(); Bol = new CmdBOLSoft(); }
public CmdInsertBOL() { movecur = new CmdInsertBOLPrepeare(); }
public CmdSubLineInsert() { movecur = new CmdSubLine(); }
public static void Reset() { _MoveCursor = null; _MoveCursorArg = null; }
public static void UpdateMove(IViCommand c, Object a) { _MoveCursor = c; _MoveCursorArg = a; }
public CmdAppendEOL() { movecur = new CmdAppendEOLPrepeare(); }
public void AddCommand(IViCommand vc, Key k, ModifierKeys mk) { ViInputList.Add(vc, k, mk); }
public void AddCommand(IViCommand vc, Key k, ModifierKeys mk) { ViInputList.Add( vc, k, mk); }
public static void UpdLastUsed( IViCommand c, Object a) { _lastusedcommand = c; _lastusedargument = a; if ( !c.GetType().IsDefined(typeof(MovementAttribute), false)){ LastUsedCommandForDot = c; LastUsedArgumentForDot = a; } }
public CmdChangeEOLInsert() { movecur = new CmdChangeEOL(); }