gasparschott / obsidian-continuous-mode

An Obsidian plugin that displays all open notes in a tab group as if they were a single continuous document (sometimes called "Scrivenings mode"). Open all notes in Continuous Mode from a folder, search results, or links in a file; use arrow keys to navigate between notes; reorder notes via tab header drag-and-drop, sorting, more.
GNU General Public License v3.0
78 stars 2 forks source link

Reading Mode Duplicates Notes -&- Numbered Notes Sort Incorrectly #22

Open ssumppg opened 2 months ago

ssumppg commented 2 months ago

Issue 1: Any notes that are in Reading Mode while using Continuous Mode will be preceded by an Editing Mode duplicate of that note.

Issue 2: Alphabetical sorting of notes in Continuous Mode does not sort numbers properly. The displayed order in the left-side navigation pane is the order I wanted; "Untitled" was all the way at the end rather than at the beginning, and "Untitled 1" was directly followed by "Untitled 10" & "Untitled 11" rather than "Untitled 2".

Screenshot 2024-07-14 192319 Screenshot 2024-07-14 192504 Screenshot 2024-07-14 192532 Screenshot 2024-07-14 192614 Screenshot 2024-07-14 192729
gasparschott commented 1 month ago

Thanks for the report. I believe issue #1 has been fixed in the latest version. Let me know if you're still having the problem. I will look into the sorting issue.

ssumppg commented 1 month ago

Yep, looks like issue 1 is fixed. Thank you! :)

gasparschott commented 1 month ago

Sorting is fixed now, too. Thanks for pointing this out!

ssumppg commented 1 month ago

Of course!

I checked out the sorting and it does look like, for the most part, it's fixed. But I did find a couple of edge cases where the documents still don't sort the same way they're displayed in the Obsidian hierarchy:

Screenshot 2024-07-25 100407 Screenshot 2024-07-25 100443 Screenshot 2024-07-25 100545

As you can see, "Untitled" still appears at the end of the tab list rather than the beginning, and it appears that files with underscores after a number are placed ahead of files ending with that same number, even if there are more characters after the underscore.

I really appreciate you taking the time to fix all these! Thank you for your hard work. :)

gasparschott commented 1 month ago

You're very welcome! I very much appreciate your bug reports—it's impossible for one person to test all scenarios in an app as flexible as Obsidian, and I certainly want to make Continuous Mode as bug-free as it can be. Keep them coming—or rather, let's hope you won't need to!

All the sorting issues should now be fixed—really! The problems revolved around the "localeCompare" function options, which I had not set to "numeric", and using the full file name with the extension instead of the base name only as the sort string.