Python
Switch branches/tags
Clone or download
deanishe Merge pull request #7 from nikitavoloboev/master
Add ability to make posts to subreddits
Latest commit a417be7 Jun 22, 2018

README.md

Reddit for Alfred

Find subreddits and browse hot posts on Reddit.

Download

Get Reddit for Alfred from GitHub.

Note: Version 1.4 (and above) is not compatible with Alfred 2. Please download v1.3 if you're using Alfred 2.

Usage

  • r/ — Show list of popular subreddits
    • , or ⌘+NUM — Show 50 hottest posts in selected subreddit
    • ⌘+↩ — Open subreddit in browser
    • or ⌘+Y — Show Quick Look preview of subreddit
    • ⌥+↩ - Make post in the subreddit
  • r/<query> — Search for subreddits matching <query>
    • — Show 50 hottest posts in selected subreddit (same as appending /)
    • or ⌘+NUM — Open subreddit in browser
    • or ⌘+Y — Show Quick Look preview of subreddit
    • ⌥+↩ - Make post in the subreddit
  • r/<subreddit>/[<query>] — Show 50 hottest posts on subreddit <subreddit>, filtered by <query> if present
    • or ⌘+NUM — Open article in default browser
    • ⌘+↩ — Open Reddit comments in default browser
    • ⌥+↩ — Open article and Reddit comments in default browser
    • ⌘+L — Show full post title in Alfred's Large Type window
    • or ⌘+Y — Show Quick Look preview of comments page (or post)
  • r/u/<username>/m/<multi>/[<query>] — Show 50 hottest posts on user multireddit.

Note: OS X's "delete word" shortcut (⌥+⌫) is very handy for backing out of a subreddit.

Description

A basic workflow to browse subreddits.

The subreddit search, r/<query>, uses Reddit's API to search for subreddits that match <query>. 25 results are retrieved by default.

The subreddit search can be a bit odd, which is due to the legendary crapness of Reddit's search function.

Search within a subreddit, r/subreddit/<query>, only filters the list of hot results. 50 results are retrieved by default.

Configuration

There is one option, QUICKLOOK_POST, in the workflow's configuration sheet (in Alfred Preferences). Set QUICKLOOK_POST to 1 for the Quick Look preview to show the article instead of the Reddit comment page.

Licensing, thanks etc.

Alfred-Reddit is released under the MIT Licence.

I found the logo in a Font Awesome issue on GitHub.

It's heavily based on Alfred-Workflow, also MIT-licensed.