Jump to content
klale

Run a specific File Action for a given file type when pressing enter

Recommended Posts

For me it would be great to run a special File Action for "*.sublime-project" files just by pressing enter, without explicitly selecting a File Action using right-arrow or a workflow prefix.

 

Description:

1. find a ".sublime-project" file using the normal fuzzy File Search

2. hit enter

3. run my custom sublime File Action / workflow

 

Alfred can already move your custom File Actions to the top with "Sort action by last used per file type". An extra checkbox for implicitly executing the top-most action just by pressing enter is maybe enough to enable this feature. This is helpful when using Alfred as a cmd+tab complement to switch between open files and applications. Example: Switch to chrome: "chro...[enter]", then switch to a sublime project: "myproj...[enter]". (The latter would run my custom workflow.)

 

Kind regards, Carl

 

PS I have found a workaround by changing my "*.sublime-project" files in OSX to always open with a home-made application running some additional scripts when these files are opened.

Share this post


Link to post
Share on other sites

PS I have found a workaround by changing my "*.sublime-project" files in OSX to always open with a home-made application running some additional scripts when these files are opened.

 

This is what I do with Sublime Text anyway because you really always want to open .sublime-project files with the subl command-line tool, not the Mac application, because subl correctly restores the workspace, but Sublime Text.app doesn't.

 

You might be interested in my Sublime Text Projects workflow. It can also look in hidden directories and exclude results (unlike Alfred), and if you have scripts for .sublime-project files, you could plug them in very easily.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...