sfeed_curses

[fork] sfeed (atom feed) reader
Log | Files | Refs | README | LICENSE

commit 5a105ef89697d27576905a57694e44ee04338797
parent 4bfa24744f428077ca1fef9bffdc070c15799fbb
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun,  2 Aug 2020 13:14:54 +0200

sfeed_content: make the content example script the default and install it

This makes sure it's more functional in the default configuration.
Add lynx as an _optional_ dependency.

Diffstat:
MMakefile | 5++---
MREADME | 3++-
Rcontent.example.sh -> sfeed_content | 0
Msfeed_curses.1 | 4++--
Msfeed_curses.c | 2+-
5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile @@ -17,7 +17,7 @@ SFEED_CPPFLAGS = -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE #SFEED_LDFLAGS = ${LDFLAGS} -lncurses BIN = sfeed_curses -SCRIPTS = sfeed_markread +SCRIPTS = sfeed_content sfeed_markread SRC = ${BIN:=.c} @@ -25,8 +25,7 @@ MAN1 = ${BIN:=.1}\ ${SCRIPTS:=.1} DOC = \ LICENSE\ - README\ - content.example.sh + README all: ${BIN} diff --git a/README b/README @@ -60,7 +60,8 @@ Run-time dependencies - A (POSIX) shell. - A terminal (emulator) supporting UTF-8 and the used capabilities. - xclip for yanking the url or enclosure: can be changed easily. -- awk, used by the sfeed_markread script (optional). +- awk, used by the sfeed_content and sfeed_markread script (optional). +- lynx, used by the sfeed_content script (optional). OS tested diff --git a/content.example.sh b/sfeed_content diff --git a/sfeed_curses.1 b/sfeed_curses.1 @@ -1,4 +1,4 @@ -.Dd July 16, 2020 +.Dd August 2, 2020 .Dt SFEED_CURSES 1 .Os .Sh NAME @@ -145,7 +145,7 @@ Resize the pane dimensions relative to the terminal size. .Bl -tag -width Ds .It Ev SFEED_PIPER A program where the TAB-Separated Value line is piped to. -By default this is "less". +By default this is "sfeed_content". .It Ev SFEED_PLUMBER A program that received the url or enclosure url as a parameter. By default this is "xdg-open". diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -44,7 +44,7 @@ #define THEME_INPUT_NORMAL() do { } while(0) static char *plumber = "xdg-open"; /* environment variable: $SFEED_PLUMBER */ -static char *piper = "less"; /* environment variable: $SFEED_PIPER */ +static char *piper = "sfeed_content"; /* environment variable: $SFEED_PIPER */ enum { ATTR_RESET = 0, ATTR_BOLD_ON = 1, ATTR_FAINT_ON = 2, ATTR_REVERSE_ON = 7