A google chrome extension that given a glob pattern string, filters your github pull request's changed files by collapsing them.
- Glob search
- Regex search
- Saving a filter
- Applying a filter
- Deleting a filter
- Run
browserify assets/filterGlob.js --s filterGlob > filterGlob-bundle.js
. - Load the unpacked extension
- Go to any pull request's changed files page and you should see the widget
We search for the github toolbar with all the widgets and append our widget in there. From there, you can enter a glob pattern string and when you press Run filter
, we'll collapse any opened files that does not matches the glob pattern.
This extension uses minimatch to perform the glob matching. Because minimatch
is a node package and uses cjs
. We need to use a bundler to generate an esm
, since browsers can only use esm
.
So I chose browserify.
This extension uses the native Javascript RegExp
to perform regular expression searches.
Any contribution is welcomed! Please take a look at the issues or look for TODO
comments.