You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced-README.md
+44-1Lines changed: 44 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Take full control of the order of your notes and folders:
24
24
- folders not set up for the custom order remain on the standard Obsidian sorting
25
25
- support for imposing inheritance of order specifications with flexible exclusion and overriding logic
26
26
27
-
## Table of contents
27
+
## Table of Contents
28
28
29
29
-[TL;DR Usage](#tldr-usage)
30
30
-[Simple case 1: in root folder sort entries alphabetically treating folders and files equally](#simple-case-1-in-root-folder-sort-entries-alphabetically-treating-folders-and-files-equally)
@@ -104,6 +104,8 @@ Click the [ribbon icon](#ribbon_icon) again to disable custom sorting and switch
104
104
The [ribbon icon](#ribbon_icon) acts also as the visual indicator of the current state of the plugin - see
105
105
the [ribbon icon](#ribbon_icon) section for details
106
106
107
+
[🔼 Back To Top](#table-of-contents)
108
+
107
109
### Simple case 1: in root folder sort entries alphabetically treating folders and files equally
108
110
109
111
The specified rule is to sort items alphabetically in the root folder of the vault
### Example 3: In root folder, let files go first and folders get pushed to the bottom
155
161
156
162
Files go first, sorted by modification date descending (newest note in the top)
@@ -179,6 +185,8 @@ will order items as:
179
185
180
186

181
187
188
+
[🔼 Back To Top](#table-of-contents)
189
+
182
190
### Example 4: In root folder, pin a focus note, then Inbox folder, and push archive to the bottom
183
191
184
192
The specification below says:
@@ -215,6 +223,8 @@ folder which contains the note with the specification_.
215
223
> If the `target-folder:` line is omitted, the specification will be applied to the parent folder of the note, which has
216
224
> the same effect as `target-folder: .`
217
225
226
+
[🔼 Back To Top](#table-of-contents)
227
+
218
228
### Example 5: P.A.R.A. method example
219
229
220
230
The P.A.R.A. system for organizing digital information is based on the four specifically named folders ordered as in the
@@ -239,6 +249,8 @@ which will have the effect of:
239
249
240
250

241
251
252
+
[🔼 Back To Top](#table-of-contents)
253
+
242
254
### Example 6: P.A.R.A. example with smart syntax
243
255
244
256
Instead of listing full names of folders or notes, you can use the prefix or suffix of prefix+suffix notation with the
@@ -263,6 +275,8 @@ It will give exactly the same order as in previous example:
263
275
REMARK: the wildcard expression '...' can be used only once per line
264
276
```
265
277
278
+
[🔼 Back To Top](#table-of-contents)
279
+
266
280
### Example 7: Apply the same sorting rules to two folders
267
281
268
282
Let's tell a few folders to sort their child notes and child folders by created date reverse order (newer go first)
@@ -279,6 +293,8 @@ sorting-spec: |
279
293
280
294
No visualization for this example needed
281
295
296
+
[🔼 Back To Top](#table-of-contents)
297
+
282
298
### Example 8: Specify rules for multiple folders
283
299
284
300
The specification can contain rules and orders for more than one folder
@@ -305,6 +321,8 @@ will have the effect of:
305
321
306
322

307
323
324
+
[🔼 Back To Top](#table-of-contents)
325
+
308
326
### Example 9: Sort by numerical suffix
309
327
310
328
This is interesting.
@@ -332,6 +350,8 @@ The effect is:
332
350
333
351

334
352
353
+
[🔼 Back To Top](#table-of-contents)
354
+
335
355
### Example 10: Sample book structure with Roman numbered chapters
336
356
337
357
Roman numbers are also supported. This example uses the `\R+` token in connection with the wildcard `...`
@@ -354,6 +374,8 @@ it gives:
354
374
355
375

356
376
377
+
[🔼 Back To Top](#table-of-contents)
378
+
357
379
### Example 11: Sample book structure with compound Roman number suffixes
358
380
359
381
Roman compound numbers are also supported. This example uses the `\.R+` token (a Roman compound number with '.' as separator) in connection with the wildcard `...` (and the important SPACE inbetween).
@@ -374,6 +396,8 @@ the result is:
374
396
375
397

376
398
399
+
[🔼 Back To Top](#table-of-contents)
400
+
377
401
### Example 12: Apply same sorting to all folders in the vault
378
402
379
403
Apply the same advanced modified date sorting to all folders in the Vault. The advanced modified sorting treats the folders
@@ -393,6 +417,8 @@ sorting-spec: |
393
417
---
394
418
```
395
419
420
+
[🔼 Back To Top](#table-of-contents)
421
+
396
422
### Example 13: Sorting rules inheritance by subfolders
397
423
398
424
A more advanced example showing finetuned options of manipulating of sorting rules inheritance:
@@ -429,6 +455,8 @@ sorting-spec: |
429
455
---
430
456
```
431
457
458
+
[🔼 Back To Top](#table-of-contents)
459
+
432
460
### Example 14: Grouping and sorting by metadata value
433
461
434
462
Notes can contain metadata, let me use the example inspired by the [Feature Request #23](https://github.com/SebastianMC/obsidian-custom-sort/issues/23).
@@ -509,6 +537,8 @@ Then the remaining notes (not having the `Pages` metadata) are sorted by modific
509
537
> The `with-metadata:` keyword can be used with other specifiers like `/:files with-metadata: Pages` or `/folders with-metadata: Pages`
510
538
> If the metadata name is omitted, the default `sort-index-value` metadata name is assumed.
511
539
540
+
[🔼 Back To Top](#table-of-contents)
541
+
512
542
## Alphabetical, Natural and True Alphabetical sorting orders
513
543
514
544
The 'A-Z' sorting (visible in Obsidian UI of file explorer) at some point before the 1.0.0 release of Obsidian actually became the so-called 'natural' sort order.
@@ -538,6 +568,8 @@ sorting-spec: |
538
568
< true a-z
539
569
```
540
570
571
+
[🔼 Back To Top](#table-of-contents)
572
+
541
573
## Location of sorting specification YAML entry
542
574
543
575
You can keep the custom sorting specifications in any of the following locations (or in all of them):
@@ -566,6 +598,8 @@ reference.
566
598
567
599
<aname="ribbon_icon"></a>
568
600
601
+
[🔼 Back To Top](#table-of-contents)
602
+
569
603
## Ribbon icon
570
604
571
605
Click the ribbon icon to toggle the plugin between enabled and suspended states.
@@ -600,6 +634,8 @@ On small-screen mobile devices (phones) the icon is static:
600
634
- Click to enable and apply custom sorting or to disable custom sorting
601
635
- To get notified about custom sort plugin state, enable the mobile-specific notifications in plugin settings
602
636
637
+
[🔼 Back To Top](#table-of-contents)
638
+
603
639
## Installing the plugin
604
640
605
641
### From the official Obsidian Community Plugins page
@@ -608,6 +644,8 @@ The plugin could and should be installed from the official Obsidian Community Pl
608
644
or directly in the Obsidian app itself.
609
645
Search the plugin by its name 'CUSTOM FILE EXPLORER SORTING'
610
646
647
+
[🔼 Back To Top](#table-of-contents)
648
+
611
649
### Installing the plugin using BRAT
612
650
613
651
> NOTE
@@ -625,6 +663,8 @@ Search the plugin by its name 'CUSTOM FILE EXPLORER SORTING'
625
663
3. Specify this repository: `SebastianMC/obsidian-custom-sort`
626
664
3. Enable the `Custom File Explorer sorting` plugin (`Settings` -> `Community Plugins`)
627
665
666
+
[🔼 Back To Top](#table-of-contents)
667
+
628
668
### Manually installing the plugin
629
669
630
670
> NOTE
@@ -644,8 +684,11 @@ Search the plugin by its name 'CUSTOM FILE EXPLORER SORTING'
644
684
> Note: The `.obsidian` folder may be hidden.
645
685
> On macOS, you should be able to press Command+Shift+Dot to show the folder in Finder.
646
686
687
+
[🔼 Back To Top](#table-of-contents)
688
+
647
689
## Credits
648
690
649
691
Thanks to [Nothingislost](https://github.com/nothingislost) for the monkey-patching ideas of File Explorer
650
692
in [obsidian-bartender](https://github.com/nothingislost/obsidian-bartender)
0 commit comments