I started using iTerm2 some time ago and I’ve really taken to the hotkey window. With the press of a key the terminal slides in -up in my case- over your other windows and you're immediately at your prompt.
https://iterm2.com/features.html It quickly became muscle memory.
I’ve thought I wanting 'go to terminal’ to target the hotkey window, rather than spawning another terminal window, and I considered trying to write an AppleScript to do something like that. But then I thought I’d rather have a CLI command to cd to the appropriate directory for whatever I’m working on in BBEdit.
I ended up writing a bash script -with a little help from AppleScript- that will return the root (preferably) path to the open window. It also takes some options and uses ‘fzf’
https://github.com/junegunn/fzf to look up project files on disk. The idea being that you can combine this path with other commands such as, ‘cd’ or ‘ls’ or even ‘tmux’ 🤔, to do cool things.
Let me know what you think.
I hope you all are having a great new year.
— Chris(topher)?