-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve discoverability around closing git diffs #12404
Comments
in hindsight I guess the button should be in the current version, but 🤷 |
I also agree that there should be a button. After a bit of searching, I found that pressing |
Although convoluted, thank you Jason! I think this is probably a pretty good first issue? |
There's also the |
didn't know about the esc keybind. good to know. imo if there's a dismiss button for the error diagnostic, there should be one here, but thats just me. |
Maybe you could keep showing the git gutter and have clicking that toggle it off, just like you can toggle it on by clicking the git gutter? |
Not a bad idea; Would the gutter expand or only show on the current? |
I’d say only show for the current code, with the same colour as when it is unexpanded. |
So I was able to get the git gutter to stay when opened, but can't figure out how to close it. Would appreciate some help |
To show the X mark in the gutter, here's a set of pointers:
In the editor element, when we paint the gutter during zed/crates/editor/src/element.rs Line 2837 in cfbf5dc
We can add another icon below for every expanded hunk, similar to zed/crates/editor/src/element.rs Lines 2860 to 2874 in cfbf5dc
|
Check for existing issues
Describe the feature
Hello!
When you open a git diff on a line, there isn't a [easy] way to close the diff. An 'x' button, or something similar to the close diagnostic button would be much appreciated
If applicable, add mockups / screenshots to help present your vision of the feature
The text was updated successfully, but these errors were encountered: