Closed a-kenji closed 3 months ago
Hi @a-kenji ! Are you thinking of sending something like an event?
This sort of thing? https://github.com/zellij-org/zellij/blob/639566df1540b2a80f6fdf27d7eb2ce823fa03e5/zellij-tile/src/data.rs#L46-L55
Hey @TheLostLambda, Yes! For example:
SendJson(Json),
SendText(String),
So that zellij could send clipboard contents, output of commands, input of commands, or the pane contents to plugins.
I think this would be very helpful to enable useful background plugins and would be willing to implement this. Do we just want to enable unstructured text to be sent, or also allow plugins to register their own actions? The first is more flexible, the latter is more consistent and is the most similar to other systems. The first would also already solve the issue of knowing which plugin to send the data to.
Add an action that can send structured/unstructured data to a plugin.