From b43fdc7eb67f282ff37b98ceb19077185228885b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 18 Feb 2013 18:58:07 +0100 Subject: Add macro recording/replay support --- src/input_handler.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/input_handler.hh') 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>; Insertion m_last_insert = {InsertMode::Insert, {}}; + + char m_recording_reg = 0; + String m_recorded_keys; }; struct prompt_aborted {}; -- cgit v1.2.3