- Githubのプルリクファイル一覧ページに、ファイルの折りたたみ機能を追加します。
- cs/xmlファイル以外を自動的に折りたたみます。オプションで変更可能です。
- Githubがpjaxに対応し、旧Pretty Pull Requestsプラグインが利用できないので改造しました。
- prettypullrequests.crx をダウンロードする
- Chromeで「その他の機能 -> 拡張機能」を開くか、 chrome://extensions/ に移動する
- ダウンロードした prettypullrequests.crx をドラッグ&ドロップする
- 「拡張機能を追加」を押す
- prettypullrequests.zip をダウンロードし、展開する
- Chromeで「その他の機能 -> 拡張機能」を開くか、 chrome://extensions/ に移動する
- 「デベロッパーモード」にチェックを入れ、「パッケージ化されていない拡張機能を読み込む...」をクリックする
- さきほど展開したフォルダ内のprettypullrequestsフォルダを選択し、「OK」をクリックする
- 【Windows】
上記インストール方法で最新版のプラグインをインストールしてください - 【Mac】
prettypullrequestsは自動的に更新がインストールされます。特に操作は不要です。
- デフォルトではcs/xmlファイルを自動的に折りたたむ設定になっています。
- 変更するには、OptionsにあるAuto-Collapse Rulesを変更してください。デフォルトは
^(?!.*(cs|xml)$).*$
です。 - 正規表現については http://uxmilk.jp/50674 を参考にしてください。
- ご利用は自己責任でお願いします
This extension will add various features to the diff view on Github's pull request pages.
Supports both files changed and commit diffs.
- Click on the file name to collapse a file, or collapse from bottom up via an added button
- Collapse/Expand all
- Collapse/Expand all that match a regex pattern
- Collapse/Expand added/removed lines
- File tree view allowing you to collapse a directory, or jump directly to a file diff
- (Optional) Use backtick/tilde to switch tabs in the pull request. Backtick goes forward, and tilde (shift-backtick) goes backward. Enable this setting in the extension's options.
- Set regex patterns to automatically collapse all files in any PR that matches
To install the chrome extension, visit: chrome web store / pretty pull requests