decaf-dev / obsidian-vault-explorer

Explore your Obsidian vault in visual format
https://vaultexplorer.com
MIT License
37 stars 1 forks source link

[FR] Random Sorting? #77

Open Moyf opened 3 weeks ago

Moyf commented 3 weeks ago

image

I'm not quite sure, I just happened to think of it so I thought I'd share this idea first. Maybe add a "random sort" (and limit the maximum number of notes), so we can quickly review some random notes from our vault?

GIMME SOME CHAOS HAHA😈

decaf-dev commented 3 weeks ago

That's an interesting idea. When you say limit the maximum number of notes, how many are you thinking?

I am thinking that having a dedicated view for this may be better. The random sort wouldn't be dependent on any other filters would it?

Moyf commented 3 weeks ago

That's an interesting idea. When you say limit the maximum number of notes, how many are you thinking?

I am thinking that having a dedicated view for this may be better. The random sort wouldn't be dependent on any other filters would it?

Well, when I say limit the maximum number of note I was concerning 'bout the performance. Like.. doing random sorting for All the notes might be perform-consuming.. or not? If the performance is not a problem, then I think the Page size would be enough. image

For example, I have 4k+ notes, and when I Random Sort just show me 50 (page size) of 'em.


And I also agree that seperating the Random function from the sorting would be better!

I hope to keep the function of the filter. Because there are many notes, some limits would make the result much more useful. And the support for filters just provides more options, which we can always choose not to enable.

One (not very sufficient) design I can think of is to add a random button, which, when clicked, will randomly display the current filtering results, and clicking it again will randomize it again. image

But the final design depends on you! ; )