omerxx / tmux-sessionx

A Tmux session manager, with preview, fuzzy finding, and MORE
GNU General Public License v3.0
554 stars 51 forks source link

Option to trigger the session manager from terminal or other plugins #121

Open eske4 opened 1 week ago

eske4 commented 1 week ago

Great tool!

I've been using a plugin called tmux-which-key that creates a handy menu with options. It would be fantastic to have a straightforward way to trigger sessionx using this menu. It really simplifies remembering commands for my workflow. Leaving option for more custom workflows having external plugins or script trigger an opening of sessionx manager

Best regards, Eske

omerxx commented 1 week ago

Hey @eske4 , maybe I'm missing something, but sounds like this is a feature for the other plugin mentioned, isn't it?

eske4 commented 1 week ago

The idea was to have an open command that could trigger the navigation menu, allowing it to be opened from external sources. This functionality might already be in place, although I haven't found any documentation on it. Maybe it's not feasible, as I haven't used TMux for long, but it would be really nice to make it easy to integrate with custom workflows, such as custom bash scripts and other plugins.

omerxx commented 5 days ago

@eske4 If we're talking about a navigation window - that's very much do-able with tmux. You can have one command that opens a nav pop up with a selection list. I didn't quite get the last bit with "custom workflows such as custom bash scripts..." can you give and example of what you mean by that? Like, creating your own custom menu option that triggers a script?

eske4 commented 5 days ago

Currently, I use a plugin called tmux which-key that can trigger shell commands through a custom shortcut helper menu. I have also thought of various bash scripts; for example, you can have a startup script for tmux with a bash script that triggers tmux with the sessionx menu preopened. Additionally, listener scripts for other tasks that might trigger the menu.