github diff navigator allows you to easily navigate through the changes in a file that has been edited on GitHub..
Code available at: https://github.com/daattali/github-diff-navigator-extension/
Description
=========
This is a chrome extension that allows you to easily navigate through the changes in a file that has been edited on GitHub.
You may have noticed that after editing a file through GitHub and previewing your changes, there is no easy way to navigate through the changes in a nice "next/previous change" manner. Most file formats only show the lines that were changed and several surrounding lines, so it's usually not a terrible inconvenience, but for any markdown document (.md) the situation is different. github shows the entire markdown document when previewing the changes made, which means that if you're making a few tiny edits to a large document, it's very hard to find those edits and see what's changed. Rmarkdown (.Rmd) documents behave similarly, and potentially other markdown-type documents as well.
Enter: GitHub Diff Navigator.
Motivation
=========
The idea for this extension came when I was reading through Hadley Wickham's advanced r book. Every time I found a few typos in a chapter (which is a single markdown document), I would edit it on GitHub and make a pull request.
To make sure I didn't make an idiot out of myself, I wanted to double-check my edits in the Preview tab, but I noticed the problem described above. I didn't trust my eyes in finding the few edits in such large files, and I ended up using the DOM + JavaScript console to help me find where the edits were.
Then I decided that playing in the JavaScript console wasn't hardcore enough and I decided to spend the next two days making an extension that will help me find such changes quickly in the future.
Features
=========
- GitHub Diff Navigator is non-intrusive and will only show up when looking at the Preview of edits made on a file using github.
- GitHub Diff Navigator will not take up any resources or show up in Chrome's Task Manager when you don't have a valid github edited page open.
- Works with multiple github tabs that are open simultaneously (every time you switch tabs, the extension will update to show you the edits in that tab).
- automatically detect whether the file being edited is markdown-type or not, and seamlessly works for both.
- Clean and intuitive UI with helpful messages shown when no edits are found.
Disclaimer
=========
I would not advise using my code as a template or resource for learning how to write chrome extensions. I learned how to write the extension and fully built it within two days, so I'm not sure what the best practices are and how to properly organize the code. It was just an excuse to test out how chrome extensions work. I also left a little bit of ugly code in there -- please dont judge :)
You can Follow the below Step By Step procedure to install the Diff Navigator for GitHub Chrome Extension to your Chrome Web browser.
It is the Diff Navigator for GitHub Chrome extension download link you can download and install Chrome Browser.
Tags: Advanced R Book , Dom Javascript Console , Entire Markdown Document , Multiple Github Tabs , Please Dont Judge , Github Edited , Single Markdown Document , Days Making , Github Diff Navigator Allows , Github Tabs , Github Diff Navigator , Markdown Document , Write Chrome , Diff Navigator Extension ,
When you have too many files in one github diff, this extension helps you filter out the noise
Filter out diffs by filename on GitHub
Better Pull Requests is a simple Chrome extension that adds a few niceties to GitHub and Bitbucket diff views. The main idea is…
Adds diff after links to commits in PRs
Adds a button to GitHub diff views which toggles whitespace (a la `git diff --ignore-all-space`)
GitHub file diff to TODO List.
Open source Chrome Extension which adds a bunch of new features to GitHub. Customize by picking the ones you like!
Adds refactoring annotations to GitHub diff
Adjusts the github diff coloring so that it is more readable to red/green color blinded people
Enhances Github diff pages. Click on a line number to open or Option/Ctrl + click on a line number to edit the file at the position.