2024-08-02 22:47:36 +08:00
#meta
2024-01-21 02:16:07 +08:00
We would like to keep our space clean, these are some tools that help you do that.
2024-08-24 18:35:09 +08:00
# Aspiring pages
This shows all page links that link to a page that does not (yet) exist. These could be broken links or just pages _aspiring_ to be created.
2024-01-21 02:16:07 +08:00
```template
2024-08-24 18:35:09 +08:00
{{#let @brokenLinks = {aspiring-page}}}
2024-02-03 02:19:07 +08:00
{{#if @brokenLinks }}
{{#each @brokenLinks }}
2024-08-24 18:35:09 +08:00
* [[{{ref}}]]: broken link to [[{{name}}]]
2024-02-03 02:19:07 +08:00
{{/each}}
{{else}}
2024-08-24 18:35:09 +08:00
No aspiring pages, all good!
2024-02-03 02:19:07 +08:00
{{/if}}
{{/let}}
2024-01-21 02:16:07 +08:00
```
# Conflict copies
These are pages that have conflicted copies (as a result of sync), have a look at them as well as their original (non-conflicted versions) and decide which one to keep.
```template
2024-02-03 02:19:07 +08:00
{{#let @conflictPages = {
page where name =~ /\.conflicted\.\d+$/
select name as conflictedName,
replace(name, /\.conflicted\.\d+$/, "") as cleanName
}}}
{{#if @conflictPages }}
{{#each @conflictPages }}
* [[{{cleanName}}]]: confict copy [[{{conflictedName}}]]
{{/each}}
{{else}}
No conflicting pages!
{{/if}}
{{/let}}
2024-01-21 02:16:07 +08:00
```