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

Manually Sort Listings from FolderPage Plugin #1227

Closed
ExodosPavilion opened this issue Jun 20, 2024 · 1 comment
Closed

Manually Sort Listings from FolderPage Plugin #1227

ExodosPavilion opened this issue Jun 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ExodosPavilion
Copy link

Is your feature request related to a problem? Please describe.
There is no way to manually set the order for the files the FolderPage plugin will display in the index

Describe the solution you'd like
I would like it if the FolderPage plugin allowed us to set the order in which to display the files it finds. I don't mean sorting it such that its in alphabetical order or something. I mean being able to order it manually. (something weird like Part 3 then Part 7 and then Part 1 displayed in that order)

Describe alternatives you've considered
I don't understand coding enough to modify the FolderPage plugin or FolderContent.tsx.

Additional context
Maybe it can be something we set in the Frontmatter section of the index

---
title: Example Title
draft: false
order: ['Part 3.md', 'Part 7.md', 'Part 1.md']
---

or other relevant markdown files

---
title: Part 3
draft: false
page: 1
---

Personally I think the second option is better.

@ExodosPavilion ExodosPavilion added the enhancement New feature or request label Jun 20, 2024
@cmj2002
Copy link
Contributor

cmj2002 commented Jun 30, 2024

I also need this feature, but with a slight difference. I hope to be able to pass in a custom sorting function like Explorer to achieve this. Of course, you can implement manual sorting by writing specific custom sorting functions. I will soon submit a PR (and link it to this issue).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants