Replies: 3 comments 1 reply
-
Have you tried To trigger the action, checkout this guide to pass data from the pane to your config: |
Beta Was this translation helpful? Give feedback.
-
It's possible I'm not understating how that would relate but neither of those seem to address my issue. Ultimately I want to have a shell script that in effect looks something like:
What I don't want, as stated in my post, is to have to remember a rarely uses hot key combination just to change the leader so that I can then just call mosh and then have to reverse the process when I get back. My hope is to bake this "memory" in to the script so that everything just 'feels' the same no matter where I am or what server I'm on. But the linked docs all seem to be focused on setting hot keys to trigger some action. Am I reading the docs correctly or is there an aspect of those that I missed? |
Beta Was this translation helpful? Give feedback.
-
Thanks @bew and @wez for helping me understand. I was able to stitch this together from the examples in the docs. in config:
which allowed me to script the change like I wanted
I'm guessing this is not the most elegant solution but it is working as intended for me. Thanks again @bew and @wez for the pointers. EDIT: remove typo |
Beta Was this translation helpful? Give feedback.
-
I'm using the wez-tmux plugin to replace kitty + tmux, it works great for local but I have a remote development server that I use mosh to keep a long running tmux session. I am looking for a way to have a single
dev-server
script that will connect with an alternate leader set.So far I've not found a way to issue config changes from the CLI. I found the toggle leader stuff but that's assigning a key to trigger the event rather than have an event triggered from a script and all of
wezterm cli
is about pane and window management rather than issuing actions.So far the best I have pulled together is to make a copy of my config for the development server and can connect via
wezterm --config-file ~/.config/wezterm/devserver.lua start -- mosh dev-server tmux attach
but that starts a new window and leaves me with an unusable pane.Any ways to approach this better or have a config swap in place?
Beta Was this translation helpful? Give feedback.
All reactions