Exemple #1
0
 public override void Execute(object arg)
 {
     ViSDGlobalCount.ResetCommand();
     ViSDGlobalText.UpdateMove(movecur, arg);
     movecur.Execute(arg);
     ViSDGlobalState.State = State.Insert;
 }
Exemple #2
0
        public void Execute(object arg)
        {
            ViSDGlobalCount.ResetCommand();
            ArgumentMode am = arg as ArgumentMode;

            if (am != null)
            {
                int    line     = am.vh.TextArea.Caret.Line;
                String filename = am.vh.FileName;
                char   bookmark = am.Argument;
                foreach (Bookmarks.ViSDBookmark b in Bookmarks.ViSDGlobalBookmarks.Bookmarks)
                {
                    if (b.Bookmark == bookmark)
                    {
                        if (b.FileName == filename)
                        {
                            if (b.Line <= am.vh.TextArea.Document.Lines.Count)
                            {
                                am.vh.TextArea.Caret.Line = b.Line;
                                am.vh.TextArea.Caret.BringCaretToView();
                            }
                        }
                    }
                }
            }
        }
        public void Execute(object arg)
        {
            ViSDGlobalCount.ResetCommand();
            ArgumentMode am = arg as ArgumentMode;

            if (am != null)
            {
                int    line     = am.vh.TextArea.Caret.Line;
                String filename = am.vh.FileName;
                char   bookmark = am.Argument;
                Bookmarks.ViSDGlobalBookmarks.Bookmarks.Add(bookmark, filename, line);
            }
        }
        public void Execute(object arg)
        {
            ViSDGlobalCount.ResetCommand();
            TextArea ta = arg as TextArea;

            if (ta != null)
            {
                VimHandler vh = ta.ActiveInputHandler as VimHandler;
                if (vh != null)
                {
                    vh.ArgumentMode.ServeArgumentCmd = new ArgumentCommands.CmdTillChar();
                    ViSDGlobalState.State            = State.ArgumentMode;
                }
            }
        }
Exemple #5
0
 public void Execute(object arg)
 {
     ViSDGlobalCount.ResetCommand();
     tfsc.Run();
 }
Exemple #6
0
 void IViCommand.Execute(object arg)
 {
     ViSDGlobalCount.ResetCommand();
     snw.Run();
 }
Exemple #7
0
 public void Execute(object arg)
 {
     ViSDGlobalText.Reset();
     ViSDGlobalCount.ResetCommand();
     ViSDGlobalState.State = State.Insert;
 }
Exemple #8
0
 public void Execute(object arg)
 {
     ViSDGlobalCount.ResetCommand();
     ViSDGlobalState.State = State.FindWord;
 }