mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Assistant: Add provider to run a command in a terminal
Prefix text with "$" in the Assistant text box to run a command in a forked terminal. For example, "$ top" or "$ top -s pid".
This commit is contained in:
parent
d5dfc255ed
commit
d69691a26b
Notes:
sideshowbarker
2024-07-18 11:04:01 +09:00
Author: https://github.com/trflynn89
Commit: d69691a26b
Pull-request: https://github.com/SerenityOS/serenity/pull/8363
Reviewed-by: https://github.com/MaxWipfli
Reviewed-by: https://github.com/SpencerCDixon
3 changed files with 54 additions and 6 deletions
|
@ -139,6 +139,10 @@ public:
|
|||
recv_results(query, results);
|
||||
});
|
||||
|
||||
m_terminal_provider.query(query, [=, this](auto results) {
|
||||
recv_results(query, results);
|
||||
});
|
||||
|
||||
m_url_provider.query(query, [=, this](auto results) {
|
||||
recv_results(query, results);
|
||||
});
|
||||
|
@ -182,6 +186,7 @@ private:
|
|||
AppProvider m_app_provider;
|
||||
CalculatorProvider m_calculator_provider;
|
||||
FileProvider m_file_provider;
|
||||
TerminalProvider m_terminal_provider;
|
||||
URLProvider m_url_provider;
|
||||
|
||||
Threading::Lock m_lock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue