Jump to content

Recent Files workflow


jy-gh

Recommended Posts

I'm the author of a new workflow called Recent Files. Recent Files finds the most recent files (from a configurable location) and sends them to Alfred.

 

There is no forum thread for this workflow, but there is a GitHub page:

 

https://github.com/jy-gh/RecentFiles

 

Dependencies: Recent Files uses the fd utility (available from MacPorts, Brew, and as a direct download) and Python 3.

 

Here's a screenshot (an animated .gif file is in the README.md file on GitHub):

 

 

rf-screencap1.png.7bac475d46941b13adc8041d63170899.png

 

This workflow has become a daily part of my Alfred use. I don't have to think about where a file I just downloaded is, I can return quickly to what I was working on yesterday or the day before, and I don't have to type the filename to find it. Because it uses the fd command instead of the Unix/Linux find command, or the macOS mdfind command, it's very speedy.

 

Users of the workflow can customize where to search, how far back in time to search, whether to include files and directories in the results, and what files/directories to skip when searching.

 

Link to comment
Share on other sites

Welcome @jy-gh,

 

Thank you for the submission. The workflow can be improved by using File Pickers instead of Text Fields for the fd path and search folder. That even allows the use of ~ because Alfred itself will do the expansion. Here’s an updated workflow; I’d rather have submitted a pull request but the info.plist is not in the repository.


Please provide a screenshot with results showing, as that is significantly clearer, and as per the pinned post:

 

On 10/7/2022 at 2:52 AM, vitor said:

Of the full Alfred window, with shadow and no background: press ⌘⇧4 then hit the space bar; hover over the Alfred window and click.

 

Link to comment
Share on other sites

Vitor,

 

Thank you! That was a great suggestion, and it definitely improved the workflow. I have updated GitHub with a new workflow and changed the README to reflect the changes.

 

Here's a different screenshot, as requested:

 

rf-screencap.png.23a7f9ec17deaec72016833c8a7a725d.png

 

Thanks!

Link to comment
Share on other sites

Thank you for the change, but the screenshot still isn’t as requested:

 

17 hours ago, vitor said:

with shadow and no background: press ⌘⇧4 then hit the space bar; hover over the Alfred window and click.

 

If you’re having trouble following that, please let me know so I can try to explain another way.

Link to comment
Share on other sites

On 10/20/2022 at 1:41 AM, vitor said:

Welcome @jy-gh,

 

Thank you for the submission. The workflow can be improved by using File Pickers instead of Text Fields for the fd path and search folder. That even allows the use of ~ because Alfred itself will do the expansion. Here’s an updated workflow; I’d rather have submitted a pull request but the info.plist is not in the repository.


Please provide a screenshot with results showing, as that is significantly clearer, and as per the pinned post:

 

 

not available to download this workflow. Transfer.sh somehow doesn't open in my browsers ever

Link to comment
Share on other sites

15 hours ago, jy-gh said:

Thank you for your patience.

 

Thank you as well. Those aren’t retina but there’s nothing you can do about it if your screen doesn’t support it, so I’ll look into recreating those.


Another suggestion: instead of requiring a path to be set for fd, you can expand PATH inside the script to include the Macports installation path (Alfred 5 includes the Homebrew ones). That way it covers your case and most others out-of-the box. You can still have the File Picker for the tool, in case someone has yet another location (if left empty, ignore it), but that’s going to be rare.

 

6 hours ago, Shahrukh said:

not available to download this workflow.

 

That download was geared exclusively for @jy-gh, it’s not for general use.

Link to comment
Share on other sites

16 hours ago, jy-gh said:

I have implemented it

 

Looks nice! Quick note that while the .alfredworkflow was updated in the repo, there’s no new release yet. Please do ping me when you make it.

 

16 hours ago, jy-gh said:

As for the screenshots, how are these?

 

They’re great. Thank you.

Link to comment
Share on other sites

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...