obsidian-sort-and-permute-lines
obsidian-sort-and-permute-lines copied to clipboard
Feature request: Allow users to create custom sorting commands in a settings menu.
I noticed that the plugin has a bunch of different commands for sorting alphabetically, recursively, and by length. However this doesn't cover all the different things a user would want to do. It would be ridiculous to hardcode commands for every single possible combination, so instead the plugin should have a settings menu where users can create their own sorting commands and select which options they want:
Button: Create a new command
Command
(the user can set the command name by selecting it and it would show a text editing box or field) Button: delete command
- [ ] Sort by checkboxes
- [ ] Sort alphabetically
- [ ] Sort by name length
- [ ] Sort recursively
Those would be on off switches. Sorting alphabetically and name length may be conflicting, so you could add a note about that above the list of commands, and gray out one out if the other is selected. Users should be able to rename commands without losing the keybinds for them, I know there's one plugin that does that.
I really like the idea and I thought about this as well, but I won't find the time for that in the near future.
OK but why not keep this open? I might look into making plugin sometime, implement this myself, and open a PR for it.