**BACKUP FILES BEFORE TRYING, especially fileClass**
Requires:
- Linter
- [obsidian-metadata](https://github.com/natelandau/obsidian-metadata)
- Some global search and replace with regex capabilities (I use VSCode)
[[Obsidian Linter]] fixes tags issue, turns tags into multi-line options
Options you need to change
- Change "YAML tags section style" option to multi-line
- Enable "Remove hashtags from tags in the YAML frontmatter"
- "Body tag operation" should be set to "Remove whole tag"
- Enable "Move all tags to YAML frontmatter of the document"
obsidian-metadata script
In console:
- `obsidian-metadata --vault-path "your/vault/path"`
- Run `obsidian-metadata`
Once you're in the program:
- Reorganize metadata -> Transpose inline to frontmatter -> Transpose all
- "Tags" field gets moved but does gets overriden by lowercase `tags` which Obsidian Linter should have made
remove any leftover inline fields not removed (this will be shown in [[#Errors]] + you can just use global search to look for existing dataview queries)
status gets moved to tags field, so need to do mass replace to change it again
[[Replace old tags and links formatting to new frontmatter]]
(USV Specific only)
use vscode replace
- replace `#🟥` to `🟥`
- do the same for all other statuses
### Status tags turned into multi-line tags
```
tags:\n\s+Status: "⬛"
```
```
Status: "⬛"\ntags:\n
```
### Errors
```
WARNING | Failed to delete Links from Artificial Intelligence (AI).md
WARNING | Failed to delete Links from 12 Favorite Problems.md
WARNING | Failed to delete Links from PKM Maintenance.md
WARNING | Failed to delete Links from Levels of Work and Commitments.md
WARNING | Failed to delete Links from Zettelkasten.md
WARNING | Failed to delete Links from Maps of Content (MOC).md
WARNING | Failed to delete Links from Notemaking.md
WARNING | Failed to delete Links from Getting Things Done Task Process.md
WARNING | Failed to delete Status from Getting Things Done Task Process.md
WARNING | Failed to delete Status from Getting Things Done Task Process.md
WARNING | Failed to delete Tags from MOC Template.md
WARNING | Failed to delete Tags from Project Management MOC.md
WARNING | Failed to delete Tags from 🗺 Getting Things Done.md
WARNING | Failed to delete Links from Note Taking MOC.md
WARNING | Failed to delete Tags from Note Taking MOC.md
WARNING | Failed to delete Links from Obsidian MOC.md
WARNING | Failed to delete Tags from 🗺 Personal Knowledge Management MOC.md
WARNING | Failed to delete Links from 📥 The 3-Part Daily Routine For Maximum Productivity.md
WARNING | Failed to delete Links from 📚 How To Take Smart Notes.md
```
#### Fixing errors
The YAML should have still been parsed, so you can search for:
```
Links:(?:\n|.)*?Links:: .*
```
this will only show notes where there is frontmatter links at the top