skeeto / elfeed

An Emacs web feeds client
The Unlicense
1.49k stars 116 forks source link

[Feature Request] Auto browse in emacs with w3m or eww #170

Open timoc opened 8 years ago

timoc commented 8 years ago

I have been mining github .emacs for extra features using the query "elfeed-search-mode-map" NOT "evil"

here is one example that uses www https://github.com/iqbalansari/dotEmacs/blob/1bd8787b1633be2342d40a41db4f61a95f977cb5/config/rss.org or https://github.com/csantosb/emacs_simple_config/blob/0bd267184fba5d8a8b4835fcc4996af63cee7255/csb-www.el

timoc commented 8 years ago

Updated to label as feature request.

I have been using ttrss since google fled the scene, with ttrss, especially with comic and podcast feeds, had the ability to view the comics, and download the podcasts in the summary/reading pane without having to go to the website. I would like to be able to do this in elfeed. Further, i started getting used to shifting TLDR to pocket as an intermediary that formats the article in an easy to read way, If i could go directly into the text of an article in an elfeed window, that would be great. Even better with the ability to 'store/archive' that article locally.

skeeto commented 8 years ago

Elfeed already does this with the "show" mode, displaying entry content inside Emacs using the built-in shr HTML renderer. This is the default action when you hit "enter" in the search buffer. It displays the potentially-truncated, but locally-archived, content included with the entry itself, but not the content behind the associated link. Note: Images are virtually never actually embeded in the content itself, but will be fetched on demand as part of displaying the content, i.e. they won't be archived automatically.

If you want to visit the link itself in Emacs, just set your browse-url-browser-function appropriately. Elfeed doesn't re-invent the wheel for this one. If you want to archive that content, that's between you and your browser.

timoc commented 8 years ago

I looked in to how ttrss did this, and it had a pre-fetch plugin mechanism for images, and certain site types. This included 'de-referencing' feedburner and similar links. I see you have described a feature like this under the term "Content Tweaking" and "Entry Tweaking" http://nullprogram.com/blog/2013/11/26/ So I will update this feature request, to be more specific for others. looking for this.

Is is possible to trigger the tweaking when assigning removing a tag? For example if i wanted to make an 'archived' tag that would trigger an action?

skeeto commented 8 years ago

I could add a hook to elfeed-tag and elfeed-untag, but I'm not convinced that's the right way to do it. There are many such hooks that could exist. Unlike the two hooks that already exist, which are run during updates, you have complete control over elfeed-tag/elfeed-untag being called. You could make your own "archive" command which adds the tag and does some extra thing.

Now, if you're writing an extension that promises special behavior for the archive tag and users expect to interact with the extension via elfeed-tag, then that's a different story. You're at the whims of some other action and, without a hook, would have to rely on advice.

timoc commented 8 years ago

Thanks. I am still thinking about how to do this. I recently came across how org-mode handles rss (http://orgmode.org/manual/RSS-Feeds.html) and am experimenting with it too.