Jump to content

Can I use an enclosing folder in file filter?


Recommended Posts

I wonder if I can use an enclosing folder to reduce the number of matches when a workflow uses a file filter. Say, some workflow gets the folder name using a file filter and then open it with some specific application. If I want to open a folder with common name, say "src", it is not possible to specify what I want as almost every folder contains such a subfolder. However, it can be easily narrowed for example if I want to open "~/Downloads/src", in which case I may want to simply type "Downloads/src" to specify it. Is it possible?

Link to comment

Look at the "Dynamic File Search" example workflow built into Alfred Preferences. That's the native way to narrow your search.


The other approach is to write a workflow that understands it’s looking for directories with a subdirectory named src.


As an example, here's my workflow for working with git repos. It finds directories that contain a .git subdirectory.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...