-
Notifications
You must be signed in to change notification settings - Fork 4
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
How to connect to a domain when restoring session. #84
Comments
I wanted to explain this more clearly. By default, when I open WezTerm, it attaches to the "local" domain. This domain is temporary and gets destroyed once I close the window. On the other hand, Unix domains in WezTerm behave differently—they don't automatically detach. Instead, they detach only on exit. Here's the functionality I’d like to achieve:
This workflow is similar to what I used to have with the t-smart-tmux-session-manager. I’m hoping to replicate this behavior with |
Some parts of this seem to already be possible, however there seems to be some limitations I can open a Unix domain with: However there seems to be a problem with workspaces with multiple windows, as it spawns 2 windows sharing the same pane. Here are my dotfiles, if you want to replicate it. Does this help? |
Thanks for the suggestion! I tried it, and it works fine. I can configure WezTerm to always open with To clarify, when I used t-smart-tmux-session-manager, opening a terminal by default gave me a plain terminal window—no tmux or sessions attached. This was convenient for quickly opening terminal windows to work without any additional setup. When I needed tmux, I could simply run the script to attach to a session. With WezTerm, if I open it using So, while your approach works for other workspaces (since I typically only have one window per workspace), the "default" workspace behavior creates a problem for me. Specifically, this part you mentioned:
This would indeed be an issue for me, but only for the default workspace. For other workspaces, I always use a single window. I hope this provides clarity on my use case! Let me know if there are any ideas or workarounds for this. Thanks again! |
The only idea that I have is to modify the default_workspace config option by changing the option by maybe appending a timestamp to it? You can also try to hear the people on [Matrix]https://app.element.io/#/room/#wezterm:matrix.org) sometimes there are great ideas on there 😄 |
Like we can restore the session/workspace inside the current window.
I would like to also attach to a domain when restoring a session.
I'm using
smart_workspace_switcher
, and when I select a workspace I would like to attach to theunix
domain which I've specified in my config and then restore my workspace all in the same window without any new windows spawning.Is this possible?
The text was updated successfully, but these errors were encountered: