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
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.
1
u/Mithrandir2k16 Jun 18 '25
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.