quickadd icon indicating copy to clipboard operation
quickadd copied to clipboard

[BUG] "Insert after" option does not insert content correctly if the line is "Obsidian"

Open TroubleDog54 opened this issue 1 year ago • 0 comments

Describe the bug

I am attempting to capture my tasks to a note. In this note, I have three headings, one of which is "Obsidian". I used {{VALUE:Work,Personal,Obsidian}} to create a selection menu so I don't have to remember my headings. When I select the Obsidian option in my menu, it captures to my previous heading, "Personal" instead of "Obsidian". If I change this to something else, like "Test" or "Obsidian1", it works as expected.

To Reproduce Steps to reproduce the behavior:

  1. Create a new capture, capturing to any file
  2. Set "Insert after" to a selection menu containing "Obsidian"
  3. Run the new capture
  4. The content does not capture as expected.

Expected behavior

The content captures to the "Obsidian" header.

Screenshots

Screenshot 2024-10-01 10 19 49

Desktop (please complete the following information):

  • OS: Debian 12 (running as a ChromeOS container)
  • Browser: Chrome
  • Version 1.11.1

Smartphone (please complete the following information):

  • Device: Samsung Galaxy A20
  • OS: Android 11
  • Browser: Iceraven
  • Version 1.11.1

Additional context

I am using the Tasks API to have the Add Task modal appear:

return await this.app.plugins.plugins['obsidian-tasks-plugin'].apiV1.createTaskLineModal() + '\n';

TroubleDog54 avatar Oct 01 '24 00:10 TroubleDog54