summaryrefslogtreecommitdiff
path: root/src/input_handler.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-02-18 18:58:07 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-02-18 18:58:07 +0100
commitb43fdc7eb67f282ff37b98ceb19077185228885b (patch)
tree2013b00556d639e752022562d7aeee0beb28c00d /src/input_handler.hh
parent577734dae725739aa1fe6f87334253441385f24a (diff)
Add macro recording/replay support
Diffstat (limited to 'src/input_handler.hh')
-rw-r--r--src/input_handler.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh
index 9089273d..ad93ef9f 100644
--- a/src/input_handler.hh
+++ b/src/input_handler.hh
@@ -65,6 +65,10 @@ public:
// user interface
void handle_available_inputs();
+ void start_recording(char reg);
+ bool is_recording() const;
+ void stop_recording();
+
Context& context() { return m_context; }
private:
Context m_context;
@@ -74,6 +78,9 @@ private:
using Insertion = std::pair<InsertMode, std::vector<Key>>;
Insertion m_last_insert = {InsertMode::Insert, {}};
+
+ char m_recording_reg = 0;
+ String m_recorded_keys;
};
struct prompt_aborted {};