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,
        },
    ],
}
0 Likes

#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