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
{{ message }}
Repository navigation
Add button and make it easier to discover the hiding of inline comments #212
Sometimes it's nice when code reviewing to hide comments to get a view of just the code. There is already a checkbox to "Show Notes" but it is only per file. I would like to have a keyboard shortcut and/or global checkbox to hide/show ALL comments.
Reacted by Harry Dobrev, erikdesjardins, Shahar Mor, egarkavy, Malcolm Smith, abolikumthekar, Tim Phillips, Rafal Szastok, moshe-lievendag, Channing Allen and 1 more
Sounds good to me as long as they're visible by default. If comments are missing by default it'll be confusing to those who don't know about the feature. 👍
I agree the comments should remain visible by default so we're not breaking the user's expectation for that page.
I might take a shot at implementing this. Any thoughts on the key combo to toggle them on off?
My initial thought CMD+SHIFT+C already opens the chrome dev tools to inspect an element.
Perhaps something with N for Notes .. CMD+OPTION+N (Mac) - CTRL+ALT+N (Win) ?
I would be happy with just a button, but if you think a keyboard shortcut is needed I'll go with something that's consistent with GitHub default shortcuts as we've added new ones which are consistent with them.
Damn (or hurray depending on how you look at it). There's already a shortcut to do this. Pressing i on the Files page toggles all inline Notes. I guess we can close this issue. I should have dug deeper into the "Show All" link for keyboard shortcuts in github.
Reacted by anshupitlia and Nolan Chan
Reacted by Rafal Szastok, Stephan Schroevers, ascourtas, Channing Allen and Nolan Chan
Reacted by Sakthipriyan Vairamani, Tim Phillips, Federico Diaz Real, Rafal Szastok, Stephan Schroevers, Ümit Öztürk and Nolan Chan
Haha, nice! Now when I see it again I think I've seen it before it in the full list of shortcuts, but always forget about it. We could indeed close this. Do you think there's something we could do to emphasize the ability to show/hide all inline notes?
I suppose a button or toggle somewhere in the UI would help discoverability. Perhaps adding it to the diff options dropdown as "Hide inline notes [i]" ? (The [i] represents a little keyboard shortcut indicator)
changed the title [-]New Feature: Hide all comments in PR Files view[/-][+]Add button and make it easier to discover the hiding of inline comments[/+]on May 13, 2017
Given that a shortcut already exists, this seems to go against other features of Refined GitHub, where we hide buttons because shortcuts exist. Reopen if you disagree
Activity
DrewML commentedon May 12, 2016
I like this idea a lot - I found myself doing this manually with devtools in BitBucket the other day 😆
@sindresorhus @paulmolluzzo @hkdobrev what do y'all think?
paulmolluzzo commentedon May 12, 2016
Sounds good to me as long as they're visible by default. If comments are missing by default it'll be confusing to those who don't know about the feature. 👍
robbecker-wf commentedon May 12, 2016
I agree the comments should remain visible by default so we're not breaking the user's expectation for that page.
I might take a shot at implementing this. Any thoughts on the key combo to toggle them on off?
My initial thought CMD+SHIFT+C already opens the chrome dev tools to inspect an element.
Perhaps something with N for Notes .. CMD+OPTION+N (Mac) - CTRL+ALT+N (Win) ?
hkdobrev commentedon May 12, 2016
I would be happy with just a button, but if you think a keyboard shortcut is needed I'll go with something that's consistent with GitHub default shortcuts as we've added new ones which are consistent with them.
robbecker-wf commentedon May 12, 2016
Damn (or hurray depending on how you look at it). There's already a shortcut to do this. Pressing

ion the Files page toggles all inline Notes. I guess we can close this issue. I should have dug deeper into the "Show All" link for keyboard shortcuts in github.hkdobrev commentedon May 12, 2016
Haha, nice! Now when I see it again I think I've seen it before it in the full list of shortcuts, but always forget about it. We could indeed close this. Do you think there's something we could do to emphasize the ability to show/hide all inline notes?
robbecker-wf commentedon May 12, 2016
I suppose a button or toggle somewhere in the UI would help discoverability. Perhaps adding it to the diff options dropdown as "Hide inline notes [i]" ? (The [i] represents a little keyboard shortcut indicator)

[-]New Feature: Hide all comments in PR Files view[/-][+]Add button and make it easier to discover the hiding of inline comments[/+]fregante commentedon Jul 26, 2017
Just in case anyone wants to pick this up, here's a testing page with multiple files+comments:
840cca9hkdobrev commentedon Jul 26, 2017
@bfred-it I don't see any GitHub comments on this page. This is about inline GitHub comments, not comments in the code.
fregante commentedon Jul 26, 2017
There are, it's just that GitHub decided to change my URL to point to the commit directly :(
Here's the correct link
fregante commentedon Apr 6, 2018
Given that a shortcut already exists, this seems to go against other features of Refined GitHub, where we hide buttons because shortcuts exist. Reopen if you disagree
fregante commentedon Sep 7, 2019
Anyone still interested in this feature can follow up on #2398 and leave a comment