sindresorhus/refined-github

Issues, Pull Request: Filter unread #2492

muescha posted onGitHub

where:

what i see:

  • i can see rows marked as:
    • unread with a blue line and (css class read)
    • read without blue line (css class unread) Bildschirmfoto 2019-10-17 um 01 13 24

what i expect:

  • an button/setting to hide the read rows to only see the unread

why:

  • i like to see all the new comments and new discussions in the repo

known issues:

  • i know this can result only in zero/one or some lines per page when too much is hidden. but this ok.

search filter:

  • i don't find a search filter how to filter only the unread messages - that would be the best solution ;)

Is there a GitHub search filter for unread status? I couldn't find it: https://help.github.com/en/articles/searching-issues-and-pull-requests

posted by sindresorhus over 5 years ago

I also can't find it there. I tried brute force for is:read/is:unread And with status:/type:/... But no luck :(

posted by muescha over 5 years ago

Then you’ll have to send a feature request to GitHub: support@github.com We cannot do this until the search syntax is supported natively.

posted by sindresorhus over 5 years ago

still requested many times :/

But we can filter the result rows by:

  • search result row divs for class: 'read'
  • set this divs visibility to hidden
posted by muescha over 5 years ago

“Unread” threads are just notifications. Open the notifications page, by repo.

posted by fregante over 5 years ago

i can use it in notifications like: https://github.com/notifications/beta?after=Y3Vyc29yOjUw&query=repo%3Agatsbyjs%2Fgatsby+is%3Aunread+is%3Apr+is%3Aclosed

but there is not the function "open selected"

posted by muescha almost 5 years ago

i can hide the unread rows with calling this line always in console:

document.querySelectorAll(".js-navigation-container:first-child div.Box-row:not(.Box-row--unread)").forEach(el => el.remove());

but this is time consuming, is there any way to add my own scripts into the "Refined Github" ecosystem to have some of the helper functions (api, libs, utils) available?

the idea would be to have my own filter setup in the search box, is:unread -> this filter is also available when i click on the pagination. then read it and apply it if this filter is set. maybe some helper functions from refined github help me with this task, rather then inventing it again

posted by muescha almost 5 years ago

Fund this Issue

$0.00
Funded

Pull requests