-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Discuss usage of 'U'-character for untracked git items #36912
Comments
/cc @WadeShuler, @jayjun, @dseipp, @petkahl |
Thanks @jrieken. I’m in favour of three colours only (excluding greyed ignored files), and each colour should have one letter associated only. My preference is, Untracked/Added Files Modified Files Deleted Files It’s the exact same scheme used by Atom and Xcode too (less context switching). |
Thanks @jrieken Fair enough to give it its own attention :) I know my position has been stated in the other thread, I’ll post it here for clarity. Untracked: These technically are new to add files. They are not in the Git tree at this point. You have added them to your project, but not in version control. Thy also are not staged at this point. Since Modified: Fine as it is from what I recall from my last test run of Insiders. Yellow and Deleted: Fine as it is from what I recall from my last test run of Insiders. I think the Ignored: I don't think the ignored colors were dark enough. It was hard to distinguish ignored files/folders from the others around it. Maybe it is my theme, but I think I saw someone else say the same thing? This is why Atom uses Bug in Ignored: I (and others) have had the parent directory lose it's darker Staged: A darker red color or maybe a darker blue. We don't need this coloring on the Source Control tab, since it already groups the staged files. So the staged coloring is only for the File Tree, so we can see what is staged to ensure we got everything in the commit. Staged support should be optional with a setting to enable/disable it. I don’t care if it is enabled by default, I am fine with manually turning it on. If more people love it, an issue could be opened later to change it to be enabled by default in newer versions. Maybe even let people vote. Badges: The new way without the background color bubble, just the colored letter. The file tree and Source Control tab had different sized bubbles, they looked squished, and using just the letters fits Code better and looks cleaner. What to do when both added and modified files are within the same directoryAtom makes the status of the parent directories (all the way up to project root) When there is only an So in short, the parent dirs take the status color when there is only 1 type. In the event there is both, added and modified, it considers it modified. The directory colors go all the way up to the project root. In this project path, For staged, I think it should turn the staged color, ie Just my 2 cents. Coming from Atom, as a lot of people are, this makes the most sense. |
Often the solution to such diverse views is to allow customisation. I’d imagine this is easier now that badges are single letter characters. It also allows those who don’t like badges to turn them “off” by setting {
"git.badge.untracked": "A",
"git.badge.modified": "M"
} |
Agreed with @jayjun regarding customization. For those that like the 'U', they will be able to change it to their liking. :) Defaulting to 'A' for added (untracked) seems more logical to me as well. edited removing mis-reference to Atom |
@dseipp Where in Atom does it use the ‘U’ ? It doesn’t stock, unless my
theme overrode it?, I’m not sure if your using an extra plugin or not? On
my modified files, it puts a yellow dot before the file on the Git tab.
I’m not calling you out, I just don’t want mis-information to inaccurately
influence the ideas/development of this issue in Code.
|
@WadeShuler , sorry, I was going based off of what others were saying regarding liking the 'U'. May have misunderstood. I will amend my comment. |
I feel differently about this. I think we shouldn't be using alphabetical letters at all.
This could also be a setting? a plugin/extension? emojis? |
@saada No, I don't think so. Nobody will know what it means, they will have to look it up online, and it would result in un-necessary issues/questions all over for something very very basic. When creating things like this, it's always best to look at the "barrier to entry". Take a new programmer, opens up Code, and doesn't know what much of anything is.. Your adding 1 more thing to the list that they have to look up and learn... You want to try your best to make it where the first time they see it, they understand what it is. |
Personally, I don't think the current approach is problematic and I would just keep it. |
Now that we've been using for a while, what do people think? Personally, every time I see the 'U' I still think 'Updated' and need to continue to remind myself that it's 'Untracked'. |
Yeah. I went back to Atom for a bit tbh. My 2 issues with VSCode are that the Git status coloring isn’t finished yet, and every time I paste code, it messes up the indenting. Once this gets finished, even if in Insiders, I will probably come back to Code and see if I can straighten out the indenting on pasting. I agree, the ‘U’ has got to go as it’s counterintuitive. |
How about an U with strikethrough- |
It's still a From the perspective of using an editor and choosing "File > New File", you are "adding" a new file to your file tree. It has been "added" since your last state. Only somebody who is comfortable with Git would know the various git statuses. Beginners would be opening GitHub issues, Stack Overflow questions, Quora Questions, probably even Microsoft issues, every few weeks asking what the I know when the badges had a rounded background "bubble", they were SVG files. Which meant the letter used, ie: I don't care what it is by default, so long as I can change it with a config setting, like this for example: |
I don't know if I should be writing this on here, but I hate that all my files are Yellow or Green. I really don't care about the icons, but the color green is really uncomfortable to the eyes. |
@faustotnc you can turn the colors off by setting explorer.decorations.colors to false in the settings. |
Thanks @petkahl That really did help! Looks a lot better now. |
Closing because no code change is planned |
Let's use this issue to discussion what letter/icon to use for added/untracked git resources. This is a continuation from #178 (comment) and an effort to keep the original, already huge, item a little more focused.
The text was updated successfully, but these errors were encountered: