# On create PR, way to collapse all diffs?

**URL:** <https://forum.gitea.com/t/on-create-pr-way-to-collapse-all-diffs/6380>\
**Category:** Gitea Usages\
**Created:** [December 7, 2022, 11:21pm UTC](https://forum.gitea.com/t/on-create-pr-way-to-collapse-all-diffs/6380 "2022-12-07T23:21:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcstafford](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mcstafford](https://forum.gitea.com/u/mcstafford)\
**Post date:** [December 7, 2022, 11:21pm UTC](https://forum.gitea.com/t/on-create-pr-way-to-collapse-all-diffs/6380/1 "2022-12-07T23:21:06Z")

</div>

(I’m a newbie here; please direct me politely to the correct resource/approach if this should be posted elsewhere or in some other way.)

When I initiate a PR in gitea, all diffs are expanded/revealed – ie, the arrow to the left of all files is turned down, and the diffs for all files are shown. For large commits, this can be overwhelming, and often I just want to scan filenames anyway. But there appears to be no way to bulk-collapse these expanded divs so that I can scan quickly, or browse just specific diffs.

It sounds like github had this same issue, and it was resolved by allowing the user to alt-click any of the closed div-expander arrows, and all expanded divs would collapse:

> **[Collapse all diffs in a pull request at once](https://github.blog/changelog/2018-08-17-collapse-all-diffs-in-a-pull-request-at-once/)**
>
> When a pull request contains a lot of changed files, code reviewers can find it hard to isolate the changes that are relevant to them. Now you can collapse (or expand) the contents of all diffs in a pull request by holding down the alt key and...

What is the mechanism to request a similar change to gitea? Or, if that functionality already exists & I’m just unable to figure it out, please kindly let me know what I’m missing (I’m on a Mac keyboard, so for me the ‘alt’ key is usually the ‘option’ key).

Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![jushiip](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jushiip](https://forum.gitea.com/u/jushiip)\
**Post date:** [August 6, 2023, 6:39am UTC](https://forum.gitea.com/t/on-create-pr-way-to-collapse-all-diffs/6380/2 "2023-08-06T06:39:54Z")

</div>

It’d be great to have similar functionality like Github has for this.

I did create a tiny chrome extension for myself to quickly collapse/uncollapse all files. I do know a browser extension is a bit overkill for this issue - but in case anyone finds it useful you can get it here:

> **[GitHub - jushii/GiteaDiffFolder: A chrome extension to automatically fold and...](https://github.com/jushii/GiteaDiffFolder)**
>
> A chrome extension to automatically fold and unfold file diffs on Gitea's Files Changed tab. - GitHub - jushii/GiteaDiffFolder: A chrome extension to automatically fold and unfold file diffs on...

---

<div class="post-metadata">

**Author:** ![delvh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/delvh/32/5047_2.png) [@delvh](https://forum.gitea.com/u/delvh)\
**Post date:** [August 6, 2023, 9:42am UTC](https://forum.gitea.com/t/on-create-pr-way-to-collapse-all-diffs/6380/3 "2023-08-06T09:42:05Z")

</div>

Has been implemented with Gitea 1.20:

 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/1/15c5627472dca4b658b177fb8d1c964e884c44ac.png)  
(although this menu bar will look slightly different for you, I made this screenshot on [gitea.com](http://gitea.com), so latest Gitea, not Gitea 1.20)
