Skip to content
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

Colorize files/folders based on .gitignore #1086

Closed
TheColorRed opened this issue Dec 7, 2015 · 4 comments
Closed

Colorize files/folders based on .gitignore #1086

TheColorRed opened this issue Dec 7, 2015 · 4 comments
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues git GIT issues
Milestone

Comments

@TheColorRed
Copy link

It would be nice if the files/folders text was colorized within the file tree based on the .gitignore files.

For example:

Blue  = File Updated
Green = File Added
Gray  = File Ignored

Here is an example that shows added files and ignored files:

git file highlight

@egamma egamma added feature-request Request for new features or functionality git GIT issues labels Dec 8, 2015
@egamma egamma modified the milestone: Backlog Dec 10, 2015
@bpasero bpasero added workbench file-explorer Explorer widget issues and removed workbench labels Dec 18, 2015
@choidamdam
Copy link

+1

@OlsonDev
Copy link

+1; I found this issue because I was hoping to just set arbitrary colors/styles on folders/files, including those related to .gitignore.

To expand on @TheColorRed's example:

Folders => bold

Folder `node_modules` & children => npm logo red
Folder `controllers` & children => blue
Folder `models` & children => green
Folder `views` & children => gold

Files in root, folder `dist` & children, specified by `.gitignore` => light grey

git file updated => blue underline
git file added => green underline

I envisioned a place to put our own styles, explorer.css or something:

.folder, .file {
    color: inherit; /* Assuming tree has them nested in DOM */
}
.folder {
    font-weight: bold;
}
.folder[data-name="node_modules"] {
    color: #CB3837;
}
.file.project-root, .git-ignored, .folder[data-name="dist"] {
    color: lightgrey;
}
.git-added {
    text-decoration: underline;
    text-decoration-color: green; /* not supported yet, workaround/hack not relevant */
}
/* etc. */

@timc13
Copy link

timc13 commented Mar 10, 2016

+1

@Tyriar
Copy link
Member

Tyriar commented Mar 12, 2016

Duplicate of #178

@Tyriar Tyriar closed this as completed Mar 12, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues git GIT issues
Projects
None yet
Development

No branches or pull requests

7 participants