Skip to content

Latest commit

 

History

History
223 lines (167 loc) · 7.38 KB

File metadata and controls

223 lines (167 loc) · 7.38 KB



English | 中文说明

How to use 🚀

1) Open current directory in Terminal (or Editor)

2) Open selected folder or file in Terminal (or Editor)

How to install 🖥

Homebrew (current version: 1.0.2)

  1. Run the following command
brew cask install openinterminal-lite
# or
brew cask install openineditor-lite
  1. In /Applications folder, hold down the Cmd key and drag the app into Finder Toolbar.

⚠️ macOS will ask your permissions to access Finder and Terminal (iTerm or Hyper) when you run the app for the first time. Please give the application permissions.

Manual (latest version: 1.0.2)

  1. Download from release.
  2. Move the app into /Applications.
  3. Hold down the Cmd key and drag the app into Finder Toolbar.

Settings 🔨

1) Set default terminal (or editor)

You are asked to set the default terminal (or editor) to open after first launch.

The selection box will not appear after you have set the default terminal. If you want to reset the default terminal, please enter the following command in the terminal. Then just run the application again.

# For OpenInTerminal-Lite:
defaults remove wang.jianing.OpenInTerminal-Lite OIT_TerminalBundleIdentifier
# For OpenInEditor-Lite:
defaults remove wang.jianing.OpenInEditor-Lite OIT_EditorBundleIdentifier
Set Alacritty as the default terminal:
defaults write wang.jianing.OpenInTerminal-Lite OIT_TerminalBundleIdentifier Alacritty
Set VSCodium as the default editor:
defaults write wang.jianing.OpenInEditor-Lite OIT_EditorBundleIdentifier VSCodium
Set BBEdit as the default editor:
defaults write wang.jianing.OpenInEditor-Lite OIT_EditorBundleIdentifier BBEdit
Set Visual Studio Code - Insiders as the default editor:
defaults write wang.jianing.OpenInEditor-Lite OIT_EditorBundleIdentifier VSCodeInsiders
Set TextMate as the default editor:
defaults write wang.jianing.OpenInEditor-Lite OIT_EditorBundleIdentifier TextMate

2) If you are using Dark Mode

I provided several icons along with the app in the release. You can right click on the app and select Get Info. Drag the icon to cover the default icon.


3) Open in a new Tab or Window

When you are using Terminal and iTerm, you can set a default to open a new tab or window. The default is to open a new window.

For Terminal:

# Open a new Tab
defaults write wang.jianing.OpenInTerminal-Lite OIT_TerminalNewOption tab
# Open a new Window
defaults write wang.jianing.OpenInTerminal-Lite OIT_TerminalNewOption window

For iTerm:

# Open a new Tab
defaults write com.googlecode.iterm2 OpenFileInNewWindows -bool false
# Open a new Window
defaults write com.googlecode.iterm2 OpenFileInNewWindows -bool true

For Hyper users, it is more recommended to open a new tab.

For Alacritty users, it is only supported to open a new window now.

FAQ ❓

1. I accidentally clicked on the Don't Allow button.

You can run the following command in the terminal. This will reset the permissions in the System Preferences.

tccutil reset AppleEvents
2. Special characters in the path.

Please do not use backslash \ and double quotes " in the path

3. Why it cannot automatically switch icons when switching from/to Dark mode

As for OpenInTerminal-Lite, the icon in Finder Toolbar is app icon not Finder extension icon. And I have not found a API to change the app icon (If you have any good idea, please let me know). Therefore, it is not currently possible to replace it automatically based on Dark mode.
As for OpenInTerminal, the icon of it in Finder Toolbar is Finder extension icon. It can change automatically when switching between dark mode and light mode. So you can try to use OpenInTerminal.

Changes 🗒

version 1.0.2

  • Support TextMate.
  • Change OpenInEditor-Lite default icon.

version 1.0.1

  • Support Visual Studio Code - Insiders

version 1.0.0

  • Support BBEdit
  • Fix: check application folder under home directory
old version

version 0.4.4

  • iTerm will not leave 'cd xxx' in history.
  • Fix: icon will not flash in dock

version 0.4.3

  • Fix localization bug

version 0.4.2

  • Support French

version 0.4.1

  • Support Alacritty

version 0.4.0

  • You can set a default to open a new tab or window when using Terminal and Hyper.

version 0.3.0

  • Change name to OpenInTerminal-Lite (OpenInTerminal will come as a more powerful version in the future.)
  • Fix a bug that some special characters in the path would crash the program when opening Hyper.

version 0.2.0

  • Add terminal selector
  • Cancel running clear command when opening iTerm

version 0.1.1

  • Support Hyper
  • Give priority to creating a new tab when opening iTerm

version 0.1.0

  • First release

Special Thanks to ❤️

Contributors

Translators

Reference projects