SebastianMC / obsidian-custom-sort

Take full control over the order and sorting of folders and notes in File Explorer in Obsidian
GNU General Public License v3.0
303 stars 23 forks source link

Feature request: alphabetic wildcard #67

Closed bszonye closed 1 year ago

bszonye commented 1 year ago

I like to organize my notes like books, with separate groups for front matter, main text, and back matter:

i. Foreword ii. Preface iii. Introduction 1. First main section 2. Second section 3. Third section A. First appendix B. Second appendix Attachments Diagrams Etc.

I'm currently using a sortspec with these patterns:

\R+. ...
\d+. ...
App. ...
%

I would prefer to replace the App. ... with \a+. ... so that I can shorten those to a single-letter abbreviation like the Roman & Arabic numerals.

SebastianMC commented 1 year ago

Hi @bszonye,

the newest release 1.7.1 adds support for two new sorting / grouping symbols (#67):

The sorting spec syntax extension example which you suggested should work as-is.

Note, that - same as for the Arabic (\d+) and Roman (\R+) numeral symbols - only one symbol per line is allowed in the sorting spec. In other words, the below example will raise an error complaining about too many sorting symbols in a single line:

  /folders \a+ \a+

At the same time, the example from your request should be fine:

  \a+. ...
bszonye commented 1 year ago

Awesome, thanks!