Order List

approved

by Henry Gustafson

Add 'Order selected list' command to take the selected list and order it by the number at the end.

6 stars3,980 downloadsUpdated 3y agoMIT
View on GitHub

Order List

This plugin for Obsidian adds an "Order selected list" command. This will take the selected list and order it by the number at the end.

How to configure

Assign a hotkey to "Order selected list" command.

How to use

  • Select any list in the editor, with or without bullet points.
  • Run the command "Order selected list" from the command palette (or the hotkey you assigned).

Examples

Reorder list without bullet points:

replace blinds 10
clean my room 5
buy a new shelf 6
get new boxes 7

becomes

clean my room 5
buy a new shelf 6
get new boxes 7
replace blinds 10

Reorder list with * bullet points:

* replace blinds 10
* get new boxes 7
* clean my room 5
* buy a new shelf 6

becomes

* clean my room 5
* buy a new shelf 6
* get new boxes 7
* replace blinds 10

If there are sub-items, they will be moved along with the top level item:

- replace blinds 7/2
- buy a new shelf 6/100
	- sub-item
- get new boxes 4/2
- clean my room 5/6
	- test
	- second thing

becomes

- buy a new shelf 6/100
	- sub-item
- clean my room 5/6
	- test
	- second thing
- get new boxes 4/2
- replace blinds 7/2

Note that the plugin also ordered the properly even when the numbers at the end are not integers.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.