Path in tab title
approvedby d9k
This plugin has not been manually reviewed by Obsidian staff. Show folders names in the tabs titles.
↓ 26 downloadsUpdated 1mo ago0BSD
Obsidian path in tab title plugin

Installation
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)
Known limitations
- There is the delay before updating tab title.
- Tabs titles are reset to default after the app restart.
- Only focused tabs titles are changed
Styling
Recommended styles:
.workspace-tab-header-inner-title small {
opacity: 70%;
}
Build with
- obsidian-sample-plugin by obsidianmd
- Template for Obsidian community plugins with build configuration and development best practices.
See also
Alternative approach
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:
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.