turulix / obsidian-folder-index

GNU General Public License v3.0
115 stars 9 forks source link

FEATURE REQUEST: Preserve Folder Numbering Prefix #44

Open qazero opened 1 year ago

qazero commented 1 year ago

I have a bunch of folders in my vault, some of which have numbers prefixed as seen in the screenshot below. Would it be possible to detect if there is any numbering prefixed in the folder names and if so respect the numbering used? For example, in the screenshot below, my folder number begins at the number 0 but the automatically generated MOC begins at 1. In addition, if I rename my folder to begin at the number 1 instead of 0, the MOC would have 2 numbers prefixed as seen in the screenshot below. Would it be possible to detect these instances to prevent numbers to be prepended in cases where folders already have a number prefixed?

Alternatively, would it be possible to define custom ordering/numbers in the settings for the plugin where we can define the number to prefix parent folders? If a folder is not mentioned in the settings then we can assign the next ascending number.

image

turulix commented 1 year ago

The Problem with that is, the list is just generated markdown, so I can't really affect the number shown as thats done by Obsidian. I could check if the name starts with a number and remove it in the name. Alternativly with the next release there will be an option to use bulletlists instead of the numbers, would that be helpfull?

Also, I love that theme where do I get it?

turulix commented 1 year ago

Just implemented #10 maybe that could help you

qazero commented 1 year ago

Sweet, thanks! I was trying to test it out but Obsidian keeps failing to update. Possibly an issue with the manifest.json again?

I'm using the Blue Topaz theme :)

image

qazero commented 1 year ago

Probably not the manifest.json I'm getting a 404 again for some reason.

    at new t (app.js:1:1668026)
    at tU (app.js:1:1668218)
    at app.js:1:1668895
    at app.js:1:235927
    at Object.next (app.js:1:236032)
    at a (app.js:1:234750)
(anonymous) @ app.js:1
qazero commented 1 year ago

Not sure what the issue was but was finally able to update. Excited to test this out, thanks again!

turulix commented 1 year ago

Me being stupid was the issue xD

qazero commented 1 year ago

The Problem with that is, the list is just generated markdown, so I can't really affect the number shown as thats done by Obsidian.

Ahh makes sense.

I could check if the name starts with a number and remove it in the name.

This would be much welcomed. 👍

Alternativly with the next release there will be an option to use bulletlists instead of the numbers, would that be helpfull?

Yes, this would be very helpful. I am using this right now, thanks. Just a small minor cosmetic feature request if possible. Is there any way to make the bullets invisible/transparent for folders? This would come in handy for users who want to preserve their own numbering as shown in my screenshot below. Right now it works but looks a bit strange if there is a bullet and number prefix. So if we have the option to make the bullet invisible in the settings it would look a bit cleaner.

image

qazero commented 1 year ago

Just implemented #10 maybe that could help you

Hmm I haven't had much luck with the plugin mentioned in #10. I opened an issue on the developer's Github: https://github.com/snezhig/obsidian-front-matter-title/issues/111

Have you gotten it to work? Not sure if your use-case is different as the one mentioned in my issue linked above.