dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.68k stars 252 forks source link

Ignore file extension when sorting the files in the explorer #1584

Open emarthinsen opened 2 years ago

emarthinsen commented 2 years ago

Please select if your request is either something new or an enhancement

Please select the area your request applies to. (Multiple selections are possible)

Is your feature request related to a problem? Please describe

This isn't a problem, just some odd behavior. In the file Explorer, the filenames are sorted with the file extension as part of the name. In my case, I have some files that relate to a project. The are currently sorted like this:

proj.en.website.charter.md
proj.en.website.md
proj.en.website.scope.md

Describe the solution you'd like

I'd like sorting to ignore the extension. In this case, the files above would end up being sorted like this:

proj.en.website.md
proj.en.website.charter.md
proj.en.website.scope.md

Describe alternatives you've considered

It's workable as-is, just a bit suboptimal.

hikchoi commented 2 years ago

The file explorer is not a Dendron contributed feature.

I believe you can control how to sort this through explorer.sortOrder property in vscode.

Please do let us know once you resolve the issue.

emarthinsen commented 2 years ago

Thanks @hikchoi. I suspected that might be the case. Unfortunately, there is no option for explorer.sortOrder that would sort while ignoring the file extension. It's more of an annoyance than anything else, so I probably won't pursue this any further.