1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:27:42 +00:00

Shell+LibLine: Move Shell::{load,save}_history() to Line::Editor

This allows us to easily re-use history loading and saving in other
programs using Line::Editor, as well as implementing universally
recognized HISTCONTROL.
This commit is contained in:
Linus Groh 2020-10-25 23:25:41 +00:00 committed by Andreas Kling
parent af05671843
commit b2e4fe1299
6 changed files with 36 additions and 31 deletions

View file

@ -143,7 +143,9 @@ public:
void initialize();
void add_to_history(const String&);
void add_to_history(const String& line);
bool load_history(const String& path);
bool save_history(const String& path);
const Vector<String>& history() const { return m_history; }
void register_key_input_callback(const KeyBinding&);