Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get state before executing fn pipe [FR: plugin API] #3580

Open
Tracked by #1
Zykino opened this issue Aug 31, 2024 · 0 comments
Open
Tracked by #1

Get state before executing fn pipe [FR: plugin API] #3580

Zykino opened this issue Aug 31, 2024 · 0 comments

Comments

@Zykino
Copy link
Contributor

Zykino commented Aug 31, 2024

Descriptive steps:

  1. Cli start a pipe
  2. Zellij start the plugin
  3. Zellij call load (hopefully)
  4. My plugin subscribe to state change (EventType::SessionUpdate, EventType::TabUpdate, …)
  5. MISSING: zellij sends its state to the pluging
  6. Zellij call the pipe lifetime function.

State 5 is missing here. And I don’t see a get_zellij_state() function that I could use in pipe.

My use case: I want to react differently depending on if there is 1 or multiple user connected to the session (or tab, or…). But since I don’t get Zellij’s state, I can’t.

@Zykino Zykino changed the title [FR] Get state before executing fn pipe Get state before executing fn pipe [FR: plugin API] Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant