Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TroubleDog54 opened this issue Oct 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TroubleDog54
Copy link

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 TroubleDog54 added the bug Something isn't working label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant