blob: 28e2cb3a8c766de1f5a59054e3f46a7c24f622dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
auto-reload yes
bind-key h quit
bind-key j down
bind-key k up
bind-key l open
bind-key g home
bind-key G end
bind-key ^F pagedown
bind-key ^B pageup
# open-in-browser-noninteractively may be useful
macro y set browser "echo %u | xsel -ib"; open-in-browser; set browser "$BROWSER %u &"
# https://newsboat.org/releases/2.24/docs/newsboat.html#_killfiles
# https://newsboat.org/releases/2.24/docs/newsboat.html#_filter_language
# not sure if all following arch linux rss feed ignore-article will work as expected
# maybe aur rss feed is broken; maybe arch linux feeds are updated very fast so I can't get the wanted news?
# not fully understand the rss feed
#ignore-article "https://aur.archlinux.org/rss/" "title !~\"youtube-dlp|yt-dlp\""
ignore-article "https://zh.wikinews.org/w/index.php?title=Special:NewsFeed&feed=atom&Category:published" "title =~ \"^[0-9]{4,}年[0-9]{1,2}月[0-9]{1,2}日(中文|香港)報紙頭條$\""
ignore-article "https://github.blog/feed/" "title !~ \"game\""
# https://wiki.archlinux.org/title/Newsboat#Subheadings
# my way of markdown like heading 1 === and heading 2 ---
highlight feedlist "---.*---" red default bold
#highlight feedlist "===.*===" red default bold
highlight feedlist ".*0/0.." default default invis
#color background white black
#color listnormal white black
color listfocus black blue bold
#color listnormal_unread white black bold
color listfocus_unread black blue bold
color title black blue bold
color info black blue bold
color hint-key black blue bold
color hint-keys-delimiter black blue
color hint-separator black blue bold
color hint-description black blue
#color article white black
# Need following two lines to write defunct RSS feeds log. There was a time
# when exit newsboat, it ask me to press enter, maybe due to I removed a url
# and there's remain cache, with following lines I won't be asked to press
# enter.
cleanup-on-quit yes
# I couldn't find a way to use $XDG_STATE_HOME env. var.
error-log ~/.local/state/newsboat/error.log
# vim: ft=sh
|