marc0l92 / obsidian-jira-issue

This plugin allows you to track the progress of Atlassian Jira issues from your Obsidian notes.
https://marc0l92.github.io/obsidian-jira-issue/
GNU Affero General Public License v3.0
237 stars 36 forks source link

[Bug] Column suggest can trigger when not inside jira codeblock fence #114

Open nathonius opened 8 months ago

nathonius commented 8 months ago

Describe the bug In certain, very specific situations, the column suggest will appear even when not in the jira codeblock.

To Reproduce Steps to reproduce the behavior:

  1. Have a valid jira-search codeblock in a file.
  2. Somewhere after the jira codeblock, type columns:
  3. See the suggester appear outside the codeblock.

example file content:

```jira-search
type: TABLE
query: assignee = currentUser() AND status in ("Reopened", "Blocked", "To Do", "In Progress", "In Code Review", "Awaiting Validation") order by updated DESC
columns: KEY, SUMMARY, TYPE, UPDATED, STATUS

columns:



**Expected behavior**
The column suggester should not be visible when typing outside of the jira-search codeblock. Specifically I ran into this while developing another obsidian plugin, and it requires a fairly specific circumstance, so not a super high priority.

**Plugin version and platform**
- Version: 1.56.0
- [ ] Obsidian Windows
- [x] Obsidian Mac
- [ ] Obsidian Linux
- [ ] Obsidian Android
- [ ] Obsidian iOS