sindresorhus / hide-files-on-github

Chrome extension - Hide nonessential files from the GitHub file browser
https://chrome.google.com/webstore/detail/hide-files-on-github/lpnakhpaodhdkleejaehlapdhbgjbddp
MIT License
320 stars 36 forks source link

Change toggle button to say "hide" or "show" #13

Closed ArtskydJ closed 9 years ago

ArtskydJ commented 9 years ago

What do you think of the Toggle Dotfiles button toggling between Show Dotfiles or Hide Dotfiles, depending on if they're being shown or hidden?

One reason for this, is if a project has no dotfiles, and you click Toggle Dotfiles, then nothing happens; you're not sure if you missed the button, or if it's not working, before you realize that there are no dotfiles.

Thoughts?

sindresorhus commented 9 years ago

Yes! I wanted to do that initially but was too lazy...

Interested in doing a pull request? :)