zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
19.81k stars 620 forks source link

feature: ability to run zellij actions on specific panes or tabs #3061

Open uncomfyhalomacro opened 6 months ago

uncomfyhalomacro commented 6 months ago

One thing I noticed while using zellij is the lack of the feature to run "actions" on specific panes or tabs (tabs are essentially panes I believe).

My use case is when doing editor functionality to interact with zellij e.g. a neovim plugin or a kakoune script for kakoune. For example, I want to run cargo clippy on an existing pane, let's say the pane having the ID of 12. This can be accomplished with the write-chars command:

zellij action write-chars --pane-id 12 "cargo clippy"
zellij action write --pane-id 12 10

I quite missed this functionality from tmux to be able to do tasks on specific panes.

cristiand391 commented 6 months ago

Related https://github.com/zellij-org/zellij/issues/2835