obsidian-frontmatter-tag-suggest icon indicating copy to clipboard operation
obsidian-frontmatter-tag-suggest copied to clipboard

There is an extra space before the second tag

Open Homoe-hs opened this issue 2 years ago • 2 comments

image `` After the tag was automatically inserted, there is an extra space before the second dash

image

Then the second tag just turns into a weird one.

Homoe-hs avatar Aug 27 '22 13:08 Homoe-hs

The same happens for:

---
tags:
    - tag1
 - 
---

Each time Enter is pressed after confirming a suggested autocompletion, the plugin is adding an additional line, space, and -. Could Enter be limited to simply confirming the autocompletion as it's not a given that an additional tag is desired. If it was limited, we'd just press Enter again and Obsidian would handle the indentation and insertion of a hyphen.

Thanks.

Edit: Looks like this PR may be the answer: https://github.com/jmilldotdev/obsidian-frontmatter-tag-suggest/pull/8. I'd edit the main.ts and manually load the plugin but it appears it's not as simple as that: "Failed to load plugin obsidian-frontmatter-tag-suggest". Downloading the plugin via the community plugins shows that what gets installed is actually a main.js, which appears to be some conversion of the .ts file (inside the file reads "THIS IS A GENERATED/BUNDLED FILE BY ESBUILD") which I don't know how to do.

redactedscribe avatar Sep 18 '22 14:09 redactedscribe

https://github.com/jmilldotdev/obsidian-frontmatter-tag-suggest/pull/8 would fix - tag becoming - tag.

bdrewery avatar Oct 24 '22 18:10 bdrewery