GithubHelp home page GithubHelp logo

candz / openinterminal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ji4n1ng/openinterminal

0.0 2.0 0.0 17.4 MB

✨ Finder Toolbar app for macOS to open the current directory in Terminal, iTerm or Hyper.

License: MIT License

Swift 100.00%

openinterminal's Introduction



中文说明

How to use 🚀

1) Open current directory from toolbar

run

2) Open selected folder or file from Toolbar

run2

3) Set default terminal

You are asked to set the default terminal to open after first launch.

selector

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 version 0.3.0 and above:

defaults remove wang.jianing.OpenInTerminal-Lite OIT_TerminalBundleIdentifier

For version 0.2.0:

defaults remove wang.jianing.OpenInTerminal OIT_TerminalBundleIdentifier

4) 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 wang.jianing.OpenInTerminal-Lite OIT_iTermNewOption "tab"
# Open a new Window
defaults write wang.jianing.OpenInTerminal-Lite OIT_iTermNewOption "window"

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

How to install 🖥

Because updates are frequent, it is recommended to manually download the latest version.

Manual (latest version: 0.4.0)

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

toolbar

Homebrew (current version 0.4.0)

  1. Run the following command

    brew cask install openinterminal-lite
    
  2. In /Applications folder, hold down the Cmd key and drag the app into Finder Toolbar.

  3. Done

⚠️ 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.

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.

change_icon

Todo 👨‍💻

  • Drop down menu in FinderSync Extension ✅ By Camji55
  • Preferences panel which can allow users to set up to open new windows or new tabs. ✅
  • Open in VSCode / Atom / Sublime? (This needs discussion)
  • Supporting keyboard shortcuts

If you have a good idea, feel welcome to open a new issue.

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

Changes 🗒

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.
old version

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

Reference projects

openinterminal's People

Contributors

camji55 avatar ji4n1ng avatar vcaesar avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.