diff options
| author | Aram Drevekenin <aram@poor.dev> | 2025-10-27 12:31:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-27 12:31:02 +0100 |
| commit | 8762f866380360457c84c1e7ce7973f104468f87 (patch) | |
| tree | b437ef473578e2120b67e6d96068e05b7cb88511 /zellij-utils/src/cli.rs | |
| parent | Migrate from wasmtime to wasmi (#4449) (diff) | |
| download | sl0ppij-8762f866380360457c84c1e7ce7973f104468f87.tar.gz sl0ppij-8762f866380360457c84c1e7ce7973f104468f87.tar.xz sl0ppij-8762f866380360457c84c1e7ce7973f104468f87.zip | |
Feature: watcher clients (#4487)
* initial implementation
* make Screen aware of watchers - slightly buggy
* fix: only render focused tab to watcher
* track watcher sizes on Screen
* pad watcher output as needed
* truncate watcher sizes as needed
* render on watcher resize
* fix watcher first resize
* allow watchers to quit with esc, ctrl-c or ctrl-q
* fix: send watcher size on initial connection message
* refactor: move padding logic to output
* fix watcher rendering after all clients disconnected
* fix watcher rendering caching issues
* crop watcher cursor when out of bounds
* remove watchers cleanly on session close
* standardize watcher messages ignoring
* add e2e test for watcher functionality
* update snapshots
* add output tests
* rustfmt
* cleanups
* docs(changelog): add PR
Diffstat (limited to 'zellij-utils/src/cli.rs')
| -rw-r--r-- | zellij-utils/src/cli.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs index 495066d0..da1f777a 100644 --- a/zellij-utils/src/cli.rs +++ b/zellij-utils/src/cli.rs @@ -271,6 +271,14 @@ pub enum Sessions { forget: bool, }, + /// Watch a session (read-only) + #[clap(visible_alias = "w")] + Watch { + /// Name of the session to watch + #[clap(value_parser)] + session_name: Option<String>, + }, + /// Kill a specific session #[clap(visible_alias = "k")] KillSession { |
