Skip to content

Commit f1bced1

Browse files
authored
Merge pull request #133 from Andrei-Sager/back-to-top
Added "Back To Top" internal links to advanced-README.md.
2 parents 8d9ccdd + dfc6022 commit f1bced1

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

docs/advanced-README.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Take full control of the order of your notes and folders:
2424
- folders not set up for the custom order remain on the standard Obsidian sorting
2525
- support for imposing inheritance of order specifications with flexible exclusion and overriding logic
2626

27-
## Table of contents
27+
## Table of Contents
2828

2929
- [TL;DR Usage](#tldr-usage)
3030
- [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
104104
The [ribbon icon](#ribbon_icon) acts also as the visual indicator of the current state of the plugin - see
105105
the [ribbon icon](#ribbon_icon) section for details
106106

107+
[🔼 Back To Top](#table-of-contents)
108+
107109
### Simple case 1: in root folder sort entries alphabetically treating folders and files equally
108110

109111
The specified rule is to sort items alphabetically in the root folder of the vault
@@ -129,6 +131,8 @@ which can result in:
129131

130132
![Simplest example](https://github.com/SebastianMC/obsidian-custom-sort/blob/master/docs/svg/simplest-example.svg)
131133

134+
[🔼 Back To Top](#table-of-contents)
135+
132136
### Simple case 2: impose manual order of some items in root folder
133137

134138
The specification here lists items (files and folders) by name in the desired order
@@ -151,6 +155,8 @@ produces:
151155

152156
![Simplest example](https://github.com/SebastianMC/obsidian-custom-sort/blob/master/docs/svg/simplest-example-2.svg)
153157

158+
[🔼 Back To Top](#table-of-contents)
159+
154160
### Example 3: In root folder, let files go first and folders get pushed to the bottom
155161

156162
Files go first, sorted by modification date descending (newest note in the top)
@@ -179,6 +185,8 @@ will order items as:
179185

180186
![Files go first example](https://github.com/SebastianMC/obsidian-custom-sort/blob/master/docs/svg/files-go-first.svg)
181187

188+
[🔼 Back To Top](#table-of-contents)
189+
182190
### Example 4: In root folder, pin a focus note, then Inbox folder, and push archive to the bottom
183191

184192
The specification below says:
@@ -215,6 +223,8 @@ folder which contains the note with the specification_.
215223
> If the `target-folder:` line is omitted, the specification will be applied to the parent folder of the note, which has
216224
> the same effect as `target-folder: .`
217225
226+
[🔼 Back To Top](#table-of-contents)
227+
218228
### Example 5: P.A.R.A. method example
219229

220230
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:
239249

240250
![Result of the example](https://github.com/SebastianMC/obsidian-custom-sort/blob/master/docs/svg/p_a_r_a.svg)
241251

252+
[🔼 Back To Top](#table-of-contents)
253+
242254
### Example 6: P.A.R.A. example with smart syntax
243255

244256
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:
263275
REMARK: the wildcard expression '...' can be used only once per line
264276
```
265277

278+
[🔼 Back To Top](#table-of-contents)
279+
266280
### Example 7: Apply the same sorting rules to two folders
267281

268282
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: |
279293

280294
No visualization for this example needed
281295

296+
[🔼 Back To Top](#table-of-contents)
297+
282298
### Example 8: Specify rules for multiple folders
283299

284300
The specification can contain rules and orders for more than one folder
@@ -305,6 +321,8 @@ will have the effect of:
305321

306322
![Result of the example](https://github.com/SebastianMC/obsidian-custom-sort/blob/master/docs/svg/multi-folder.svg)
307323

324+
[🔼 Back To Top](#table-of-contents)
325+
308326
### Example 9: Sort by numerical suffix
309327

310328
This is interesting.
@@ -332,6 +350,8 @@ The effect is:
332350

333351
![Order by numerical suffix](https://github.com/SebastianMC/obsidian-custom-sort/blob/master/docs/svg/by-suffix.svg)
334352

353+
[🔼 Back To Top](#table-of-contents)
354+
335355
### Example 10: Sample book structure with Roman numbered chapters
336356

337357
Roman numbers are also supported. This example uses the `\R+` token in connection with the wildcard `...`
@@ -354,6 +374,8 @@ it gives:
354374

355375
![Book - Roman chapters](https://github.com/SebastianMC/obsidian-custom-sort/blob/master/docs/svg/roman-chapters.svg)
356376

377+
[🔼 Back To Top](#table-of-contents)
378+
357379
### Example 11: Sample book structure with compound Roman number suffixes
358380

359381
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:
374396

375397
![Book - Roman compound suffixes](https://github.com/SebastianMC/obsidian-custom-sort/blob/master/docs/svg/roman-suffix.svg)
376398

399+
[🔼 Back To Top](#table-of-contents)
400+
377401
### Example 12: Apply same sorting to all folders in the vault
378402

379403
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: |
393417
---
394418
```
395419

420+
[🔼 Back To Top](#table-of-contents)
421+
396422
### Example 13: Sorting rules inheritance by subfolders
397423

398424
A more advanced example showing finetuned options of manipulating of sorting rules inheritance:
@@ -429,6 +455,8 @@ sorting-spec: |
429455
---
430456
```
431457

458+
[🔼 Back To Top](#table-of-contents)
459+
432460
### Example 14: Grouping and sorting by metadata value
433461

434462
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
509537
> The `with-metadata:` keyword can be used with other specifiers like `/:files with-metadata: Pages` or `/folders with-metadata: Pages`
510538
> If the metadata name is omitted, the default `sort-index-value` metadata name is assumed.
511539
540+
[🔼 Back To Top](#table-of-contents)
541+
512542
## Alphabetical, Natural and True Alphabetical sorting orders
513543

514544
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: |
538568
< true a-z
539569
```
540570

571+
[🔼 Back To Top](#table-of-contents)
572+
541573
## Location of sorting specification YAML entry
542574

543575
You can keep the custom sorting specifications in any of the following locations (or in all of them):
@@ -566,6 +598,8 @@ reference.
566598

567599
<a name="ribbon_icon"></a>
568600

601+
[🔼 Back To Top](#table-of-contents)
602+
569603
## Ribbon icon
570604

571605
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:
600634
- Click to enable and apply custom sorting or to disable custom sorting
601635
- To get notified about custom sort plugin state, enable the mobile-specific notifications in plugin settings
602636

637+
[🔼 Back To Top](#table-of-contents)
638+
603639
## Installing the plugin
604640

605641
### From the official Obsidian Community Plugins page
@@ -608,6 +644,8 @@ The plugin could and should be installed from the official Obsidian Community Pl
608644
or directly in the Obsidian app itself.
609645
Search the plugin by its name 'CUSTOM FILE EXPLORER SORTING'
610646

647+
[🔼 Back To Top](#table-of-contents)
648+
611649
### Installing the plugin using BRAT
612650

613651
> NOTE
@@ -625,6 +663,8 @@ Search the plugin by its name 'CUSTOM FILE EXPLORER SORTING'
625663
3. Specify this repository: `SebastianMC/obsidian-custom-sort`
626664
3. Enable the `Custom File Explorer sorting` plugin (`Settings` -> `Community Plugins`)
627665

666+
[🔼 Back To Top](#table-of-contents)
667+
628668
### Manually installing the plugin
629669

630670
> NOTE
@@ -644,8 +684,11 @@ Search the plugin by its name 'CUSTOM FILE EXPLORER SORTING'
644684
> Note: The `.obsidian` folder may be hidden.
645685
> On macOS, you should be able to press Command+Shift+Dot to show the folder in Finder.
646686
687+
[🔼 Back To Top](#table-of-contents)
688+
647689
## Credits
648690

649691
Thanks to [Nothingislost](https://github.com/nothingislost) for the monkey-patching ideas of File Explorer
650692
in [obsidian-bartender](https://github.com/nothingislost/obsidian-bartender)
651693

694+
[🔼 Back To Top](#table-of-contents)

0 commit comments

Comments
 (0)