Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE REQUEST: Preserve Folder Numbering Prefix #44

Open
qazero opened this issue May 3, 2023 · 8 comments
Open

FEATURE REQUEST: Preserve Folder Numbering Prefix #44

qazero opened this issue May 3, 2023 · 8 comments

Comments

@qazero
Copy link

qazero commented May 3, 2023

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
Copy link
Owner

turulix commented May 3, 2023

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
Copy link
Owner

turulix commented May 3, 2023

Just implemented #10 maybe that could help you

@qazero
Copy link
Author

qazero commented May 3, 2023

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
Copy link
Author

qazero commented May 3, 2023

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
Copy link
Author

qazero commented May 3, 2023

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

@turulix
Copy link
Owner

turulix commented May 4, 2023

Me being stupid was the issue xD

@qazero
Copy link
Author

qazero commented May 4, 2023

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
Copy link
Author

qazero commented May 4, 2023

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: snezhig/obsidian-front-matter-title#111

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

@qazero qazero changed the title Preserve Folder Numbering Prefix FEATURE REQUEST: Preserve Folder Numbering Prefix May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants