oxdc / obsidian-vertical-tabs

An Obsidian plugin that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.
MIT License
85 stars 0 forks source link

Integration with Frontmatter Title Plugin #27

Open Moyf opened 2 months ago

Moyf commented 2 months ago

Hello! Could you integrate this plugin with https://github.com/snezhig/obsidian-front-matter-title so that we can see the title property rather than the filename? This plugin provides an API : https://github.com/snezhig/front-matter-plugin-api-provider

oxdc commented 2 months ago

Good idea! I'm afraid that integrations with other plugins, however, might have to be postponed for a little while. I'll look into it after fixing all known issues and getting the core functionality done. Please be patient.

Moyf commented 2 months ago

Good idea! I'm afraid that integrations with other plugins, however, might have to be postponed for a little while. I'll look into it after fixing all known issues and getting the core functionality done. Please be patient.

Of course! No worry, take your time ; )

attilaszkrs commented 2 weeks ago

This feature request started on the wrong foot. Title should be: "option to display front matter title instead of file name"

The issue is not integrating Vertical Tabs with another plugin; it's about displaying a note's frontmatter title. No third-party plugin access is required. It concerns a functionality that rely on standard YAML frontmatter, a core feature of Obsidian.

This feature would greatly enhance Vertical Tabs for users who decoupled or 'internalized' titles" from filenames.

oxdc commented 1 week ago

Hi @attilaszkrs ! May I ask which solution do you use or prefer? With or without the frontmatter title plugin?

The advantage of Frontmatter Title is that it comes with more features such as replacing titles in the file browser. Otherwise Vertical Tabs has to reimplement some features.

Moyf commented 1 week ago

For me both solutions work, since the result is "show title instead of filename".

Of course, I understand that some users don't want to rely on additional plugins - First, however, as @oxdc said, the Frontmatter title plugin implements some features in its own right, and integrating with it avoids the need to reinvent the wheel.

Examples include customizable title frontmatter property name, fallback frontmatter name, and more complex function handling:

image

For example, relying on the Function V2 Processor, I can display the name of "Today's DailyNote" as ⬇️ Today:

image

This is easier to identify. And because it's dynamic, it can not be achieved by a fixed title.


Secondly, I personally think that the need to "display title" should be unified. If a person wants to display the title in vertical tabs, then it is likely that he will also want to display the title in other places - tabs, title bars (etc.), so this is to "display title" as a special problem, with a separate solution to unify - Vertical tabs are only compatible with this solution.

image

Still, both solutions are acceptable for me! It depends on what @oxdc thinks 😊