Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-02-19 | sfeed_opml_export: improve comment | Hiltjo Posthuma | |
In theory feed names can contain newlines, TABS, control-characters or start with echo options like -n. This is not recommended and not checked. URLs cannot have these characters: they should be percent-encoded. echo is typically a shell built-in and fast, so this trade-off is done. | |||
2022-02-06 | bump version to 1.2 | Hiltjo Posthuma | |
2022-02-06 | fix a warning with tparm on some systems | Hiltjo Posthuma | |
Older POSIX standards also defined it as a char * parameter (not const char *) for tparm(). https://pubs.opengroup.org/onlinepubs/7908799/xcurses/term.h.html | |||
2022-02-06 | add compile-time option to improve output on dumb non-UTF8 terminals | Hiltjo Posthuma | |
This makes atleast feeds with simple ASCII work. | |||
2022-02-06 | sfeed_curses: write cmd in a more verbose way | Hiltjo Posthuma | |
This fixes a compile error tested with HaikuOS 32-bit (gcc2h, based on gcc 2.95). It also suppresses a false-positive warning of an unused forkexec function in cppcheck. | |||
2022-02-05 | sfeed.c: code-style consistency: static functions | Hiltjo Posthuma | |
2022-02-05 | sfeed: small optimization | Hiltjo Posthuma | |
For feeds with lots of content data: Small performance improvement (~2%) on systems that implement putchar as a macro. On some systems using a function call for putchar it can be easier to replace with putchar_unlocked. (On an older MIPS32 VM changing putchar to putchar_unlocked makes writing 5x faster). | |||
2022-02-05 | sfeed_curses.1: tiny rewording from previous commit | Hiltjo Posthuma | |
There is only one enclosure supported. | |||
2022-02-04 | improve some code comments | Hiltjo Posthuma | |
2022-02-04 | sfeed_curses.1: document @ flag | Anders Damsgaard | |
2022-02-01 | sfeed_curses.1: fix stdin -> tty | Hiltjo Posthuma | |
Because the tty (/dev/tty). is reopened when reading feed data from stdin. | |||
2022-02-01 | parsetime: no need to check `tp`. it must be set | Hiltjo Posthuma | |
2022-01-22 | add feature to go to the next bold row and previous bold row with J and K | Hiltjo Posthuma | |
This replaces the current J and K keybind, which was rarely useful. Thanks to IanJ for the suggestion and feedback! | |||
2022-01-19 | sfeed_curses: code-style: remove variable name in definition | Hiltjo Posthuma | |
2022-01-19 | sfeed_curses: fix a pedantic sign comparison | Hiltjo Posthuma | |
2022-01-19 | fix inconsistencies in comments | Hiltjo Posthuma | |
2022-01-19 | sfeed: extend the time range, use long long instead of time_t | Hiltjo Posthuma | |
This allows to parse the time as a number in the 64-bit range, even on 32-bit platforms. Note that the sfeed formatting tools can still truncate/wrap the value to time_t, which can be 32-bit. | |||
2022-01-19 | sfeed_curses.1: clarify an exception with SIGINT | Hiltjo Posthuma | |
SIGTERM is the best way to quit the program, because SIGINT can cancel only the line editor prompt when using it. | |||
2022-01-19 | sfeed_curses: consistency: mousereport: use off_t like the other functions | Hiltjo Posthuma | |
2022-01-19 | sfeed_curses: line editor: add more clear comments of signal handling | Hiltjo Posthuma | |
2022-01-19 | sfeed: parsetime: allow leap second like 23:59:60 | Hiltjo Posthuma | |
Specified in RFC2822 Section 3.3. Date and Time Specification "[...] the time-of-day MUST be in the range 00:00:00 through 23:59:60 (the number of seconds allowing for a leap second; see [STD12]) [...]" To test: <entry><updated>2016-12-31T23:59:60Z</updated></entry> | |||
2022-01-14 | util: strtotime: expand on comment about 2038-readiness | Hiltjo Posthuma | |
Also tested on MIPS32BE which has 32-bit time_t and which wraps the time value. | |||
2022-01-14 | util: parsetime(): fix comment, long long supports atleast 64-bit range | Hiltjo Posthuma | |
2022-01-14 | sfeed_curses: pedantic fix for UB with an empty URL file | Hiltjo Posthuma | |
When a new URL file is used with no URL entries then NULL is passed to qsort() and bsearch(). This is reported by clang UBsan as undefined behaviour (debatable), but no issue in practise with many implementations. Fix it anyway. To reproduce with clang UBsan: Compile with clang or gcc with CFLAGS and LDFLAGS -fsanitize=undefined touch /tmp/urls # new file which should be empty. SFEED_URL_FILE=/tmp/urls sfeed_curses 2>/tmp/log ^D q cat /tmp/log | |||
2022-01-06 | README: sfeed_download small changes | Hiltjo Posthuma | |
2022-01-06 | README: small typo and rewording for sfeed_download example | Hiltjo Posthuma | |
2022-01-06 | README: add a listing of the formats supported | Hiltjo Posthuma | |
2022-01-06 | README: add sfeed_download example, parallel downloader/extractor | Hiltjo Posthuma | |
2022-01-04 | sfeed_markread: set all locale variables and use LC_ALL | Hiltjo Posthuma | |
2022-01-03 | Makefile: add comment for feature test macro on FreeBSD | Hiltjo Posthuma | |
Reported by Christos Margiolis and plasmoduck, thanks | |||
2022-01-03 | Makefile: tiny typo: add space after SFEED_CURSES_CPPFLAGS | Hiltjo Posthuma | |
2021-12-24 | sfeed_content: allow to set HTML converter with env variable | Hiltjo Posthuma | |
This makes it a bit more easy to reuse the script and makes the run-time dependency on lynx more optional. For example with w3m: SFEED_HTMLCONV="w3m -I UTF-8 -O UTF-8 -T text/html -dump" \ sfeed_curses ~/.sfeed/feeds/* (of course this can be set in a wrapper script or shell profile too) | |||
2021-12-23 | sfeed_markread: small white-space fix | Hiltjo Posthuma | |
2021-12-23 | README: improve newsboat export script | Hiltjo Posthuma | |
Performance improvements, use feed URL if the feed title is not (yet) set. | |||
2021-12-23 | README: add GNU/Hurd | Hiltjo Posthuma | |
tested for fun | |||
2021-12-23 | sfeed_atom: add category field(s) | Hiltjo Posthuma | |
2021-12-23 | LICENSE: bump year | Hiltjo Posthuma | |
2021-11-27 | bump version to 1.1 | Hiltjo Posthuma | |
2021-11-26 | README: reword the part mentioning SFEED_THEME | Hiltjo Posthuma | |
2021-11-26 | README: small rewording | Hiltjo Posthuma | |
2021-11-26 | sfeed.1: add sfeed_curses example | Hiltjo Posthuma | |
2021-11-26 | Makefile: merge contents of sfeed_curses Makefile | Hiltjo Posthuma | |
sfeed_curses can be optionally compiled. Separate flags can be passed for example for the curses library. Also pass CFLAGS and LDFLAGS as a suffix. See commit 0a9c4460c15e90113607ff1928858dfa940df725 of sfeed_curses This is useful when passing -Wl,--as-needed or hardening flags. | |||
2021-11-26 | sfeed_curses: reuse some functions in util | Hiltjo Posthuma | |
2021-11-26 | README: merge the contents of the README of sfeed_curses | Hiltjo Posthuma | |
2021-11-26 | import sfeed_curses | Hiltjo Posthuma | |
Import sfeed_curses into sfeed. The files are based of the commit 8e151ce48b503ad0ff0e24cb1be3bc93d6fbd895 | |||
2021-11-24 | sfeed_mbox: escape the link and enclosure text when using HTML content | Hiltjo Posthuma | |
commit ed8079dc3e8ce513c788a5ab11444aac221cbc5b added an option $SFEED_MBOX_CONTENT with a content-type text/html to include the content. However in this context the link and enclosure were not fully escaped. | |||
2021-11-23 | sfeed.1: improve a comment for string_append | Hiltjo Posthuma | |
2021-11-23 | sfeed.1: add a basic usage example for using the sfeed package | Hiltjo Posthuma | |
"man sfeed" now hopefully more quickly gives a better overview how the tools work together. Reference the README for extended examples and use-cases. | |||
2021-11-23 | sfeed.{1,5}: small rewording improvement | Hiltjo Posthuma | |
2021-11-23 | sfeed.{1,5}: the first author is parsed | Hiltjo Posthuma | |
The Atom RFC standard supports multiple authors, but this is usually one. The first author is parsed. |