What I’m trying to do
Remove items from frontmatter tags list that have no value. I’m trying to import notes into another program, and it cannot handle blank/empty tags.
Example
---
tags:
- type/wiki
- linux
-
---
The importer will fail on that 3rd tag item since it is blank.
Things I have tried
I’ve checked the tags list in the right sidebar and also looked at the note’s tags field in source/no source edit view. In source view you can see the blank item, with source off you cannot tell that it is there. I can’t see the “blank” tag in the global tags list, so I cannot delete it from there.
Hi.
I just added a blank tag to one of my notes and then ran Linter on it. The blank tag was removed. It is possible to run Linter on individual files, folders of files, or even an entire vault. Very powerful. Worth experimenting on a test vault before unleashing it on your main vault.
1 Like
That isn’t a bad idea. I’ve been using VS Code regex search to find and delete them. I’ll keep Linter in mind.
Another useful skill I picked up is to open the developers console open when running plugins. I discovered “Markdown export” quietly fails to export some files, and you can only see the error with the console open.
I reported it to the developer just now, so hopefully they add a visual feedback feature to the plugin.
1 Like