Page 1 of 1

mark search results read

Posted: 30 Mar 2017, 23:15
by pcause
I did a search for a phrase and got a list of results. I then did a "mark read" and instead of marking just the search results read (what I expected) it marked all the articles in the category read. Tried a few other ways but couldn't get just the search results marked read. Eventually figured out I could select all in search results and then using the select box mark read item do this. It would be nice if just the mark read button would mark the search results read in a single step for us lazy folks.

Re: mark search results read

Posted: 31 Mar 2017, 07:57
by fox
i guess this makes sense, implementing this might be a bitch tho

e: i'll maybe take a look later today but no promises :v

Re: mark search results read

Posted: 31 Mar 2017, 11:22
by fox
kinda experimental i guess

https://tt-rss.org/gitlab/fox/tt-rss/co ... 2200844013

some edge cases might be broken, i would appreciate testing for this

Re: mark search results read

Posted: 31 Mar 2017, 15:24
by pcause
thanks, fox. gave a quick test and seemed to work!! will test more over the weekend.

Re: mark search results read

Posted: 02 Apr 2017, 14:17
by Skibbi
It seems to be broken for me. I wanted to mark as read all articles from a label but I got error:

Code: Select all

TypeError: last_search_query is undefined

Re: mark search results read

Posted: 02 Apr 2017, 14:26
by fox
it's a global variable so this looks like a caching issue

Re: mark search results read

Posted: 02 Apr 2017, 17:07
by Skibbi
Yeah, you're right - I forgot to restart php-fpm after update. So far no errors on my instance.

Re: mark search results read

Posted: 03 Apr 2017, 20:54
by pcause
Did more testing this weekend. used it on the Labels and individual labels and categories and My Feeds. Seemed to work fine. Didn't try on fresh or starred or published..