Skip to content

👩‍💻Open project folder with VSCode/Typora/ITerm2 with one touch

License

Notifications You must be signed in to change notification settings

snoop2head/Macbook_TouchBar_Shortcuts

Repository files navigation

Macbook Pro Touchbar Shortcuts for Developers

What you can do

  1. For Macbook Pros with touch bars, you can open folder with programs with one click.
  • On touchbar, shortcut Buttons will look like following

touchbar_example

  • Runthrough Example: Open folder with VSCode

gif

  1. Right Click to open folder with certain programs: Iterm2, Typora, VSC etc...

img

How

  1. Spotlight(CMD + Space) to find Automator.

img

  1. Choose Quick Action

img

  1. You'll get this screen after selecting quick action

img

  1. On the left side of panel, search for "Run Shell Script"

img

  1. Then, on the right side of panel will look like this. Now We are ready to customize this quickaction one-by-one.

img

  1. Workflow receives current "files or folders"

img

  1. Workflow receives current "files or folders" in "Finder"

img

(optional) Choose Icon which intuitively displays the action for you.

img

  1. Select shell as "/bin/bash" and write the script(AppleScript) as following:

img

To Open VSCode with quickaction:

for f in "$@"; do
    open -a 'Visual Studio Code' "$f"
done

To Open iTerm with quickaction:

for f in "$@"; do
    open -a iTerm "$f"
done

To Open Typora with quickaction:

for f in "$@"; do
    open -a typora "$f"
done
  1. Pass input "as arguments"

img

  1. After the process 1 ~ 9, it should look like the following:

img

  1. CMD+S to save the quickaction and name the quick action.

  2. Quickactions can be archived on Services folders. You can rename/delete/edit your quickactions here.

img

Version

  • Mac OS Cattalina ver. 10.15.3
  • Macbook Pro 16 inch model

Reference

About

👩‍💻Open project folder with VSCode/Typora/ITerm2 with one touch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published