waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

[Feature]: Sending a command to multiple terminals

Open kamack38 opened this issue 2 months ago • 0 comments

Feature description

Currently, there is no way to send a command to multiple terminals. For example, I want to execute some program on multiple ssh blocks.

Implementation Suggestion

  1. GUI toolbar (this is the solution I would most satisfied with) - A GUI toolbar that would allow the user to type a command and select the blocks (in this case terminals) to send it to, grouped by workspaces and tabs (if I want to send a command to all workspaces or only a selected one without having to click through each terminal).
  2. Advanced macro system - This would allow me to record a macro (type the command I want to execute and press enter to execute it) and then execute it on multiple terminals, by selecting the blocks in which I want the macro executed.
  3. Better scripting support - I haven't found a way to get the IDs or names of all ssh terminals in a workspace and then send a command to each of them. The best way would be to add a command to list all blocks in a computer readable format (like JSON or YAML) and then filter only those that are connected over ssh and send the desired command to them.

Anything else?

No response

kamack38 avatar Dec 19 '24 19:12 kamack38