Skip to content
Filter and open your Sublime Text (2 and 3) project files from Alfred.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
icons
.autoenv.zsh
.autoenv_leave.zsh Add workflow configuration UI Feb 15, 2019
.gitignore Basic go version Jan 27, 2018
LICENCE.txt Basic go version Jan 27, 2018
README.html Rebuild with fixed help file Feb 23, 2019
README.md
TODO.taskpaper Add self-update and longer logging May 10, 2016
alfredenv.sh
cli.go Add workflow configuration UI Feb 15, 2019
config.go
demo.gif
filter.go
filter_test.go
go.mod
go.sum
icon.png Basic go version Jan 27, 2018
icons.afdesign
icons.go
info.plist Rebuild with fixed help file Feb 23, 2019
magefile.go
magefile_alfred.go
magefile_images.go
main.go
modd.conf
project.go Add workflow configuration UI Feb 15, 2019
project_test.go
scan.go
scan_test.go Add icons & start rescan Mar 31, 2018
sublime.toml
util.go
util_test.go

README.md

Sublime Text Projects Alfred Workflow

View, filter and open your Sublime Text 3 project files.

Download & Installation

Download the workflow from GitHub and install by double-clicking the Sublime-Text-Projects-X.X.X.alfredworkflow file.

Usage

  • .st [<query>] — List/filter your .sublime-project files
    • — Open result in Sublime Text
    • ⌘+↩ — Reveal file in Finder
  • .stconfig — Show the current settings
    • Workflow Is Up To Date / Workflow Update Available — Install update or check for update
    • Edit Config File — Open workflow's config file in Sublime Text
    • View Help File — Open README in your browser
    • Report Issue — Open GitHub issue tracker in your browser
    • Visit Forum Thread — Open workflow's thread on alfredforum.com

How it works

The workflow scans your system for .sublime-project files using locate, mdfind and (optionally) find. It then caches the list of projects for 10 minutes (by default).

As the locate database isn't enabled on most machines (and isn't updated frequently in any case), and mdfind ignores hidden directories, there is an additional, optional find-based scanner to "fill the gaps", which you must specifically configure (see below).

Configuration

Scan intervals are configured in the workflow's configuration sheet in Alfred Preferences:

Variable Usage
INTERVAL_FIND How long to cache find search results for
INTERVAL_LOCATE How long to cache locate search results for
INTERVAL_MDFIND How long to cache mdfind search results for

The values should be of the form 10m or 2h. Set to 0 to disable a particular scanner.

The workflow should work "out of the box", but if you have project files in directories that mdfind doesn't see (hidden directories, network shares), you may have to explicitly add some search paths to the sublime.toml configuration file in the workflow's data directory. The file is created on first run, and you can use .stconfig > Edit Config File to open it in Sublime Text.

These directories are searched with find.

You can also add glob patterns to the excludes list in the settings file to ignore certain results. Excludes apply to all scanners.

The options are documented in the settings file itself.

Licensing, thanks

All the code is released under the MIT Licence.

The workflow is based on the AwGo workflow library and docopt, both also released under the MIT Licence.

The icons are based on Font Awesome and Material Design Icons.

You can’t perform that action at this time.