chhoumann / quickadd

QuickAdd for Obsidian
https://quickadd.obsidian.guide
MIT License
1.5k stars 136 forks source link

[BUG] "Insert at end of section" doesn't recognize leading tag #720

Open wrayzheng opened 1 month ago

wrayzheng commented 1 month ago

Describe the bug With "Insert after" and "Insert at end of section" option enabled, it's expected to insert new content at the end of #Fleetings section.

image

If there are a tag at the beginning of a line, quickadd will insert new content before the line of that tag, splitting the original content at that section.

It seems that quickadd recognizes it as a heading.

image

To Reproduce Steps to reproduce the behavior:

  1. enable "Insert after" and "Insert at end of section" option
  2. write some content at the target section, with a tag independently at a line.
  3. trigger the quickadd capture
  4. new content is inserted before the tag, which is part of the section

Expected behavior Parse the leading tag correctly, and insert new content at the actual end of section.

Screenshots See above.

Desktop (please complete the following information):