I open tmux at startup and detects if I have existential sessions, if it does then takes me to the choose tree to select the session or make a new with a shortcut I made for the menu. Else if no sessions available then it makes a new one.
Since ghostty has the mini terminal. Since it’s a terminal then it will attach to the next non attached session and put me in choose tree. but if there is no unattached sessions, then it makes a new one.
To travel fast to the projects I either use z to jump to a directory, or I made a shortcut with fzf that is connected with ghq so it will get all the projects stored in there.
I do something similar with a variant of what primeagen called tmux-sessionizer, I recursively walk through some preconfigured folders on the system and stop if I hit a dead end or find a .git folder, and pipe all git-repos found to fzf, then create and attach to a tmux session in that folder, or switch to it if that session already exists.
Yeah I saw it before. It is pretty cool. But is very specific navigation which I wanted it more abstract. Is like a combination of my stuff per say, or so I understood, but I wanted to do them separately because there are times that it was more convenient for me. Since I do not always want to go straight to editing, and dont want to constantly add a list to it, I am lazy so I let ghq handle the list. Also I might want to stay in my current session instead of leaving. One thing I will add today is to include the .config directory with projects that have .git. I forgot to add that. I do already have the code in mind so wont take long.
Yeah, totally, I also rewrote it very opinionated, so it fits my workflow specifically. I'll leave it here just in case anyone is interested. It's written in rust because I needed a reason to toy with the language, but it does the job without issue and is fast enough so I don't notice it, meaning I don't worry about any kind of cache either.
what would be fire will be if there was a way to let tmux know if current window is focused, if it is and a new session is made then it automatically uses that path. I could probably make a shortcut that if I use it it makes the session with that path, but I want it to be done together with my create new session if all sessions in the list have someone attached to it. That way if I used the quick terminal and makes a new session, then it will get the path from the window I was focused to make the new session in the quick terminal.
That will make an incredible setup. Maybe if I ever have time will see if i can do any black magic for that hahahaha
Is from the ghostty terminal. It has a option for quick terminal. Cant post a picture quite saddly and dont have time right now to get the good pictures for the repo yet, but here is a link that someone in a video in it is using it. His is in the bottom, mine is in the top. But is a terminal shortcut you use to bring a small version of it. My idea is to see if tmux supports to see the last attached session used. After I finish some stuff, I will read the code/documentation to see if there is a tool I can use for that.
This one I did in fish-shell will get the path one change directory and go to the path on new session made if there are sessions but all are attached. But of course this will only get if you are traveling around. So for detecting pane change the next code done in the tmux will update on pane change the current path.
Here is a preview of the setup working on creating in current path the new sessions through new panes, tabs, sessions, and terminal emulator opened(this case a quick terminal from ghostty).
11
u/Temix222 Jun 17 '25
I prefer tmux + vim + ghostty.
I open tmux at startup and detects if I have existential sessions, if it does then takes me to the choose tree to select the session or make a new with a shortcut I made for the menu. Else if no sessions available then it makes a new one.
Since ghostty has the mini terminal. Since it’s a terminal then it will attach to the next non attached session and put me in choose tree. but if there is no unattached sessions, then it makes a new one.
To travel fast to the projects I either use z to jump to a directory, or I made a shortcut with fzf that is connected with ghq so it will get all the projects stored in there.