Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jeonghopark/02c9e301411a3a7f9f61cbbdba5f4cdc to your computer and use it in GitHub Desktop.
Save jeonghopark/02c9e301411a3a7f9f61cbbdba5f4cdc to your computer and use it in GitHub Desktop.

Revisions

  1. jeonghopark revised this gist Dec 30, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sublime-text-macos-context-menu.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Open in Sublime Text

    - Open Automator
    - Create a new Service
    - Create a new Qucik Action
    - Set “Service receives selected” to `files or folders` in `any application`
    - Add a `Run Shell Script` action
    - Set the script action to `/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n "$@"`
  2. @idleberg idleberg revised this gist Jan 12, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions sublime-text-macos-context-menu.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    - Create a new Service
    - Set “Service receives selected” to `files or folders` in `any application`
    - Add a `Run Shell Script` action
    - Set the script action to `/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n $@`
    - Set the script action to `/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n "$@"`
    - Set “Pass input” to `as arguments`
    - Save as `Open in Sublime Text`

    @@ -16,7 +16,7 @@ Let's repeat the steps above for a second entry, this time to add files or folde
    - Create a new Service
    - Add a `Run Shell Script` action
    - Set “Service receives selected” to `files or folders` in `any application`
    - Set the script action to `/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -a $@`
    - Set the script action to `/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -a "$@"`
    - Set “Pass input” to `as arguments`
    - Save as `Add to Sublime Text`

  3. @idleberg idleberg revised this gist Oct 5, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion sublime-text-macos-context-menu.md
    Original file line number Diff line number Diff line change
    @@ -39,4 +39,6 @@ You might want to rename or edit the items we just created
    - Click on “Finder” in the Apple menu, select “Services” then “Services Preferences”
    - In the right pane, scroll to “Files and Folders” and scroll to the item you want to edit
    - Right click the item and select “Open in Automator”
    - Edit and save
    - Edit and save

    Alternatively, you can edit the workflow (e.g. `~/Library/Services/Open in Sublime Text.workflow`) in your preferred text editor
  4. @idleberg idleberg revised this gist Oct 5, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions sublime-text-macos-context-menu.md
    Original file line number Diff line number Diff line change
    @@ -39,3 +39,4 @@ You might want to rename or edit the items we just created
    - Click on “Finder” in the Apple menu, select “Services” then “Services Preferences”
    - In the right pane, scroll to “Files and Folders” and scroll to the item you want to edit
    - Right click the item and select “Open in Automator”
    - Edit and save
  5. @idleberg idleberg revised this gist Oct 5, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions sublime-text-macos-context-menu.md
    Original file line number Diff line number Diff line change
    @@ -33,9 +33,9 @@ You can assign a global shortcut to run the services we just created

    # Edit Context Menu items

    If you want to rename or edit the services, follow these steps
    You might want to rename or edit the items we just created

    - Activate Finder
    - Click on “Finder” in the Apple menu, select “Services” then “Services Preferences”
    - In the right pane, scroll to “Files and Folders” and select the item you want to edit
    - Right click and select “Open in Automator”
    - In the right pane, scroll to “Files and Folders” and scroll to the item you want to edit
    - Right click the item and select “Open in Automator”
  6. @idleberg idleberg revised this gist Oct 5, 2016. 1 changed file with 13 additions and 2 deletions.
    15 changes: 13 additions & 2 deletions sublime-text-macos-context-menu.md
    Original file line number Diff line number Diff line change
    @@ -22,9 +22,20 @@ Let's repeat the steps above for a second entry, this time to add files or folde

    # Keyboard Shortcuts

    You can assign a global shortcut to run the services we just created

    - Open “System Preferences”
    - Select “Keyboard” then the “Shortcuts” tab
    - In the left pane, click on “Service
    - In the left pane, click on “Services
    - In the right pane, scroll to “Files and Folders”
    - Select “Open in Sublime Text” (or “Add to Sublime Text”) and click “add shortcut”
    - Select a shortcut
    - Select a shortcut

    # Edit Context Menu items

    If you want to rename or edit the services, follow these steps

    - Activate Finder
    - Click on “Finder” in the Apple menu, select “Services” then “Services Preferences”
    - In the right pane, scroll to “Files and Folders” and select the item you want to edit
    - Right click and select “Open in Automator”
  7. @idleberg idleberg revised this gist Oct 5, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions sublime-text-macos-context-menu.md
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,8 @@

    # Add to Sublime Text

    Let's repeat the steps above for a second entry, this time to add files or folders to an existing Sublime Text window

    - Open Automator
    - Create a new Service
    - Add a `Run Shell Script` action
  8. @idleberg idleberg revised this gist Oct 5, 2016. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion sublime-text-macos-context-menu.md
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,13 @@
    - Set “Service receives selected” to `files or folders` in `any application`
    - Set the script action to `/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -a $@`
    - Set “Pass input” to `as arguments`
    - Save as `Add to Sublime Text`
    - Save as `Add to Sublime Text`

    # Keyboard Shortcuts

    - Open “System Preferences”
    - Select “Keyboard” then the “Shortcuts” tab
    - In the left pane, click on “Service”
    - In the right pane, scroll to “Files and Folders”
    - Select “Open in Sublime Text” (or “Add to Sublime Text”) and click “add shortcut”
    - Select a shortcut
  9. @idleberg idleberg revised this gist Oct 5, 2016. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions sublime-text-macos-context-menu.md
    Original file line number Diff line number Diff line change
    @@ -2,18 +2,18 @@

    - Open Automator
    - Create a new Service
    - Set “Service receives selected” to `files or folders` in `any application`
    - Add a `Run Shell Script` action
    - Set input to Service receives selected `files or folders` in `any application`
    - Set the script action to `/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n $@`
    - Set Pass input to `as arguments`
    - Set Pass input to `as arguments`
    - Save as `Open in Sublime Text`

    # Add to Sublime Text

    - Open Automator
    - Create a new Service
    - Add a `Run Shell Script` action
    - Set input to Service receives selected `files or folders` in `any application`
    - Set Service receives selected” to `files or folders` in `any application`
    - Set the script action to `/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -a $@`
    - Set Pass input to `as arguments`
    - Set Pass input to `as arguments`
    - Save as `Add to Sublime Text`
  10. @idleberg idleberg renamed this gist Oct 5, 2016. 1 changed file with 0 additions and 0 deletions.
  11. @idleberg idleberg revised this gist Oct 5, 2016. 1 changed file with 12 additions and 3 deletions.
    15 changes: 12 additions & 3 deletions sublime-text-osx-context-menu.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,19 @@
    Add Sublime Text to OS X Context Menu
    =====================================
    # Open in Sublime Text

    - Open Automator
    - Create a new Service
    - Add a `Run Shell Script` action
    - Set input to Service receives selected `files or folders` in `any application`
    - Set the script action to `/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n $@`
    - Set Pass input to `as arguments`
    - Save as `Open in Sublime Text`
    - Save as `Open in Sublime Text`

    # Add to Sublime Text

    - Open Automator
    - Create a new Service
    - Add a `Run Shell Script` action
    - Set input to Service receives selected `files or folders` in `any application`
    - Set the script action to `/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -a $@`
    - Set Pass input to `as arguments`
    - Save as `Add to Sublime Text`
  12. @vincentmac vincentmac created this gist Sep 25, 2013.
    10 changes: 10 additions & 0 deletions sublime-text-osx-context-menu.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    Add Sublime Text to OS X Context Menu
    =====================================

    - Open Automator
    - Create a new Service
    - Add a `Run Shell Script` action
    - Set input to Service receives selected `files or folders` in `any application`
    - Set the script action to `/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n $@`
    - Set Pass input to `as arguments`
    - Save as `Open in Sublime Text`