Skip to content

new wezterm cli set-environment-vars for all panes in a Tab / MuxWindow #6565

@MartyMcFlyInTheSky

Description

@MartyMcFlyInTheSky

Is your feature request related to a problem? Please describe.

I want to use one neovim instance per Pane or MuxWindow, essentially reusing the started up neovim instance in say pane 1 to open the files when I enter nvim file.txt from pane 2. The way I pictured this to work is to start nvim with the --listen option in one pane and update the NVIM_LISTEN_ADDRESS environment variable for all panes in the Tab/MuxWindow at the same time. Neovim instances launched in other panes would then check for that environment variable and add the --server flag to connect to the specified neovim instance.

I was kinda excited when AI hallucinated a really convenient solution here, which would be to use wezterm-cli to target all panes in the MuxWindow and update environment variables for it. It fabricated something like this:

wezterm cli set-environment-vars --pane-id all "export LISTEN_ADDRESS=some_named_pipe"

But unfortunately there's no set-environment-vars subcommand and neither is there a --pane-id all target. It would be very nice and convenient to have it! Also to target not only panes but Tabs and MuxWindows.

Remark: I'm also interested in other solutions to the issue I'm trying to solve. I think it's probably something that could be solved with events but it sounds cumbersome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions