Path in tab title

by d9k
5
4
3
2
1
Score: 35/100

Description

Category: Customization & UI

The Path in tab title plugin changes the tab header so it shows a note's path in the title area instead of leaving only the default title. It is a small UI tweak aimed at people who want more context while moving across open tabs. The plugin also supports simple CSS styling for the path text, with the example styling the extra part in a lighter way using a small tag inside the header. Its current behaviour is limited in a few places.

Reviews

No reviews yet.

Stats

stars
61
downloads
0
forks
52
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Obsidian path in tab title plugin

plugin screenshot

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

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:

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Snippetor
4 years ago by ebullient
An assist for creating CSS snippets for Obsidian
Custom Frames
4 years ago by Ellpeck
An Obsidian plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.
Group Snippets
4 years ago by Mara-Li
Create folder of snippets to activate them in one click !
New Tab Default Page
4 years ago by pseudometa
Obsidian plugin to open a note of your choice when creating a new tab, like in the browser.
External Link Opener
4 years ago by zorazrr
Obsidian plugin to open external links in modals or tabs
Base Tag Renderer
4 years ago by Darren Kuro
A lightweight obsidian plugin to render the basename of tags in preview mode.
Canvas CSS class
3 years ago by Lisandra-dev
A plugin that will add a css class to your canvas & adding to each canvas the path to help personnalization
Hyphenation
3 years ago by 7596ff
Enables justified text and hyphenation
Custom Classes
3 years ago by Lila Rest
A minimal Obsidian plugin that allows you to add your own HTML classes to chosen Markdown elements directly from your notes.
Restore Tab Key
3 years ago by jerrymk
An Obsidian plugin to make the tab key insert a tab, and make it feel like any other IDE regarding tabs and indentation.
Style Text
3 years ago by Juanjo Arranz
Apply custom CSS styles to selected text in your Obsidian Notes
Code Styler
3 years ago by Mayuran Visakan
A plugin for Obsidian.md for styling codeblocks and inline code
CodeBlock Tabs
3 years ago by Jemin Mau
Create tab group for contiguous codeblocks.
Sheets Extended
3 years ago by NicoNekoru
Plugin that adds features to tables in obsidian including merging, vertical headers, and custom css
Mononote
3 years ago by Carlo Zottmann
An Obsidian plugin that ensures each note occupies only one tab. If a note is already open, its existing tab will be focussed instead of opening the same file in the current tab.
HTML Tabs
3 years ago by Patrick Tournet
Obsidian plugin allowing the creation and rendering of Tabs and tab panels in your notes.
Minitabs
3 years ago by ssjy1919
Obsidian tabs
Tab Shifter
2 years ago by Joshua Rozner
Tab Selector
2 years ago by namikaze-40p
This is an Obsidian plugin which can quickly switch tabs in various ways.
Regex Mark
2 years ago by Mara-Li
Checkbox styling helper
2 years ago by JaewonE
Render theme-independent SVG icon bullets from plain Markdown markers.
Shrink pinned tabs
2 years ago by Nicolas Lœuillet
Obsidian plugin to shrink pinned tabs in order to save screen space
CSS Inlay Colors
2 years ago by Benji Grant
Show inline color hints for CSS colors in Obsidian
CSS Inserter
2 years ago by Erika Gozar
Inserts user-defined css snippets into the selected text.
Tailwind Snippet
2 years ago by Nicholas Wilcox
An Obsidian plugin that enables usage of Tailwind CSS.
Tab Switcher
6 years ago by Vinzent & phibr0
Tab Switcher - Obsidian Plugin
Contextual Typography
6 years ago by mgmeyers
Admonition
5 years ago by Jeremy Valentine
Adds admonition block-styled content to Obsidian.md
Snippet Commands
5 years ago by death_au
Registers custom css snippets as commands (which you can bind hotkeys to)
MySnippets
5 years ago by Chetachi
MySnippets is a plugin that adds a status bar menu allowing the user to quickly manage their snippets within the comfort of their workspace 🖌.
Auto Class
5 years ago by Nathonius
Automatically add CSS classes to notes based on file path.
Markdown Tags
2 years ago by John Smith III
Enhance your Markdown documents with custom tags. Use predefined or custom labels, customizable colors, and arrow indicators to visually track tasks and statuses.
Tab Limiter
2 years ago by Henry Gustafson
Limits the number of tabs that can be opened in Obsidian
Autofit Tabs
a year ago by Bradley Wyatt
Obsidian Plugin that automatically adjusts tab header widths in real-time to perfectly fit each tab's title content while maintaining a clean, seamless interface that prevents awkward text truncation and ensures optimal readability of your document titles.
Tab Group Arrangement
a year ago by situ2001
Arrange the tab groups of Obsidian in a more flexible way
Wheel Tab Switcher
a year ago by 22-2
Switch between Obsidian Tabs using your mouse wheel when hovering over tab headers.
Smooth Navigator
a year ago by Michael Schrauzer
Smoothly cycle through open files and splits in Obsidian via the keyboard.
Title-Only Tab
a year ago by tristone13th
a plugin of obsidian for to change showing tab name to short
Tab File Path
10 months ago by John Burnett
Custom Theme Studio
9 months ago by @gapmiss
An Obsidian.md plugin to create and tweak custom themes with live CSS editing, element styling, and instant previews. All without leaving Obsidian.
Mobile Sidebar Notes
8 months ago by Chris Kephart
Open notes & new tabs in the sidebar on the Obsidian mobile app.
Disable Tabs
6 months ago by David V. Kimball
Disables having more than one tab open at a time Obsidian.
Source Mode Styling
5 months ago by Chris Howard
Obsidian plugin. Provides a customisable raw look in source mode using a monospace font to clearly differentiate from Live Preview.
Frontmatter to HTML Attributes
3 months ago by Tarek Saier
Makes YAML frontmatter available as data-* attributes in HTML, enabling metadata based CSS styling.
Fix Tab Size
2 months ago by mnaoumov
This plugin has not been manually reviewed by Obsidian staff. Fixes tab size according to the settings.