File Explorer Custom Sort

we need this

1 Like

Iā€™d love for the file explorer to allow custom sort of the folders. Reading the description of this feature request thread, it looks like he is talking about the files - not the folders. But I saw re-directs to this feature request where people had created some topics that were related to this one so Iā€™m mentioning it here. I know Iā€™m not the only one who wants to be able to decide the order of files in a custom way (via drag and drop) rather than like alphanumeric etc. because currently I end up with less frequent folders at the top and important ones in the bottom etc. I want to be able to arrange them. Iā€™ve seen people name their folders with a numerical prefix in order to achieve custom control over sort order of folders. Firstly, thatā€™s an unsightly kludge and secondly - if I change my mind later, to resort the folder I have to rename it (say from ā€˜03-templatesā€™ to ā€˜06-templatesā€™) which will mess with what some of my extensions are looking for. There is also a plugin that uses a file to be manually configured to achieve custom sort order (Custom File Explorer sorting) but it has a peculiar conflict with another plugin, so I disabled it (also trying to figure out how to contact the pluginā€™s author - havenā€™t found out how yet). Anyway - I would LOVE this feature. VERY MUCH! thanks

4 Likes

Hi @faizoro

regarding your message about Custom File Explorer sorting plugin, you mentioned some peculiar conflict with some another plugin. Iā€™m the author of the Custom File Explorer sorting plugin and Iā€™d like to help with the ā€˜peculiar conflictā€™ whatever it is. Could you please provide more details?

Either via private direct messages on forum (Iā€™ve contacted you that way) or in the thread on the forum here, or maybe you can create a new issue in github (Issues Ā· SebastianMC/obsidian-custom-sort Ā· GitHub), whatever is most convenient to you.

Not having any such reports of conflict Iā€™m unable to help :slight_smile:

2 Likes

thanks " [NothingIsLost]"
as the developer mentioned in new version after selecting ā€œcustomā€ from ā€œchange sort orderā€ > a new icon will add next to the ā€œchange sort orderā€ and with enabling it you can start reordering the list.

thank you man @NothingIsLost this is great plugin but it hasnā€™t been recognized by many people :ok_hand:

1 Like

@B-C Thank you !

@NothingIsLost i LOVE you mate! thanks a lot !

I canā€™t get drag and drop re-ordering to work with Bartender at all.

@robertandrews

Click the ā€œUp-Down Arrowā€ and select ā€œCustomā€:
image

Now you see ā€œa hamburgerā€ right to the ā€œUp-Down Arrowā€. Click it to lighlight it like in the picture:
image

Click and Move any file in the folder view to move position inside the same folder. This position is persisted.

2 Likes

Ah - silly me. Thanks.

Still care about this heading into 2023.

4 Likes

+1

Seeing as Obsidian functions as a form of mental map (hashes, tags, etc.), I think it is reasonable to expect that users may wish to also arrange files and folders in custom lists, corresponding to their own internal mental map of file and idea relations, just as someone would arrange papers or notes on their physical desk, or books in their study.

Currently, there is not even a somewhat vetted[sic] plugin for the addition of this functionality in the Community Plugins list (insofar as I have been able to discover, that is).

Yes, I have used Bartender (after reviewing the code myself), though users must have to do this personally, followed by manual installation or via BRAT, all the while being fully cognizant of the dangers of running plugins with Obsidianā€™s security[sic] model. Expecting users to, for example, flatseal Obsidian, followed by installing not only a community plugin, but rather a beta plugin outside of the Community Plugins list, with the goal of merely arranging files in a drag and drop manner, seems, quite frankly, more than a tad ridiculous. Though I recognize the current userbase of Obsidian comprises power users, this seems excessive (notwithstanding that power users is not a subset of programmers).

Take any major file editor, from Sublime to Notepad++, and you are able to drag the order of files and topics as you see fit (which will persist when you reopen the app). Even within Notion, you can drag and reorder your files manually.

It makes me curious, is there a strange backend issue preventing this functionality from being implemented in the mainline distribution?

Mind you, this is by no means intended as a criticism or indictment, but rather as a puzzling thing that I have encountered and do not fully understand. I appreciate all the hard work the devs, community, plugin developers, et al. have put into this project thusfar. Apologies if the rationale has been stated elsewhere, and my search capabilities have failed me.

5 Likes

Addendum (as post edits apparently are not possible after the elapse of 10 minutes): A workaround that I recently discovered earlier in this thread does indeed work, namely: Starred files can be manually rearranged. Thus, the ability to rearrange within the window for Unstarred notes appears as though it should be trivial to implement.

Regardless, in the interim, a workaround for those wishing to rearrange files manually without resorting to using plugins, is to simply Star all of your files. You may then rearrange them and access them through the Star sidepanel. The custom manual order persists between re-instantiations.

Note that this does not work for folders, as they cannot be Starred.

3 Likes

Thank you!

Really need this feature, as I did in OneNote

2 Likes

I recently discovered a plugin called MAKE.md that offers custom sorting of files and folders, as well as other features. It includes a ā€œSpacesā€ function which might enable users to get rid of extra vaults, if they are using any, and do all their work within one vault while still maintaining the separation between separate groups of folders and notes. Iā€™ve only experimented with it for a few minutes so far, but it looks very promising!

4 Likes

Wow, almost 3 years and this fundamental feature is still not implemented. I discovered this severe lack of feature after 5 minutes of testing. Did not expect it after reading so much praise about this application. Also non of Youtube videos that lead me to Obsidian mentioned this problem.

2 Likes

It is pretty funny that the topics on the Obsidian help page are sorted alphabetically, and starts with ā€œAdvanced Topicsā€. It seems like the developers of this application do not appreciate the concept of putting things in a logical order. Maybe that is the main issue.

(First, I voted for this too. I think itā€™s an essential idea. Iā€™m not disagreeing that this is a valuable idea.)

Thatā€™s a fair point that it is ironic that Advanced Topics shows up first. But itā€™s uncharitable to say thatā€™s not logical. There are many different uses of Obsidian. One of the main ways is as a non-linear network of notes, graph-style and wiki-style. It isnā€™t designed to impose linear structure. Though there are plugins that help with that, as mentioned above.

  • ā€œDaily notesā€ and ā€œUnique note creatorā€ makes notes in chronological sequence.
  • ā€œCustom File Explorer sortingā€ has manual and automatic sorting options.
  • Make.md has features for collections and sorting.
  • Longform helps with novels and other long form writing.
  • MOC Maps of Content is a way that people create their own logical structure.
  • Johnny Decimal is a common way people use index numbers to organize.
  • etc.

So youā€™re hardly lacking in options.

1 Like

No disrespect meant, but these options, for me, range from not useful to completely useless. Sooner or later, in my humble opinion, Obsidian has to address this lack of sorting request with a Core Plugin and not some Rube Goldberg monstrosity of a Community plugin.

4 Likes

I relatively simple way they could implement this, for people that feel they want it, is to have an option in the settings. When enabled it should work like this:

  1. If you create a note or folder say ā€œFoo Barā€, the actual name of the file or folder is NNN_Foo Bar, where NNN is an integer, like 026.
  2. When you rearange things this number prefix is updated on the files/folder. Might need to update multiple files, yes. I donā€™t think that is a slow operation.
  3. The actual number prefix is stripped when displaying in the Obsidan file browser.

This way the files and folder are in the sorted order even in the actual file system, and syncing with git or the official sync should propagate the sort order without problem. And no additional meta data needs to be saved or synced.

Maybe a plugin can implement this method, I donā€™t know.

How did you get this to work? Is this a plug-in?

Thanks!