You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While reviewing PRs with 10+ files, the workflow gets easier by marking files as viewed. However, when I need to re-review the PR, it gets very tedious marking all files as not-viewed before going ahead with the review.
Would be great if we had a button that would mark all files as view or not-viewed.
Reacted by Brian Bugh, Dean Sofer, hansvonn-halo, Mark Fulton, fregante, Larry Gregory, Kaelig Deloumeau-Prigent, Dan Rosenthal, Kyle Durand, Guiomar Valderrama and 16 more
I was thinking that a better feature would be on the scroll, as you scroll down the file, it would mark file per file as viewed.
Seeing a file is different from being done reviewing it. You might see the whole file in a viewport, but it doesn't mean that you actually read all of it.
I'm thinking that we should put a "Mark all as read" button at the end of the page. This makes the most sense to me and also avoids this issue ⬇️, since when you reach the button, everything was loaded:
such feature can only affect files that have already been loaded.
If such a feature can only affect files that have already been loaded then perhaps a "Load All" button/feature should be added first.
If everything isn't loaded the button could be present, otherwise the button isn't shown and other commands are (e.g. "Mark all as read", "Mark all as unread", etc.).
Have you ever reviewed a PR that contains 2000+ files? I have. It took for ever just to load all the files and it would have been super nice to have just had a button that would have loaded everything for me instead of me scrolling down over and over again. 😄
FYI: I've been using a custom search engine in Google Chrome to mark all files as read/unread, switch to the rich diffs, etc.; this could be modified to use %s in the search URL to take "arguments" to a "Mark all as viewed" function to match file names or contents of files (you'd have to modify the script to detect such, etc.)
Activity
fregante commentedon Sep 17, 2019
Pyton commentedon Oct 11, 2019
As temporary solution I wrode JS bookmark:
Just save it as Bookmark and put JS in URL.
bbugh commentedon Oct 22, 2019
I would love this feature. I love the Viewed GitHub feature but the UX is incomplete. (PS thanks for the excellent extension)
If anyone wants a "set all viewed" equivalent of @Pyton's "unview all" snippet:
leocaseiro commentedon Jan 6, 2020
I was thinking that a better feature would be on the scroll, as you scroll down the file, it would mark file per file as viewed.
Pyton commentedon Jan 6, 2020
Nop. Viewed feature (GH) collapse the code so You no longer see the code but only names.
fregante commentedon Jan 6, 2020
Seeing a file is different from being done reviewing it. You might see the whole file in a viewport, but it doesn't mean that you actually read all of it.
The "Viewed" check must be an explicit action
fregante commentedon Jan 6, 2020
I'm thinking that we should put a "Mark all as read" button at the end of the page. This makes the most sense to me and also avoids this issue ⬇️, since when you reach the button, everything was loaded:
mfulton26 commentedon Jan 6, 2020
If such a feature can only affect files that have already been loaded then perhaps a "Load All" button/feature should be added first.
If everything isn't loaded the button could be present, otherwise the button isn't shown and other commands are (e.g. "Mark all as read", "Mark all as unread", etc.).
fregante commentedon Jan 6, 2020
The solution in my last comment already solves that issue.
mfulton26 commentedon Jan 6, 2020
Have you ever reviewed a PR that contains 2000+ files? I have. It took for ever just to load all the files and it would have been super nice to have just had a button that would have loaded everything for me instead of me scrolling down over and over again. 😄
14 remaining items
mfulton26 commentedon Apr 14, 2020
FYI: I've been using a custom search engine in Google Chrome to mark all files as read/unread, switch to the rich diffs, etc.; this could be modified to use
%sin the search URL to take "arguments" to a "Mark all as viewed" function to match file names or contents of files (you'd have to modify the script to detect such, etc.)fregante commentedon Apr 15, 2020
I'm implementing this via shift-click to mark multiple files at once
mfulton26 commentedon Apr 16, 2020
would alt-click not make more sense? e.g. I believe alt-click is already natively supported by GitHub for expanding/collapsing all files
fregante commentedon Apr 17, 2020
Alt-click would make sense if it acted on all, but that's not how it works (currently).
Shift-click is the standard for selecting "from X to Y"
That acts when clicking the toggle icon. This feature acts when clicking the "Viewed" checkbox
fregante commentedon Apr 30, 2020
I opened an issue for that: #3043, to extend the feature I implemented.
Flabbergasted-1 commentedon Oct 20, 2020
lordzsolt commentedon Feb 15, 2021
I see this PR hasn't moved since it was created 😭
My use case:
fregante commentedon Feb 15, 2021
@lordzsolt the feature already exists, you just need 2 clicks instead of 1: #3007