mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:22:45 +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
					
				
					 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
	
	 Timothy Flynn
						Timothy Flynn