Hide folder and file icons in tree view

Created by overlandandseas
Last updated about 20 days ago
.list-group .icon::before,
.list-tree .icon::before,
.icon-file-directory::before {
  display: none;
}
.list-item.project-root-header .icon-repo::before {
  display: inline-block;
}

.expanded > .list-item > .icon-file-directory::after {
  content: ' /';
}

.collapsed > .list-item > .icon-file-directory::after {
  content: '/';
}

.list-group .header.header.header.header::before,
.list-tree .header.header.header.header::before {
  display: none;
}

.tree-view {
  font-family: 'DejaVu Sans Mono';
}

This will hide the folder and file icons from the tree view. Folders can be told apart from files with a trailing “/” Open folders will have a space-character before their trailing slash “ /” Files are all other items without any trailing character.