Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark all selected diffs as reviewd #1

Open
sfc-gh-lmoll opened this issue Mar 17, 2021 · 3 comments
Open

Mark all selected diffs as reviewd #1

sfc-gh-lmoll opened this issue Mar 17, 2021 · 3 comments

Comments

@sfc-gh-lmoll
Copy link

Sometimes a PR contains lots of small subsequent diffs, e.g. when some object was renamed. It would be handy if I could simply select all of them (already possible) and then mark all selected diffs as reviewed with a single click / shortcut.

@MarcinZukowski
Copy link
Owner

MarcinZukowski commented Mar 17, 2021

Not sure if I understand correctly. Do you want to select using a browser selection mechanism, and then somehow mark the overlapping (or fully contained?) diffs as marked?

For now, you can mark an entire file as reviewed, that should also help.

@sfc-gh-lmoll
Copy link
Author

sfc-gh-lmoll commented Mar 17, 2021

Yes, imagine a file with the following changed lines (only mentioning changed lines here, imagine there is lots of unchanged code in between all lines):

fooRenamed
fooRenamed
fooRenamed
fooRenamed
some-significant-change
fooRenamed
fooRenamed
fooRenamed
fooRenamed
some-other-significant-change

When I go through the file I will manually clear all lines that only contain the renaming of foo as diff. After that I will have an overview of the really important changes:

some-significant-change
some-other-significant-change

It would help if I wouldn't have to click a button or press shift+K shift+X once for every fooRenamed.
There already is a way to select multiple lines in Github:

E.g. if lines are selected like that the Mark all done and Clear all buttons as well as shift+X could be applied only to the selected lines.

Marking an entire helps a bit, I could mark it all as done and then manually search for significant changes and unmark them again. But that's a blacklisting vs. whitelisting approach.
Also it doesn't work for the first file for me, because the Review-Pal toolbar hides the button:

But I think this is only because of my very small display resolution atm, hope a normal sized monitor will fix this.

@MarcinZukowski
Copy link
Owner

I think it would be possible to detect which diff lines are a part of selection, and indeed mark them as reviewed. This could require splitting the diff into a sub-diff, but can be done.

When I find more time, I'll take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants