I solved it with the AHK script (Autohotkey app for PC must installed). I will write in the line: tags: [ #newtag ] when I will suggest the used tags. I stay in line and run the script. He first checks to see if I’m in the tags: line and then removes all # characters in that line in bulk.
Probably a better script to write, but I’m a beginner.
#IfWinActive, ahk_exe Obsidian.exe ;you must by in the obsidian window
{
; CTR+SHIFT+A shortcut for run the script. Character "A" you can change it for your own shortcut
^+a::Gosub, obsidianHashTagReplace
return
}
obsidianHashTagReplace:
send, {home}
send, +{End}
send, ^c
If InStr(Clipboard, "tags: [")
{
} Else {
MsgBox, You are probably not in the YAML Tag line.
Exit
}
Clipboard := StrReplace(Clipboard,"#","")
send, ^v
return