Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Commit

Permalink
When entering a feed, the first unread article is automatically selec…
Browse files Browse the repository at this point in the history
…ted.
  • Loading branch information
akrennmair committed Apr 24, 2009
1 parent 642ac5b commit a78090d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ Changes for newsbeuter:

2.1:
Added support for dc:creator tag for RSS 2.0 parser.
Fixed issue #141.
Fixed issue #141 (podbeuter ignored use-proxy configuration command).
When entering a feed, the first unread article is automatically selected (can be turned off with goto-first-unread no).

2.0 (2009-04-21):
Added more flexible dialog handling
Expand Down
1 change: 1 addition & 0 deletions doc/configcommands.dsv
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ download-timeout|<seconds>|30|The number of seconds newsbeuter shall wait when d
error-log|<path>|""|If set, then user errors (e.g. errors regarding defunct RSS feeds) will be logged to this file.|error-log "~/.newsbeuter/error.log"
feed-sort-order|<sortorder>|none|If set to "firsttag", the feeds in the feed list will be sorted by their first tag in the urls file.|feed-sort-order firsttag
feedlist-format|<format>|"%4i %n %11u %t"|This variable defines the format of entries in the feed list. See below for more information on format strings.|feedlist-format " %n %4i - %11u -%> %t"
goto-first-unread|[yes/no]|yes|If set to yes (the default), then the first unread article will be selected whenever a feed is entered.|goto-first-unread no
goto-next-feed|[yes/no]|yes|If set to yes, then the next-unread and prev-unread keys will search in other feeds for unread articles if all articles in the current feed are read. If set to no, then the next-unread and prev-unread keys will stop in the current feed.|goto-next-feed no
highlight|<target> <regex> <fgcolor> [<bgcolor> [<attribute> ...]]|n/a|With this command, you can highlight text parts in the feed list, the article list and the article view. For a detailed documentation, see the chapter on highlighting.|highlight all "newsbeuter" red
history-limit|<number>|100|Defines the maximum number of entries of commandline resp. search history to be saved. To disable history saving, set history-limit to 0.|history-limit 0
Expand Down
1 change: 1 addition & 0 deletions src/configcontainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ configcontainer::configcontainer()
config_data["pager"] = configdata("internal", configdata::PATH);
config_data["history-limit"] = configdata("100", configdata::INT);
config_data["prepopulate-query-feeds"] = configdata("false", configdata::BOOL);
config_data["goto-first-unread"] = configdata("true", configdata::BOOL);

/* title formats: */
config_data["feedlist-title-format"] = configdata(_("%N %V - Your feeds (%u unread, %t total)%?T? - tag `%T'&?"), configdata::STR);
Expand Down
3 changes: 3 additions & 0 deletions src/itemlist_formaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,9 @@ void itemlist_formaction::init() {
set_keymap_hints();
apply_filter = !(v->get_cfg()->get_configvalue_as_bool("show-read-articles"));
update_visible_items = true;
if (v->get_cfg()->get_configvalue_as_bool("goto-first-unread")) {
jump_to_next_unread_item(true);
}
f->run(-3); // FRUN - compute all widget dimensions
}

Expand Down

0 comments on commit a78090d

Please sign in to comment.