vitor Posted June 12, 2017 Share Posted June 12, 2017 Usage Search the Hacker News front page via the hnf keyword. Press ↩ to open the story’s website or ⌥↩ to open the Hacker News comments thread. This behaviour can be reversed in the Workflow’s Configuration. Seach stories with the hns keyword. Previous shortcuts apply, plus ⌘↩ switches between ordering by date (more recent first) and by relevance (then points, then number of comments). Submit the frontmost browser tab with the hnsubmit keyword. ⤓ Install on the Alfred Gallery | Source Yuri, CodeAlchemist and nikivi 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, 2023 Author Share Posted February 25, 2023 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, 2023 Share Posted March 15, 2023 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, 2023 Author Share Posted March 17, 2023 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, 2023 Author Share Posted March 24, 2023 Updated to 2023.3. Include URL in filtering. Link to comment
vitor Posted April 29, 2023 Author Share Posted April 29, 2023 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, 2023 Share Posted May 8, 2023 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, 2023 Author Share Posted May 8, 2023 @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, 2023 Share Posted May 9, 2023 Awesome, thanks @vitor! The filter took effect after I forced the cache update 👍 Link to comment
sepulchra Posted May 12, 2023 Share Posted May 12, 2023 @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, 2023 Author Share Posted May 12, 2023 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, 2023 Share Posted May 15, 2023 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, 2023 Author Share Posted May 15, 2023 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
vitor Posted March 3 Author Share Posted March 3 Updated to 2024.1.Completely rewritten.Renamed Front Page search keyword to hnf.Show number of points and comments in subtitle.Added hns keyword to search stories.Added hnsubmit keyword to open the frontmost browser tab to submit.Uses Alfred 5.5 caching. 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