Open srustamo opened 4 years ago
You might be able to try something based on recording the PID (I assume windows has those) every time you create a new terminal, and only open a new one if the old one has finished?
If you can, please leave this open for a while, perhaps someone might chime in.
You definitely need a way to talk with the terminal. Guake is a dropdown terminal that can be queried with dbus, see https://github.com/SleepyBag/dropdown-remote
Guake is linux only though.
I can reuse guake tab with this :
(use-package terminal-here
:config
(defun my-terminal-here-terminal-command (dir)
(list "guake" "-s" "0" "--show" "-e"
(concat "cd \"" (shell-quote-argument dir) "\"")))
(setq terminal-here-terminal-command 'my-terminal-here-terminal-command))
I'm trying to figure out if it is possible to re-use an already open Windows Terminal window if one is already open at the cwd.
Any ideas how to go about it?