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

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

Open
MartyMcFlyInTheSky opened this issue Jan 8, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@MartyMcFlyInTheSky
Copy link

MartyMcFlyInTheSky commented Jan 8, 2025

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.

@MartyMcFlyInTheSky MartyMcFlyInTheSky added the enhancement New feature or request label Jan 8, 2025
@MartyMcFlyInTheSky MartyMcFlyInTheSky changed the title wezterm cli update environment vars for all panes in a Tab / MuxWindow wezterm cli set-environment-vars for all panes in a Tab / MuxWindow Jan 8, 2025
@MartyMcFlyInTheSky MartyMcFlyInTheSky changed the title wezterm cli set-environment-vars for all panes in a Tab / MuxWindow new wezterm cli set-environment-vars for all panes in a Tab / MuxWindow Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant