New iTerm2 Window Here option open two tabs

itermterminal

When I right-clicked a folder and choose the services -> New iTerm2 Window Here option in the menu, I am getting two iTerm2 windows like this.

enter image description here

But I don't need that root level terminal here (The right side terminal of the image), because I only need this folder path terminal only. How can I stop this behavior?

Best Answer

There is open issue iterm2 opens two window or two tabs when launched from services where possible workarounds are described (also root cause of the problem as well).

From productivity point (if you end in shell anyway) you could consider switching to console based file manager (like vifm, ranger, nnn, Midnight Commander etc). You will get productivity boost from relying on keyboard only. There is also command-line fuzzy-finder fzf which could be handy.