obsidian-sort-and-permute-lines icon indicating copy to clipboard operation
obsidian-sort-and-permute-lines copied to clipboard

Feature request: Allow users to create custom sorting commands in a settings menu.

Open YousufSSyed opened this issue 1 year ago • 2 comments

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.

YousufSSyed avatar Apr 19 '23 18:04 YousufSSyed

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.

Vinzent03 avatar Apr 27 '23 17:04 Vinzent03

OK but why not keep this open? I might look into making plugin sometime, implement this myself, and open a PR for it.

YousufSSyed avatar Apr 27 '23 17:04 YousufSSyed