zed icon indicating copy to clipboard operation
zed copied to clipboard

Allow filtering file tree by git "has-changes" status

Open pedrorolo opened this issue 1 year ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the feature

There should be a checkbox in the edge of the file tree allowing to only show files that are uncommitted to git.

My motivation for this is that when using another editor I often prefer to navigate within my work by using its git-ui file tree, which only contains the files that I am actually editing. Zed still lacks a proper git UI, thus we users are expected to use an external tool for it; however, an external tool can't provide the git-status based file navigation benefits that a interface within the editor can, thus this feature could be a quick win without having to implement a full-fledged git-ui within the editor with all the bells and wistles.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

pedrorolo avatar Apr 17 '24 22:04 pedrorolo

When thinking further about this I even had a more sophisticated idea around it: auto-close non-git-modified files after x minutes open and seen, thus allowing the the tabs to function as the list of non-git-modified files.

Question: Is this easy to implement as an extension?

pedrorolo avatar Apr 17 '24 23:04 pedrorolo

IIRC, current extensions do not have any control over Zed UI elements, including closing any tabs in the panes, so impossible right now.

As for the "show only changed files" feature, it sounds like a nice idea to be done in Zed directly, as possible already and most probably needed for the project diff panel in the future.

SomeoneToIgnore avatar Apr 18 '24 07:04 SomeoneToIgnore

This sounds like #4367 to me. Let me know if it would be fair to merge this request with the original #4367.

Moshyfawn avatar Apr 18 '24 15:04 Moshyfawn

I'm going to close this issue in favour of the source panel one to keep the conversation in one place. Be sure to +👍 the other request and add any additional information you think is missing.

Let me know if you think this deserves it's own thread if you want to explore other options before the source panel is developed.

Duplicate of

  • #4367

Moshyfawn avatar Apr 18 '24 17:04 Moshyfawn