Permalink
Browse files

Added 'gg' command

  • Loading branch information...
1 parent bd3481d commit aa96bd742696fa3520358a7deb60d8fadbca669c Alexander Stigsen committed Jul 7, 2010
Showing with 13 additions and 2 deletions.
  1. +11 −1 src/CommandHandler.cpp
  2. +2 −1 src/CommandHandler.h
View
@@ -253,6 +253,9 @@ bool CommandHandler::ProcessCommand(const wxKeyEvent& evt, bool record) {
NextMatch(count, false);
EndMovement();
break;
+ case 'g':
+ m_state = state_extracmds;
+ break;
// Selection
case ',':
@@ -556,7 +559,14 @@ bool CommandHandler::ProcessCommand(const wxKeyEvent& evt, bool record) {
if (c == WXK_ESCAPE) Clear();
else ReplaceChar(uc);
break;
-
+ case state_extracmds:
+ switch (c) {
+ case 'g':
+ DoMovement(count, bind2nd(mem_fun_ref(&EditorCtrl::CursorToHome), EditorCtrl::SEL_IGNORE));
+ break;
+ default: break;
+ }
+ break;
default:
wxASSERT(false); // invalid state
View
@@ -93,7 +93,8 @@ class CommandHandler {
state_filter_sels,
state_scopesearch,
state_replace,
- state_replacechar
+ state_replacechar,
+ state_extracmds,
};
// Member variables

0 comments on commit aa96bd7

Please sign in to comment.