Behavior change for Automatically mark articles as read

Request new functionality here
ziffusion
Bear Rating Trainee
Bear Rating Trainee
Posts: 13
Joined: 21 Mar 2013, 03:05

Re: Behavior change for Automatically mark articles as read

Postby ziffusion » 04 Apr 2013, 16:36

well ... very nicely done piece of code

you do get very combative about any suggestions or discussions ... but so be it ... i've modified my version of tt-rss the way I like it

keep up the good work

User avatar
ebell451
Bear Rating Trainee
Bear Rating Trainee
Posts: 44
Joined: 15 Mar 2013, 15:06
Contact:

Re: Behavior change for Automatically mark articles as read

Postby ebell451 » 04 Apr 2013, 21:16

You have the option of right-clicking on that article, that you clicked to read, and choosing the Mark above/below as read.

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: Behavior change for Automatically mark articles as read

Postby sleeper_service » 04 Apr 2013, 21:35

fox wrote:I stole the entirety of it from Twitter. Little known fact.


you gnomes is trixie little devils, isn't you?

koalabear7410
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 10 Apr 2013, 05:09

Re: Behavior change for Automatically mark articles as read

Postby koalabear7410 » 10 Apr 2013, 05:29

I absolutely cannot stand when I'm using the next-post or prev-post hotkey, and tt-rss marks the post that is becoming active as read. I'm just making it active, it has not yet been read. I likewise cannot stand when tt-rss marks the post I am leaving as read. Maybe I skipped past it and want to come back later? What I want is for the damn thing to leave everything either marked as unread or as read until I expressly issue some command telling it otherwise.

I've been a loyal user/administrator of tt-rss for all of thirty fucking minutes. I want it changed right now. Dammit. So, I did it myself. I was excited about maybe becoming a contributor to the project at some point, and I hope this thread is not fully representative of the community.

tl;dr comment out line 1431 or so of viewfeed.js, in the cdmExpandArticle() function, where it calls toggleUnread(), to get (part of?) OP's desired behavior. Which, judging from his last post, he has already done.

Now I have to pull my mindset out of your mom.

ibreakcellphones
Bear Rating Trainee
Bear Rating Trainee
Posts: 31
Joined: 28 Mar 2013, 09:49

Re: Behavior change for Automatically mark articles as read

Postby ibreakcellphones » 10 Apr 2013, 14:21

Tiny Tiny RSS Support Fee Schedule:

Forgive me, fox. I have an enu qwerty keyboard. And I'm pulling numbers out of the air.

Answers: Free
Correct answers: P10
Snarky answers: The spark of self-satisfaction in our coal-black hearts
Bug fixes: 1/4 pizza
Interesting bug fixes: By the Chinese meal delivered
Pointing, laughing, and denigration: Just part of our complementary services we offer

Thobbe
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 01 Jun 2013, 10:03

Re: Behavior change for Automatically mark articles as read

Postby Thobbe » 01 Jun 2013, 10:25

mstroud wrote:Fox & Co. have a severe GReader allergy. :(

Luckily, TT-RSS is open source, so we can fix what we don't like. I did so here for a similar UX preference that got shot down:

https://github.com/mstroud/Tiny-Tiny-RSS/tree/greader (branched from a new-ish trunk commit)

Code: Select all

diff --git a/js/viewfeed.js b/js/viewfeed.js
index c1163ea..a10c925 100644
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -1591,7 +1591,8 @@ function cdmClicked(event, id) {
                                return cdmExpandArticle(id);
                        } else {

-                               var elem = $("RROW-" + getActiveArticleId());
+                               var old_id = getActiveArticleId();
+                               var elem = $("RROW-" + old_id);

                                if (elem) elem.removeClassName("active");

@@ -1605,6 +1606,10 @@ function cdmClicked(event, id) {
                                elem.addClassName("active");

                                setActiveArticleId(id);
+
+                               if ( old_id != id ) {
+                                       cdmScrollToArticleId(id, true);
+                               }

                                if (article_is_unread) {
                                        decrementFeedCounter(getActiveFeedId(), activeFeedIsCat());

It does what you want, but also auto-scrolls the clicked article to the top of the feed window. HTH.


Hi there!
This is exactly what i am looking for (i think!)
Could you please be more specific where I should put the code more exactly?
Br Thobbe

mstroud
Bear Rating Trainee
Bear Rating Trainee
Posts: 9
Joined: 29 Mar 2013, 00:26

Re: Behavior change for Automatically mark articles as read

Postby mstroud » 01 Jun 2013, 22:22

The snippet from my post is the output of a "git diff". "Diff" is a tool used to communicate just the thing you've asked for: specific and exact changes to text files.

Here's some info that might help: http://stackoverflow.com/questions/2529441/how-to-work-with-diff-representation-in-git

Alternatively, you can just grab the code from this 'greader' branch that I've set up to track the latest TTRSS releases: https://github.com/mstroud/Tiny-Tiny-RSS/tree/greader


Return to “Feature requests”

Who is online

Users browsing this forum: No registered users and 5 guests