Skip to content

Instantly share code, notes, and snippets.

@pgmccann
Created April 17, 2014 08:59
Show Gist options
  • Save pgmccann/10966497 to your computer and use it in GitHub Desktop.
Save pgmccann/10966497 to your computer and use it in GitHub Desktop.
Condensed tree view for http://atom.io. Modify stylesheet using Atom > Open Your Stylesheet.
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/
.tree-view {
font-size:80%;
}
.list-group li:not(.list-nested-item), .list-tree li:not(.list-nested-item), .list-group li.list-nested-item > .list-item, .list-tree li.list-nested-item > .list-item {
line-height:18px;
}
.list-group .selected:before, .list-tree .selected:before {
height:18px;
}
.list-tree.has-collapsable-children .list-nested-item > .list-tree > li, .list-tree.has-collapsable-children .list-nested-item > .list-group > li {
padding-left:8px;
}
@JackWells
Copy link

Oh, yes. Much, much better. Thank You!! The default settings made it a goofy-looking waste of space (and I don't always want it hidden).

Note to newbies, you can go to View -> Reload to see the changes, or open in Dev-Mode (also under the View menu).

@gibb0n
Copy link

gibb0n commented Mar 27, 2015

This was exactly what I was looking for, thanks!

@ernest33
Copy link

ernest33 commented May 6, 2015

Thank you 👍

@jmarchello
Copy link

If you like to, you can incorporate the change I made in my fork which makes the icons smaller as well.

@kkayla
Copy link

kkayla commented Jan 16, 2016

yesssss

@rdewolff
Copy link

Thanks for sharing!
The selected folder seems to have a wrong height. Do you see this too?

@tofl
Copy link

tofl commented Jul 27, 2016

Thank you so much <3

@pkalbers
Copy link

What I needed! Thanks

@AndreHorst
Copy link

this is excellent!

@Javadictator
Copy link

Good work. Can you make some packages like tree-lines on atom? it think it would be very useful.

@cyanotrix
Copy link

Thank you. Cannot believe even in 2021 its not fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment