sfeed_curses is a curses UI front-end for sfeed.
It shows the TAB-separated feed items in a graphical command-line UI. The interface has a look inspired by the mutt mail client. It has a sidebar panel for the feeds, a panel with a listing of the items and a small statusbar for the selected item/url. Some functions like searching and scrolling are integrated in the interface itself.
- Relatively few LOC, currently < 2000 lines of C.
- Few dependencies: a C compiler and a curses library (typically ncurses). It also requires a terminal (emulator) supporting UTF-8.
- Easy to customize by modifying the small source-code and shellscripts.
- Quite fast.
- Plumb support: open url or an enclosure directly with any program.
- Pipe support: pipe the selected Tab-Separated Value line to a program for scripting purposes. Like viewing the content in any way you like. An example script is included.
- Familiar keybinds: supports both vi-like, emacs-like and arrow keys for actions.
- Mouse support: xterm mouse-mode, if supported by the terminal emulator.
- Support two ways of managing read/unread items. By default sfeed_curses marks the feed items of the last day as new/bold. Alternatively a simple plain-text list with the read urls can be used.
Like the format programs included in sfeed you can run it by giving the feed files as arguments like this:
... or by reading directly from stdin:
sfeed_curses < ~/.sfeed/feeds/xkcd
It will show a sidebar if one or more files are specified as parameters. It will not show the sidebar by default when reading from stdin.
On pressing the 'o' or ENTER keybind it will open the link url of an item with the plumb program. On pressing the 'a', 'e' or '@' keybind it will open the enclosure url if there is one. The default plumb program is set to "xdg-open", but can be modified by setting the environment variable $SFEED_PLUMBER. The plumb program receives the url as a command-line argument.
The TAB-Separated-Value line of the current selected item in the feed file can be piped to a program by pressing the 'c', 'p' or '|' keybind. This allows much flexibility to make a content formatter or write other custom actions or views. This line is in the exact same format as described in the sfeed(5) man page. The pipe program can be changed by setting the environment variable $SFEED_PIPER.
The above screenshot shows the included example shellscript which uses the lynx text-browser to convert HTML to plain-text: content.example.sh. It pipes the formatted plain-text to the pager "less". Of course the script can be easily changed to use a different browser like w3m, links, dillo or webdump.
It's easy to modify the colorscheme by changing the macros in the source-code. On the left a TempleOS-like colorscheme on the right a newsboat-like colorscheme. The README file contains the macros for these schemes.
git clone git://git.codemadness.org/sfeed_curses
Releases are available at: https://codemadness.org/releases/sfeed_curses/.
Build and install
$ make # make install