vitor Posted June 12, 2017 Share Posted June 12, 2017 (edited) Usage Search Hacker News front page links via the hn keyword. Press ↩ to open the linked website or ⌥↩ to open the Hacker News comments thread. This behaviour can be reversed in the Workflow’s Configuration. News are fetched if it’s been over an hour since the last run. An immediate cache rebuild can be forced with ⌘⌥⌃↩. ⤓ Install on the Alfred Gallery | Source Edited April 29 by vitor nikivi, CodeAlchemist and Yuri 3 Link to comment
nikivi Posted June 12, 2017 Share Posted June 12, 2017 This is really awesome. Thank you @vitor. I think for hacker news the workflow lacks up vote count so its best to use web version but for pinboard, this is really awesome. ? Link to comment
vitor Posted June 12, 2017 Author Share Posted June 12, 2017 11 minutes ago, nikivi said: I think for hacker news the workflow lacks up vote count The workflow grabs their RSS feed, which does not provide them. Either way the up vote count would be skewed, since results are cached for four hours. To get accurate up vote counts I’d need to regrab the page with every request, which would make the workflow slower. Link to comment
nikivi Posted June 13, 2017 Share Posted June 13, 2017 (edited) I understand. I was thinking, perhaps Github Trending also has an RSS feed. Would be awesome to add. Will break the cool name you have there though. Edited June 13, 2017 by nikivi Link to comment
vitor Posted June 13, 2017 Author Share Posted June 13, 2017 Your repo is trending today! I don’t care much about breaking the name, as the description is general enough. I don’t think I’ll add Github Trending, though, as those aren’t really news. That seems more appropriate for a Github-centric Workflow. That said, I have thought about adding Prodcut Hunt, , and that kind of blurs the line. But Product Hunt’s RSS (Atom feed) has short descriptions next to the names of the products, while Github trends does not (the one I found; I haven’t seen an official one, even). That makes Product Hunt well suited to be included in a Script Filter, ad Github Trends not. nikivi 1 Link to comment
vitor Posted February 26, 2019 Author Share Posted February 26, 2019 Update. Added an hn_main Workflow Environment Variable. If you set it to comments, Hacker News’ main action will open the comments thread, and the secondary (⌥) will open the linked website. Also made some general code updates and fixed a bug where only the Pinboard list was being updated on force. To update, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater. Link to comment
dood Posted June 27, 2019 Share Posted June 27, 2019 Olá Vitor! I'm getting a 404 on the Github link – would you mind reuploading the workflow? Obrigado! Link to comment
vitor Posted June 27, 2019 Author Share Posted June 27, 2019 1 hour ago, dood said: I'm getting a 404 on the Github link Weird, I wonder what happened. Seems to be the only one affected, but I’ll check. 1 hour ago, dood said: would you mind reuploading the workflow? Feito. You may need to reload the page. Link to comment
dood Posted June 28, 2019 Share Posted June 28, 2019 It's working now, thanks! vitor 1 Link to comment
vitor Posted December 19, 2022 Author Share Posted December 19, 2022 Updated to 2022.1. Workflow is now distributed via the Alfred Gallery. Download the new version from there or update directly from Alfred.New repository.New icon.New About.Add configurable keyword.Defaulting to comment or article is now a checkbox.Remove Pinboard Popular, since it has been down.Remove OneUpdater in favour of Gallery updating. Link to comment
vitor Posted February 25 Author Share Posted February 25 Updated to 2023.1.Removed keyword to force rebuild cache. Now available with fn↩.Unescape HTML entities in titles. Link to comment
dood Posted March 15 Share Posted March 15 Olá @vitor, just out of curiosity – would it be possible to adapt this workflow to work with other RSS feeds? Say Kottke, for example Link to comment
vitor Posted March 17 Author Share Posted March 17 Possible, yes, but it’d take some editing. The workflow doesn’t just read the RSS but also takes specific information from it, namely the link and the comments URL. Did some quick trials with the Kotke RSS specifically, but the feed itself was giving me errors. Link to comment
vitor Posted March 24 Author Share Posted March 24 Updated to 2023.3. Include URL in filtering. Link to comment
vitor Posted April 29 Author Share Posted April 29 Updated to 2023.4.Change cache rebuild shortcut to ⌘⌥⌃↩.Update cache rebuild message.Use File Picker in Trash Automation Task to simplify connections. Link to comment
dood Posted May 8 Share Posted May 8 Hi @vitor, would it be possible to allow users to set terms they want to filter out? For example, adding "Twitter" to the workflow configuration would mean that I wouldn't see any HN posts with Twitter in the title (and maybe URL, too?) Link to comment
vitor Posted May 8 Author Share Posted May 8 @dood That’s quite reasonable, some subjects can be overrepresented at times. Added the option for that in the latest version (you can update now) in the Workflow’s Configuration. Link to comment
dood Posted May 9 Share Posted May 9 Awesome, thanks @vitor! The filter took effect after I forced the cache update 👍 Link to comment
sepulchra Posted May 12 Share Posted May 12 @vitor the last version of the workflow would keep the feed open in alfred while I hit return ... it was nice as I could open multiple articles in one go. Is that possible to configure? Link to comment
vitor Posted May 12 Author Share Posted May 12 Nothing has changed in that regard, it still works like that. What may have happened is that you didn’t have your web browser as the frontmost app when opening the first link, and the stolen focus closed Alfred. Open Alfred again with the browser as the active app and you should be able to continue pressing ↩ without Alfred hiding. sepulchra 1 Link to comment
dood Posted May 15 Share Posted May 15 One last request @vitor – would it be possible to set a points or comments filter, as with HN RSS? Link to comment
vitor Posted May 15 Author Share Posted May 15 No, because this uses the official Hacker News front page RSS which doesn’t provide that information. I use point filtering myself in other situations, but that’s outside the scope of this workflow. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now