Giter Club home page Giter Club logo

alfred-reddit's Introduction

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 are a couple of options in the workflow's configuration sheet.

Set NSFW to 1 to include subreddits marked "over 18" in search results.

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.

alfred-reddit's People

Contributors

deanishe avatar drselump14 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

alfred-reddit's Issues

.

This Alfred workflow sounds really useful But I haven't been able to get it to work on Alfred 4, macOS Monterey on multiple occasions. See attached screenshot of its Alfred debugging info below (I'm a noob when its comes to web developer/coding tools so I don't know where to go from there)
Screen Shot 2022-07-05 at 11 33 49 pm

Autocomplete feature

Would it be possible to add an autocomplete feature to subreddits so we don't need to type the whole subreddit name to view the posts?

Connection Error

I'm so sorry. But when I use your workflow, it said the connection reset by peer. Do you know why it happened? Thank you so much.

Wrong Python version

Hey,

I've just tried to install this workflow, and I ran into some issues, which I managed to fix. It was all related to the Python version and the code trying to call Python from '/usr/bin/python' which might not be the correct usage for everyone. First, I had to install Python2 which is gone from the newer MacOs versions. Once that's done, get the location of Python2, and replace '/usr/bin/python' with that location in the two actions inside the workflow, and for every instance in 'reddit.py', 'workflow.py', and 'background.py'. That fixed it for me. Hope this helps!

Duplicate cached results

Searching for r/Python and r/python get me to the same subreddit which is the expected behaviour, however the results are cached twice. Any chance to cache only the properly capitalised argument? It would be nice not having duplicates while typing r/.

Not working in new VS Code

Won't find projects in new VS Code version 1.64.2.
I believe that's due to a change in the way VS Code reference its projects.

Search selected sub reddit

Hey,

Since you can already see the recent posts within a sub reddit, would it be possible to search the subreddit when I continue typing?

example

Add shortcut to open subreddit

Please add a way to open the subreddit itself rather than browsing it. It's nice to be able to search for the subreddits, and then just open it in a browser.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.