Zachatoo / obsidian-css-editor

Edit CSS snippets in Obsidian.
MIT License
57 stars 2 forks source link

[Minor Issue] Wrong tab title #5

Closed AB-boi closed 1 year ago

AB-boi commented 1 year ago

The filename in the tab title lags.

Environment

Steps to reproduce

1) After opening the first .css file upon starting Obsidian, the tab title just says New Tab instead of the file name.

2) After that if I open another .css file within the same tab window, the tab title now shows the name of the previously opened file -

IMG_20230525_165927_614.jpg

As you can see in the image above, I opened Blockquote Style.css first and then opened Combined emphasis-pink.css next, and yet the tab title in the spine shows the previous file's name. But the filename in the top-center part of the window (where the filepath usually appears) shows the current filename accurately

Expected outcome

It's supposed to show the current filename.

Zachatoo commented 1 year ago

Thanks for the report!

I'm well aware of this annoyance, tried to fix it a few times before releasing the beta but haven't figured it out yet.

Zachatoo commented 1 year ago

Looked at how some other plugins were creating views and did some refactoring and I was able to find a fix for this! :tada: Now fixed in 0.1.0.