Hey, I'm a student from Germany building apps with Flutter and plugins for Obsidian.
If you want to support me you can consider:
Sort and Permute lines in whole file or selection.
Great plugin, thanks for writing.
I'm a bit of a list fan, and end up writing bulleted lists quite often. If they have indentations, the indented lines get sorted with the list, instead of separately. e.g.
- item b
- item d
- item a
- item e
- item c
Get sorted as
- item a
- item b
- item c
- item d
- item e
instead of:
- item b
- item c
- item e
- item d
- item a
I think for most folks, an indentation is attached to the parent item, and would mean to skip the sorting of the parent, but possibly sort within that particular level.
Right now when I sort a note it just sort them not considering heading s and outline of the note. Can you please make it to sort inside the structure of the outline. I don't know why someone wants to sort stuff outside the outline
I would love to see this be able to sort headings and their contents.
So that a list like:
Would be transformed into a list like this:
It would be nice if, in a list, children bullet points were not separated from their parent bullet point.
For example, currently the list:
- qux
- cccc
- aaaa
- zzze
- baba
- bbb
- vvv
- foo
sorts alphabetically into:
- aaaa
- baba
- bbb
- cccc
- foo
- qux
- vvv
- zzze
But if child-parent bullet point relationships are preserved, the list would be instead sorted to
- bbb
- vvv
- cccc
- aaaa
- baba
- zzze
- foo
- qux
This may be more difficult to implement, but I would greatly appreciate such a feature since most of the time when I'm using the plugin to sort my to-do list the architecture of my list becomes broken. Thanks!
- [ ]
and - [x]
- [x]
)What I described is the way sorting works in VS Code.
The functionality achieved in #14 amplifies this plugin's usefulness by an order of magnitude. Readme.md should be updated to reflect this important enhancement.
Sub bullet points should be left under the same parent bullets.
Also, you should make a separate command to sort alphabetically and recursively, where sub bullet points are sorted alphabetically but stay under the same bullet point.
Hi, just downloaded this to use in my notes index, but noticed that the plugin grabs the original name of the linked note instead of the alias being used.
Would it be possible to make it ignore the original name and sort based on the alias?
Thanks!
I recently downloaded your Obsidian plugin in the need to sort some long lists with checkboxes (you got me those where shopping lists :D)
so i selected the whole list and pressed ctrl+p to sort the List alpabetically + checkboxes.
first it messed up my whole document, soine i did not know that i had to elect the specific list first lul
after that i ctrl-z tted everything and selected the list i wanted to have sorted.
it sorted the list perfectly expect the items which contained a "Z" or "z" on its first letter, those where placed everytime i wanted to sort the list - wrether or not having been checked on the end of the list, while every other item was sorted perfecly
but: good news!!
this is the only bug i found so far ;)
Thank you anyways for creating such a useful plugin!!!
Best regrets
I'm trying to reverse my a long list but it also reverses the sub-bullet points. Is it possible to add a sorting method that maintains bullet points under a given line?
I noticed that sort current list alphabetically
command is useful for bullet list but not ordered list. In my case I wanna sort the content without list number in front of it. But the command would sort the list by list number. Actually outliner
plugin would modify the list number automatically.
If it's not easy to sort contents without list number, I think you can remove list number first and add them after sorting the content. Thank you for your effort. 😄
Let's say I have this list
And when I check off an item on the list, it automatically goes to the bottom, and any checked boxes that aren't on the bottom go there. There could be settings in the plugin to automatically sort alphabetically and or by checkbox status, recursively or non recursively.
There could also be a setting to check for frontmatter, and have the plugin be opt in or opt out on certain pages. Like, if there was a setting on to automatically sort, there could be a frontmatter like this:
---
disable-sorting: true
---
and vice versa.
[feature request] Add ability to highlight and remove duplicate lines
This would be tremendously helpful.
sometimes a-z or A-Z are better sorted before 01-9, thanks
Thanks for your very useful plugin.
I noticed today that sorting of lists of wikilinks
[[Name A]]
[[Source B]]
[[Note C]]
Doesn't work. Would come in handy for TOC's and MOC's.
Thanks, Jan
I have a list of tasks with items complete and incomplete [x] and [ ]
. This scenario resolves to complete tasks being sent to the bottom of the page instead of being properly organized alphabetically. Here is an example of list after being sorted alphabetically:
- [ ] Smith, Linda Tuhiwai...
- [ ] Tzul, Gladys Tzul...
- [x] Emiliani, Maria E. Posse...
- [x] Hawkes, Gina Louise, David Pollock, Barry Judd, Peter Phipps, and Elinor Assoulin...
- [ ] Younging, Gregory...
This happens if strict markdown style is applied to create new lines. E.g.:
Sort the lines below in alphabetic order
c b a
and we get
a b c
Maybe an option could be provided to determine the behavior of the extension.
Sorting works great, but automatically removes lines if my text is double spaced. How to stop this please.
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
(the user can set the command name by selecting it and it would show a text editing box or field)
Button: delete command
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.
As a user i would love to be able to press a command and have the front matter be sorted automatically.
Found a strange bug, with the sort list function. Obsidian 0.13.6 / plugin ver 0.3.0
It depends on where the cursor is when you trigger the sort, so I am guessing it's related to the function below, but I can't quite wrap my head around where the bug is.
obsidian-sort-and-permute-lines/main.ts
Line 133 in 401e4c8
Example, try sorting this list with the cursor at the |
position:
- [ ] beta
- [x] acme
- [x] warren
- [ ] zelda
- [x] simon & garfunkel|
- [ ] davidoff
(hint: It works fine)
BUT, if you position the cursor here:
- [ ] beta|
- [x] acme
- [x] warren
- [ ] zelda
- [x] simon & garfunkel
- [ ] davidoff
and sort...
- [x] acme
- [ ] beta
- [ ] davidoff
- [x] simon & garfunkel
- [x] warren
- [ ] zeldadoff
(note the extra doff
chars at the final line)
When sorting with no lines selected, I think Metadata blocks should be ignored by default.
If making a list of stuff, bullet points can't do the job if the content is big and contain space , so we use headings for that, but right now there is not way to sort headings.
thanks
I mainly use the "sort current list alphabetically with checkboxes" command to sort checkbox lists by if they're checked or not. A command just for checkboxes would be very helpful.
I use 【sort heaings】,the headings are timestamp,I need the newest one at the front;
The original text looks like this
## 20231102-211458
some text11111111111111111
## 20231102-211822
some text2222222222222222
## 2023-11-02-214208
some text3333333333333333
I hope that after running the command【sort heaings】, it will become like this
## 2023-11-02-214208
some text3333333333333333
## 20231102-211822
some text2222222222222222
## 20231102-211458
some text11111111111111111
It would be nice if this plugin also worked on checkboxes.
Example:
- [ ] Sorted
- [ ] Lines
becomes
- [ ] Lines
- [ ] Sorted
Yes, sorting is missing, great work!
Ok, I can google it, but why not include the folowing text? That would make the instructions so much easier for novice users.
Press Ctrl+P (or Cmd+P on macOS) to open the Command palette.
(source: https://help.obsidian.md/Plugins/Command+palette )
I use this plugin to sort tasklists. I often enter tasks in this kind of form:
- [ ] Work out how to use #Obsidian sorting plug-in
- [ ] Document my #Obsidian task management process
It would be useful to sort by the tag in the task text so that all my #Obsidian tasks end up together. This would make tasks simpler to input and read much more naturally (the alternative is to put tags at the front, which requires a bit more thought about phrasing and slows down task input).
Additionally, if you could also support this with a "by checkbox" option then that would be great.
Thanks for a useful plugin!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.