-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add tmuxp support #87
Comments
Hi @kohane27 thanks for the suggestion. I think integrating with tmuxp is possible. Would you want non-tmuxp commands to still work (ex: listing existing sessions and attaching to current tmux sessions). If so, we'll probably need to adjust your suggestions to better work alongside existing functionality (rather than replacing it). I've got some ideas but please clarify how you'd expect this to work alongside the current features sesh has to offer.
|
Thank you for considering this feature request! Initially, I thought it'd be out of project scope but then I saw the feature "clone a git repo and connect to it as a session" so I thought loading a
I think this would be best to leave it to the user to implement? What I current use indeed combine
Thank you for considering these use cases! The following is what I have in mind:
Usage:
Note: Given there are bind flags like Things to considerThere are many session managers like tmuxinator start [project] -n [name] -p [project-config] If [[session_path]]
# tmuxp
SESSION_DIR = "~/.config/tmuxp"
SESSION_MANAGER_COMMAND = "tmuxp load -d fzf-result-tmuxp-config-name"
# tmuxinator
SESSION_DIR = "~/.config/tmuxinator"
SESSION_MANAGER_COMMAND = "tmuxinator start --project-config=path/to/fzf/result/project.yaml" Thank you again! |
I'd prefer to keep the connect command as-is, and extend it's functionality. I think this approach could work: [[session]]
name = "dotfiles"
path = "~/c/dotfiles"
tmuxp_config = "~/.config/tmuxp/dotfiles.yaml" We could update the session config over time to offer different options, like tmuxinator as well. [[session]]
name = "dotfiles"
path = "~/c/dotfiles"
tmuxinator_config = "~/.config/tmuxinator/dotfiles.yaml" Do you like this approach? Then, sesh connect would be the same, and when you chose a path that matches a config, it would detect the config and run it. |
Hello @joshmedeski Apologies for my late reply. Thank you for the suggestion:) I think this approach of yours is cleaner! I'm looking forward to testing when you have time to implement this feature. Thank you again! |
Quick workaround if you use $ cat sesh.toml
[default_session]
startup_script="~/.config/sesh/startup_script.sh"
$ cat startup_script.sh
#!/bin/bash
[[ -e ".tmuxp.yaml" ]] && tmuxp load -a . |
That works! For now I prefer being able to just call any arbitrary script. We can think more about adding specific integrations after v2 ships. |
What would you like sesh to do?
Hello there! Thank you for creating
sesh
and the previoust-smart-tmux-session-manager
!I'm trying to migrate from
t
tosesh
but facing the following problem.Description
I'm using tmuxp to
fzf
find and loadtmux
sessions:tmuxp load -d $(ls ~/.config/tmuxp | fzf)
The following is extracted from my modified
t
:I'm hoping
sesh
would have the following:sesh list ~/.config/tmuxp
tmuxp load -d
Such that I can use the following:
I understand that this may be out of project scope. I hacked on the original
t
because it's a bash script, but I'm not sure about golang.Thank you again!
The text was updated successfully, but these errors were encountered: