Add tags in bulk?

Moved from Google Keep. Notes are converted to Markdown, but most don't have tags. Can I add tags or bidirectional links in bulk or will I have to add tags manually? There are thousands of notes. The prospect of doing so does not sound pleasant :(

Posted Oct 19, 2022, 9:11 PM UTC

211
ceciltech•

Exactly how do you envision this working? How is the process going to know what tags to put in each note?

1
FelipeNAOP•

Keep, Evernote, Notion, and some others have similar features. In Google Keep you select multiple notes, click the 3 dots in the upper right corner, and click "Add label"

Labels are tags in Keep. I might have to go back to Keep, do the tag thing and reimport into Obsidian. The Labels are automatically recognized by Obsidian as tags.

I was not expecting Obsidian to lack Google Keeps features.

1
ceciltech•

I misunderstood what you meant by "in bulk" vs manually, what you want is still doing it manually but just adding the same tag to multiple files at the same time. Since Obsidian just uses plain text files there may be some clever way to do this with a tool like VS Code but your plan is probably the easiest way.

1
FelipeNAOP•

In Keep you can search for "panda in #bear" to find all mentions of pandas in notes with the tag bear. Then you press Ctrl+A to select all notes and do the steps I mentioned before to add a new tag, "panda". You can organize hundreds of notes/tags in seconds. I never appreciated that feature until I lost it in Obsidian lol

1
ceciltech•

Personally I would recommend you examine why you want t do this at all. You will be better served long term if you stop trying to use Obsidian like you used Keep or Evernote and use Obsidian for what it is.

There is an eternal discussion in the Obsidian community about the best way to use links ,tags, and folders within Obsidian, so understand that the following is just my opinion.

Don't use tags for categorizing notes, use links. Google: (obsidian links vs tags) to get an idea why. Reserve tags for note statuses and few other edge cases.

Try this solution to your panda bear example ( I know you are new to the app so you will need google and the Obsidian help to follow the instructions but you will learn some useful stuff):

Create a note and name it panda
Open the Backlink panel
Look at the list under Unlinked Mentions in the Backlinks
This list has all the pages that have the word panda
In the search box at the top of the Backlinks panel type #bear
Now the list is all pages with panda and #bear
Hover over the list and you get some buttons on the right
You can click the little up or down arrow to see more context so you can be sure that panda wasn't talking about trash pandas.
Click the Link button to turn the unlinked mention into a link. Now you have your "tag"
If there are synonyms for panda you use in your notes you can add them as aliases to the Panda page and any use of that term will now show up as an unlinked mention.

As you write notes any term you might have added as a tag, make it a link instead. Then check out the dangling links plugin.

2
DannyHatcher•

Tag wrangler will help in future but bulk adding tags can't really be done easily to my knowledge.

If you are looking for note I would use the quick switcher or search.

1
JorgeGodoy•

I think the "Metadata Menu" plug-in will help you. You can use it to edit all notes in a folder and add data to existing fields or create new ones both at the front matter or in the note itself. Take a look at its docs and try it.

1
FelipeNAOP•

That sounds promising, I'll look into it. Thank you.

1