Nifty
August 30, 2021, 9:52am
1
What I’m trying to do
I am trying to delete a tag from all files that contain it. Does anybody know how to do this?
I am running Obsidian 0.12.12 on macOS 11.5.2
Things I have tried
I have tried using TagWrangler, and although I can use it to rename tags, I don’t see a way to delete them.
4 Likes
You could use a program such as VSC or Atom to run a global search for #tag in your vault and replace with nothing.
Useful to make a backup in Finder before making major changes to a whole vault.
Angel
1 Like
There is a third party plugin called Find and Replace in Selection, but I think it only does one note at a time.
Using your tagwrangler, can you leave the replacement text as blank? Replace “#tag ” with “”.
Nifty
September 2, 2021, 8:53am
4
Thanks for the suggestion, @anon12638239 , I’ll have a look at Atom.
Nifty
September 2, 2021, 10:29am
5
Hi @Obsidandnancy , Tag Wrangler doesn’t allow renaming tags to nothing ("").
1 Like
Flexit
September 2, 2021, 4:13pm
6
Nifty
September 2, 2021, 8:18pm
7
Thanks for the suggestion, @Flexit . I neglected to mention (and have now edited my post) that I am running macOS.
1 Like
Saw that the dev that wrote tag wrangler has no intention on adding a Delete tag function:
“(I’ve considered adding tag deletion as well, but given that it’s a destructive operation with no undo, well… seems better to do it with an interactive search and replace, or to just merge the tag into another tag – i.e. rename it to the same as an existing tag. This will “delete” the old name from the tag pane, at any rate.)”
Simple work around to Rename and Delete tags:
Elaborating on @Vinadon solution, just explaining it in more details and with another tool
The main idea is just to perform a simple find and replace in all files using another free app
Here the steps:
Download Notepad++ (or any other tool that can perform serach and replace in the contents of text files)
From the main menu go to Search-> Find In Files
In the search fields insert your current tag in the search field, the new (renamed) tag in th…
Other threads recommending VS Code, looks like there is a Mac version.
Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications.
Another reply recommending Notepad++, but not sure there is a mac version.
Also, I noticed there is an Obsidian third party plugin for Tag Wrangler. Good to know.
Nifty
September 17, 2021, 5:47pm
10
Thank you for these suggestions, @Obsidandnancy , I will find something that will do a search and replace.
1 Like
system
Closed
October 17, 2021, 5:48pm
11
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.