Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ddjfreedom/recent-downloads-alfred-v2
Recent Downloads Workflow for Alfred v2
https://github.com/ddjfreedom/recent-downloads-alfred-v2
Last synced: 3 months ago
JSON representation
Recent Downloads Workflow for Alfred v2
- Host: GitHub
- URL: https://github.com/ddjfreedom/recent-downloads-alfred-v2
- Owner: ddjfreedom
- Created: 2013-01-23T03:47:17.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-03-22T02:14:09.000Z (over 7 years ago)
- Last Synced: 2024-05-02T14:43:06.317Z (6 months ago)
- Language: Ruby
- Size: 114 KB
- Stars: 114
- Watchers: 9
- Forks: 12
- Open Issues: 9
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
- alfred-workflows - Recent Downloads - Browse through your Downloads directory or any other directory you specify. (Productivity)
README
# Recent Downloads Workflow
This is an [Alfred v2](http://www.alfredapp.com) workflow to access
the most recent downloads in the Downloads folder.The items are sorted in decreasing order based on the time they
are added to the folder. The item is filtered by testing whether
the query is a subsequence (need not be consecutive) of it.There are two operations on the selected item:
1. open with default application (default)
- if the item can be installed (an application, an dmg file, a zip
file containing those files, etc), the workflow will prompt the user
whether to install it. After the installation, if the item installed
is an application, the workflow will prompt the user whether to launch
it
2. reveal in Finder (holding "option" key)
3. delete (holding "ctrl" key)
4. move to trash (holding "cmd" key)The installation behavior can be controlled by `config.yaml` at
`~/Library/Application Support/Alfred 2/Workflow Data/recentdownloads.ddjfreedom/config.yaml`:| Name | Possible Values |
|:-----|:----------------|
| `install_action` | `ask`, `install`, `open` |
| `auto_start` | `ask`, `always`, `never`|
| `subfolders` | `:all`, `:none`, a list of entries |
| `max-entries`| `:all`, integer for the number of results |## Subfolders
Recent Downloads workflow can display items in some specified subfolders along with everything in `~/Downloads`. The value for `subfolders` in `config.yaml` can be `:all`, `:none`, or a list of entries. Each entry can be a path or a hash:### Examples
Suppose `~/Downloads` is as following
```no-highlight
+-~/Downloads
+-a/
| +-aa.pdf
| +-ab/
| +-pic.jpg
| +-e/
| +-f.img
+-b/
| +-ba/
| +-baa/
| | +-foo/
| | | +-bar.c
| | +-bar/
| | +-foo/
| | +-foo.c
| +-bab.xml
+-c/
+-imgs/
+-img.png
```
If `config.yaml` has the following value
```no-highlight
subfolders:
-
folder: "a"
exclude: false
depth: 2
-
folder: "b"
exclude: true
-
"c"
```
the result will be
```no-highlight
a, a/aa.pdf, a/ab, a/ab/pic.jpg, a/ab/e
b/ba
c, c/imgs
```
# Installation
## AlfPT
Recent Downloads is now on AlfPT:`alfpt install Recent Downloads`
## Manual
1. Download and unpack the .zip archive.
2. Double-click the "Recent Downloads.alfredworkflow" to install.# Acknowledgement
This workflow uses [alfred_feedback.rb](https://gist.github.com/4555836)
with some modifications to make it compatible with Ruby 1.8.7.
The script for installation is written by Okke Tijhuis ([@otijhuis](https://twitter.com/@otijhuis),
[otijhuis.tumblr.com](http://otijhuis.tumblr.com)), and [David](http://jdfwarrior.tumblr.com).