I cant get the custom file and folder sorting plugin to work

This is the sortspec.md file I made

When I try to run this plugin from @SebastianMC I get the following error below. I’m clueless on how to setup this plugin. What do I need to do?

image

I’m not sure if I’m supposed to put anything into the box that says /inbox/sort like in the image below

Are your specifications in the frontmatter of sortspec.md? It seems like most of examples have placed them in the frontmatter, and that your example is in the main text.

Regards,
Holroy

2 Likes

This is the original sortspec.md


//

// A simple configuration for obsidian-custom-sort plugin

// (https://github.com/SebastianMC/obsidian-custom-sort)

// It causes the plugin to take over the control of the order of items in the root folder ('/') of the vault

// It explicitly sets the sorting to descending ('>') alphabetical ('a-z')

// Folders and files are treated equally by the plugin (by default) so expect them intermixed

// in the root vault folder after enabling the custom sort plugin

//

// To play with more examples go to https://github.com/SebastianMC/obsidian-custom-sort#readme


sorting-spec: |
target-folder: /
Projects
Areas
Responsibilities
Archive

And this is the version with the specifications at the top. Still nothing. Is this what you mean when you say putting specifications in the front matter of sortspec.md?

sorting-spec: |
target-folder: /
Projects
Areas
Responsibilities
Archive

//

// A simple configuration for obsidian-custom-sort plugin

// (https://github.com/SebastianMC/obsidian-custom-sort)

// It causes the plugin to take over the control of the order of items in the root folder ('/') of the vault

// It explicitly sets the sorting to descending ('>') alphabetical ('a-z')

// Folders and files are treated equally by the plugin (by default) so expect them intermixed

// in the root vault folder after enabling the custom sort plugin

//

// To play with more examples go to https://github.com/SebastianMC/obsidian-custom-sort#readme



1 Like

So it should look like this then, righ? If so I still can’t get it to work. I’m still getting this error

image

---
sorting-spec: |
target-folder: /
Projects
Areas
Responsibilities
Archive
---

//

// A simple configuration for obsidian-custom-sort plugin

// (https://github.com/SebastianMC/obsidian-custom-sort)

// It causes the plugin to take over the control of the order of items in the root folder ('/') of the vault

// It explicitly sets the sorting to descending ('>') alphabetical ('a-z')

// Folders and files are treated equally by the plugin (by default) so expect them intermixed

// in the root vault folder after enabling the custom sort plugin

//

// To play with more examples go to https://github.com/SebastianMC/obsidian-custom-sort#readme

You’re slowly getting there, but you need to take care and read the instruction text better, and preserve the examples as is, and not modify them as you’ve done here.

In particular, you need to respect the spaces in front of the various keywords. Spaces matter significantly to get it up and running.

Regards,
Holroy

1 Like

I’m still kind of lost. I made a recording of what I’m trying. Can you check this video out. Thanks

As @holroy already said, spaces matter! The example you have copied and pasted is referred to in this use case - here you can see the indentation (4 spaces, respectively).

---
sorting-spec: |
    target-folder: /
    < a-z
---

Thanks! I finally got it!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.