-
Notifications
You must be signed in to change notification settings - Fork 63
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
Ignore whitespace in diffs automatically #5
Comments
A diff which may confuse people with this trick without a hint |
Well done! 👍 Blazing fast! I just came up with an alternative approach worth considering.
May be a bit opinionated... or just all my fantasy :D |
Is there any consideration for this still? Having an option to default PR's to not showing whitespace diffs would be extremely useful, especially for those of us writing clojure and aligning maps values, as an example. We get diffs that are often 50% or more just whitespace and have been having to manually append the ?w=1 to our PR URLS. |
Prepare to add this but don't get a time, PR is welcomed. |
Seems it's not applied to commit details page? I didn't see a "Ignore Spaces" button there. |
Released v0.16.3 to fix this |
I am not able to see this feature Check amit133/KTAB@0dbcf5a#diff-e4cd2a6be7b63a3b123aa8476c2456d1 |
Is this ever going to be available in Pull Requests? |
The w=1 trick is nice for viewing diffs, unfortunately you can't add comments for the Pull Request which is where this would be most useful. Really annoying to not be able to see your actual change in a file that accidentally (or intentionally) got formatted as part of a commit, since changing the whitespace doesn't matter in most languages. |
Are team would get alot of use from the menu/button option for selecting "no spaces" in diff when doing PRs. One common use-case for us is Jenkins often changes spaces/tabs to files automatically... which then leads to lots of file diff segments that are not "real" diffs. This button suggestion above would be great in the PR Files Changed tab/section. |
Any time estimate for when this will finally make it? |
Better to turn 'Hide Space' off in python code @phicharp |
@camsong : we are moving a rather old project to using autopep8 and many spaces are removed (old style was with spaces after and before parentheses, around "=" etc...) and it is quite painful to see "real changes" if any, so hiding spaces is nice, but of course leading spaces are a problem... |
@phicharp It's hard to support that. Right now, "hide space" is a feature supported by github, can not be modified. |
OK, I understand this is not easy to implement, but AFAIS it is not exposed in the web interface, is it? I manage by adding "by hand" |
Just wanted to leave another vote to add a button to PR pages to do this. I learned of the trick using w=1, but wish there was a way to make that the default. I agree there are times when it should be flipped off, so having the button at the top of the page would be ideal. Any chance of getting this promoted to a user pref setting that is applied automatically as the default state, then having the button to flip from there? Thanks |
@ericarnold-granular Will consider about this |
Agree, this should be default. Or at least a toggle option. Please make it happen 👍 |
I love the checkbox that's been added for Hide Whitespace Changes. Can we add an option to make it the default? |
@nadim I search and I didn't find the checkbox on a page with code changes, I have to add w=1 by hand ... |
@nadim oops, I haven't seen that the report was for a Chrome extension :-Z |
What chrome extension? I'm pretty sure this is default github behaviour. No extension required. |
On this kind of page, there is no button by default : I have installed Octo Mate to have the Ignore / Show Spaces button. |
@nadim do you know if that checkbox selection can be persisted? I find myself selecting it and then the page is reloaded, the selection is gone. |
+1 for a persistent toggle - thank you! |
Is it supported to persist the setting across PRs? |
+1 for persistency, I want it to be saved as my user preference, so I will not have to enable it for each PR I am reviewing |
+1 for persistent |
+1 for persistency. |
How about adding
?w=1
to any diff URLs automatically as optional? Personally speaking it's pretty useful, as I hardly ever care about any changes only in whitespace.The text was updated successfully, but these errors were encountered: