deanishe Posted March 9, 2014 Posted March 9, 2014 (edited) Subdirectory SearchThis Workflow has been replaced with this one. Please go grab that instead: it's much better.Fuzzy search across the subdirectories of the specified root directory.Note: This Workflow requires you to configure your own Script Filters in Alfred (by default, there is one configured for ~/Documents with keyword docs). See Configuration for instructions.DownloadGet the Workflow from GitHub. The source code is also available on GitHub.What it doesThis Workflow provides partial matching of path components, allowing you to drill down into your filesystem with a space-separated query. Each "word" of the query will be matched against the components of a directory or file's path, so a three-word query will only match at least three levels down from the specified root directory.For example, I have a Script Filter set up to search ~/Code with keyword code: python search.py ~/Code "{query}" Entering code workflow into Alfred produces a list of all subdirectories somewhere under ~/Code whose names contain workflow (the search is case-insensitive):Entering code alfred workflow produces a list of all subdirectories somewhere under ~/Code whose names contain workflow, which are also somewhere under a directory whose name contains alfred:ConfigurationThe Workflow is pre-configured to search ~/Documents using the keyword docs. To search other directories, you'll have to add your own Script Filter(s), adjusting the Keyword and root directory in the Script field.You can pass the -f or --files option to search.py to also search files.Note: Searching files as well as directories makes the Workflow a lot slower.ScreenshotsLicenceThis Workflow is released under the MIT Licence. Edited March 9, 2014 by deanishe paulw and Carlos-Sz 2
politicus Posted March 9, 2014 Posted March 9, 2014 Hi deanishe, thank your for this very useful workflow. I just tested it and it is working like a charm
hzlzh Posted March 10, 2014 Posted March 10, 2014 Nice one. You can share your work on the Workflow List site below.
deanishe Posted March 10, 2014 Author Posted March 10, 2014 (edited) Dude, did you even read the post? Edited March 10, 2014 by deanishe
smarg19 Posted March 11, 2014 Posted March 11, 2014 Dude, why do you get an invite, but I'm left out in the cold...
deanishe Posted March 11, 2014 Author Posted March 11, 2014 I'm sure he'd love you to submit ZotQuery. I can't be bothered updating my workflows at yet another place. With the forum, Packal and GitHub, that's already more than enough.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now