
Copy over main.js, manifest.json to your vault into subfolder .obsidian/plugins/path-in-tab-title/. Restart Obsidian, enable plugin in settings ([Cogwheel button] -> Community plugins -> Installed Plugins)
Recommended styles:
.workspace-tab-header-inner-title small {
opacity: 70%;
}
Better to replace this code in app.js
t.prototype.getDisplayText = function() {
return this.file ? this.file.basename : im.interface.noFile()
}
with something like
t.prototype.getDisplayText = function() {
// return this.file ? this.file.basename : im.interface.noFile()
if (!this.file) {
return im.interface.noFile();
}
return this.file.path.split('/').slice(-2).join('/')
}
But I don't know how to patch Electron app :man_shrugging: