You need to sign in or sign up before continuing.
Auto-collapsing deleted files in Changes tab
Description
Deleted files are usually not something I'm concerned with, if the build/tests doesn't fail it's not used anyhow. But they clutter the screen and makes it annoying to scroll past it when scrolling up-n-down in review.
Benefits: People usually don't care about deleted files, this saves bandwidth and loading time.
Proposal
Auto-collapse deleted files. (Auto-collapsing moved files might also be a nice addition if we don't already)
@kushalpandya helped my write this GreaseMonkey script that I'm using now.
(function() {
var diffContainer = document.querySelector('#diff-notes-app');
var observer = new MutationObserver(function() {
$(".js-file-title > .file-header-content > a:contains('deleted')").parent().parent().click();
});
observer.observe(diffContainer, {
childList: true,
subtree: true,
});
})();
Feature checklist
Make sure these are completed before closing the issue, with a link to the relevant commit.
-
Feature assurance -
Documentation -
Added to features.yml