Skip to content

Add button and make it easier to discover the hiding of inline comments #212

Closed

Description

@robbecker-wf

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.

Activity

  1. DrewML commented on May 12, 2016

    @DrewML
    Contributor

    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?

  2. added
    small
    on May 12, 2016
  3. paulmolluzzo commented on May 12, 2016

    @paulmolluzzo
    Contributor

    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. 👍

  4. robbecker-wf commented on May 12, 2016

    @robbecker-wf
    Author

    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) ?

  5. hkdobrev commented on May 12, 2016

    @hkdobrev
    Contributor

    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.

  6. robbecker-wf commented on May 12, 2016

    @robbecker-wf
    Author

    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.
    image

  7. hkdobrev commented on May 12, 2016

    @hkdobrev
    Contributor

    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?

  8. added and removed
    small
    on May 12, 2016
  9. robbecker-wf commented on May 12, 2016

    @robbecker-wf
    Author

    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)
    image

  10. 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
  11. fregante commented on Jul 26, 2017

    @fregante
    Member

    Just in case anyone wants to pick this up, here's a testing page with multiple files+comments:

    840cca9

  12. hkdobrev commented on Jul 26, 2017

    @hkdobrev
    Contributor

    @bfred-it I don't see any GitHub comments on this page. This is about inline GitHub comments, not comments in the code.

  13. fregante commented on Jul 26, 2017

    @fregante
    Member

    There are, it's just that GitHub decided to change my URL to point to the commit directly :(

    Here's the correct link

    screen shot 2017-07-26 at 14 59 11

  14. fregante commented on Apr 6, 2018

    @fregante
    Member

    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

  15. fregante commented on Sep 7, 2019

    @fregante
    Member

    Anyone still interested in this feature can follow up on #2398 and leave a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions