/AlfredWorkflow-Recent-Documents

Quickly open recent documents and apps / 快捷打开最近访问的文档或应用

Primary LanguagePythonMIT LicenseMIT

Recent Documents / Apps

Quickly access recent documents and apps.

macOS 10.11+

中文说明DownloadHow To UseConfiguration

How to Use

You can press Enter to open the file in result, or press ⌘CMD-Enter to reveal it in Finder.

Tap rr to list files opened recently by the foremost app.

For example:

  • Recent folders will be listed when Finder is foremost.
  • Recent rtf, text files will be listed when TextEdit app is foremost.
  • Recent *.sketch files will be listed when Sketch app is foremost.
  • Recent *.xcodeproj project files will be listed when Xcode app is foremost.

The subtitle of each result consists of ⏱modified time and 📡path of the file.

rr

Tap rf to list recent folders.

Opening recent folders is very common in use. Tapping rf is a more efficient way, even though you can activate Finder and then tap rr.

rf

Tap rd to list recent files.

These files were recently opened by user, not like rr which is just for the foremost app.

rd

Tap ra to list apps opened recently.

ra

Configuration

Exclude files and folders from the results.

You can add private folder paths separated by colon : to the workflow environment variable ExcludedFolders. The results will not show private folders and any files inside them. The environment variable ExcludedFiles is used to block files and folders themselves.

For example: ~/privateFolder1/:/Users/G/privateFolder2/

Optional Setup

  1. Adjust keywords rr、rf、rd、ra as you like.
  2. Open System Preferences - General, change the number of Recent items to 15 or more.

Donation

Feel free to donate by Wechat if this workflow is helpful.

Wechat Reward Code

Dependencies: