mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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:
parent
af05671843
commit
b2e4fe1299
Notes:
sideshowbarker
2024-07-19 01:43:02 +09:00
Author: https://github.com/linusg
Commit: b2e4fe1299
Pull-request: https://github.com/SerenityOS/serenity/pull/3853
Reviewed-by: https://github.com/alimpfard
6 changed files with 36 additions and 31 deletions
|
@ -109,6 +109,8 @@ public:
|
|||
|
||||
String format(const StringView&, ssize_t& cursor) const;
|
||||
|
||||
RefPtr<Line::Editor> editor() const { return m_editor; }
|
||||
|
||||
struct LocalFrame {
|
||||
HashMap<String, RefPtr<AST::Value>> local_variables;
|
||||
};
|
||||
|
@ -154,8 +156,6 @@ public:
|
|||
void kill_job(const Job*, int sig);
|
||||
|
||||
String get_history_path();
|
||||
void load_history();
|
||||
void save_history();
|
||||
void print_path(const String& path);
|
||||
|
||||
bool read_single_line();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue