Completely agree. I would also like to see this.
At the moment, based on my interpretation of how Jon has implemented the âdirtyâ state trigger, it appears to be a property of the tab_control, rather than something more abstract, like the file itself.
When determining whether or not to trigger the dirty file icon in place of the close button, the theme does more or less the following check: âFor this close button, if the parent tab elementâs dirty attribute is true, display the dirty file iconâ
The actual theme rules are:
// Tab dirty button
{
"class": "tab_close_button",
"settings": "highlight_modified_tabs"],
"parents": {"class": "tab_control", "attributes": "dirty"]}],
"content_margin": [8, 8],
"layer0.texture": "Theme - Soda/Soda Light/tab-dirty.png",
"layer0.opacity": 1.0,
"layer1.opacity": 0.0
},
You can see the check there with: âparentsâ: {âclassâ: âtab_controlâ, âattributesâ: âdirtyâ]}],
Iâm not aware at the moment of a way to leverage that for the sidebar tree without Jon adding some other form of indicator for determining if a file is clean / dirty.
Iâd certainly use it, if thereâs a trigger available or one was added.