Ji4n1ng / OpenInTerminal

✨ Finder Toolbar app for macOS to open the current directory in Terminal, iTerm, Hyper or Alacritty.
MIT License
5.92k stars 234 forks source link

Only apply shortcuts on specific windows #144

Closed devnoname120 closed 3 years ago

devnoname120 commented 3 years ago

Summarize this feature

Only apply global shortcuts to specific windows (iterm, etc.)

Why should this feature be included?

I've bound Cmd + Shift + t to Open with default Terminal. This works great but when I'm on Chrome the shortcut Cmd + Shift + t that opens the last closed tab doesn't work anymore.

Additional information

Thank you for this great piece of software!

Ji4n1ng commented 3 years ago

Hi @devnoname120 . This shortcut key conflicts on these two apps. Cmd + Shift + T is a very useful shortcut on Chrome. I suggest you consider using Cmd + Option + T or Cmd + Ctrl + T to open terminal.

devnoname120 commented 3 years ago

Thank you! I've switched my shortcut to this and it indeed doesn't seem to conflict with other shortcuts. 👌 I wonder if the shortcut could be contextual (only apply if a specific window is open).

Ji4n1ng commented 3 years ago

Currently we cannot do that unless macOS gives the related API.