Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

[Feature Request] Sorting Children Nodes by text (by date?) #98

Open
andrewgxyz opened this issue Mar 17, 2023 · 0 comments
Open

[Feature Request] Sorting Children Nodes by text (by date?) #98

andrewgxyz opened this issue Mar 17, 2023 · 0 comments

Comments

@andrewgxyz
Copy link

Hey I can probably work on this if this hasn't come up yet? I would like so build the functionality to have a binding to be able to sort children nodes based on where the cursor is at on the tree.

Idk would find the idea nice, if I'm understanding the source code right how the tree is structure is by the mind.json file, then I would just have to manipulate the children of the selected parent then update the file with the new order?

If had to brainstorm it, we could likely use s and S for whatever ends up being ascending and descending order by text debating in my head if a sort by date of in this case the uid seems to represent the timestamp. Also would we want to sort nodes with children on top of nodes that don't have any children by default?

Again, would be nice if I could work on this if anybody wants it, would be a bit of time of course, my experience with Lua is kinda limited not too sure how Lua handles JSON and how their sorting functions if any work out. but I'm sure I can do a decent job 👍

Loving the project and would like to contribute where I can!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant