Sublime Forum

Make the sidebar folder tree customizeable

#1

Hi all,

I am working on a project with deep nested folder structures and long file names. It would be nice if we could customize how much space is taken up by the indentation between folders. Or, at least make the indent a bit narrower by default. Other products like JetBrains, for example, allow you to narrow how much horizontal space is taken up by the tree structure.

0 Likes

#2

https://www.sublimetext.com/docs/themes.html#side-bar

Some related theme rules which you may interest.

// Documentation at https://www.sublimetext.com/docs/themes.html
{
    "rules":
    [

        {
            "class": "sidebar_tree",
            "row_padding": [16, 3, 4, 3],
            "indent": 12,
            "indent_offset": 13,
            "indent_top_level": false,
        },
    ],
}
1 Like

#3

Holy cow!

This is exactly what I needed. Thank you.

This is the config I went with. Mostly needed the sidebar tree to be a bit narrower.

{
  "rules":
  [
    // Side Bar
    {
      "class": "sidebar_tree",
      "row_padding": [12, 3, 3, 3],
      "indent": 3
    },
  ]
}
0 Likes

#4

Hey, thanks for the hint. I am wondering, is there a way to draw vertical guidelines on a sidebar folder tree? Looked through the current documentation (for v4) and didn’t find any attribute related to the guidelines. Is it actually feasible to customize tree in that fashion?

0 Likes

#5

No, such relics of the 90’s are not supported. It’s against the minimal UI principle.

0 Likes