diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-02-18 18:58:07 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-02-18 18:58:07 +0100 |
| commit | b43fdc7eb67f282ff37b98ceb19077185228885b (patch) | |
| tree | 2013b00556d639e752022562d7aeee0beb28c00d /src/input_handler.hh | |
| parent | 577734dae725739aa1fe6f87334253441385f24a (diff) | |
Add macro recording/replay support
Diffstat (limited to 'src/input_handler.hh')
| -rw-r--r-- | src/input_handler.hh | 7 |
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 {}; |
