- Open Automator
- Create a new Service
- Set “Service receives selected” to
files or folders
inany application
- Add a
Run Shell Script
action - Set the script action to
/usr/local/bin/atom -n "$@"
- Set “Pass input” to
as arguments
- Save as
Open in Atom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# For this, I wanted the nav to show the top-level node and second-level nodes #} | |
{# when on level 1, and then show the second-level and its children when on #} | |
{# level 2 or level 3 (so we get good parent, child, and sibling navigation. #} | |
{# Requires string 'sectionName' to be passed with Structure section name #} | |
{% if entry.showLeftNavigation %} | |
<nav class="interior-page__nav"> |