add query-pane-info action for JSON pane/tab information #4392
+104
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Disclaimer: This PR has been developed with the help of Claude, but I've tested and reviewed manually.
Summary
query-pane-infoCLI command to retrieve structured information about the current pane and its containingtab
Changes
QueryPaneInfoaction that usesZELLIJ_PANE_IDenvironment variableQueryPaneInfoPayloadUsage
# Get information about current pane (must be run within zellij session) zellij action query-pane-infoExample Output:
{ "tab_name": "Zellij Fork", "tab_index": 1, "pane_id": 42, "pane_type": "terminal", "pane_name": "hx src/main.rs" }Architecture
Follows the established pattern of
QueryTabNames:ZELLIJ_PANE_IDenvironment variable (consistent with other pane operations)ServerInstruction::LogflowError Handling
ZELLIJ_PANE_IDnot set or malformed