dots/.config/newsboat/config

80 lines
2.6 KiB
Plaintext

external-url-viewer "urlscan -dc -r 'linkhandler {}'"
browser linkhandler
auto-reload no
goto-next-feed no
show-read-feeds no
show-read-articles no
confirm-mark-feed-read no
max-items 30
reload-threads 40
text-width 120
history-limit 0
notify-always no
notify-program "notify-send"
# Formatting
notify-format "%d new articles loaded."
datetime-format "%b %d"
feedlist-title-format " Feed (%u feeds unreaded)"
articlelist-title-format " %T (%u articles unreaded)"
feedlist-format " %-6T %-50t (%U New)"
articlelist-format "%3f %-8D %t"
itemview-title-format " %T"
# Bindings
bind-key h quit
bind-key j down
bind-key k up
bind-key l open
bind-key j next articlelist
bind-key k prev articlelist
bind-key J next-feed articlelist
bind-key K prev-feed articlelist
bind-key g home
bind-key G end
bind-key d pagedown
bind-key u pageup
bind-key U show-urls
bind-key a toggle-article-read
bind-key T set-tag
bind-key t toggle-show-read-feeds
bind-key x delete-article
bind-key b bookmark
bind-key SPACE macro-prefix
# Bookmarks
bookmark-cmd "echo >> $XDG_CONFIG_HOME/newsboat/bookmarks"
bookmark-interactive no
bookmark-autopilot yes
# Macroses
macro y set browser "echo %u | xclip -r -sel c"; open-in-browser; set browser linkhandler
macro d set browser "dm-handler %u"; open-in-browser-and-mark-read; set browser linkhandler
macro c set browser "pipe-viewer --no-interactive --comments=%u | less"; open-in-browser; set browser linkhandler
macro i set browser "pipe-viewer --no-interactive --info=%u | less"; open-in-browser; set browser linkhandler
# Colors
color info black white reverse
color listnormal default default
color listnormal_unread blue default
color listfocus yellow default
color listfocus_unread yellow default
# Highlights
highlight all "---.*---" yellow
highlight feedlist ".*(0/0))" black
highlight article "(^Feed:*)" cyan default
highlight article "(^Title:*)" green default
highlight article "(^Author:*)" yellow default
highlight article "(^Date:*)" magenta default
highlight article "(^Link:)" blue default
highlight article "https?://[^ ]+" blue default
highlight article "\\[[0-9]+\\]" magenta default
# Filters
ignore-mode "display"
ignore-article "https://www.youtube.com/feeds/videos.xml?channel_id=UCWnNKC1wrH_NXAXc5bhbFnA" "title !# \"Опергеймер\""
ignore-article "https://www.youtube.com/feeds/videos.xml?channel_id=UCjulQNQQJmpYzI-BD1-s03w" "title !# \"Маргинал\""
ignore-article "http://feed.rutracker.cc/atom/f/1950.atom" "title !# \"Sub\""
ignore-article "https://www.youtube.com/feeds/videos.xml?channel_id=UC4rpWi42yPqTA0wnfx7MqOA" "title =~ \"на Паучительных\""