Skip to content

fix(inline-tasks): keep task links plain in the task modal's single-line inputs (#2744) - #2748

Merged
callumalpass merged 1 commit into
mainfrom
fix/2744-nlp-task-link-overlay
Dec 1, 2026
Merged

callumalpass merged 1 commit into
mainfrom
fix/2744-nlp-task-link-overlay

Conversation

@callumalpass

Copy link
Copy Markdown
Owner

Fixes #2744.

Cause

The Create task dialog's natural language input and the task title field are Obsidian Live Preview editors, so the global task link overlay also runs in them. Those editors have no file of their own, so the overlay resolved links against the active Markdown note behind the dialog. Whenever a note was open there, a +[[project]] link to a task note became the inline task widget. On the input's single line, the status circle sat below the text and the widget left a wide gap after the name. With a non-Markdown view in front (for example the release notes), no widget appeared, which made the bug depend on what was open.

Fix

  • Add a taskLinkOverlayDisabled CodeMirror facet (src/editor/taskLinkOverlayScope.ts), which the overlay checks before decorating.
  • Set it on the NLP input and the title editor. Links there render as ordinary Obsidian links, the same as links to non-task notes in the same field. Nothing the user typed is hidden.
  • Notes, the details editor and reading mode are unchanged.

I chose skipping over the compact in-sentence widget because these fields are text inputs being parsed. Widget controls there (status toggle, menu) would act on a different task from inside the creation dialog.

Verification

…ine inputs (#2744)

The Create task natural language input and the task title editor are
Live Preview editors, so the task link overlay drew the full inline task
widget there whenever a Markdown note was active behind the dialog. On
the input's single line the status circle sat below the text and the
widget left a wide gap after the name.

Add a taskLinkOverlayDisabled facet that the overlay checks, and set it
on the NLP and title editors. Notes and the details editor are unchanged.
@callumalpass
callumalpass force-pushed the fix/2744-nlp-task-link-overlay branch from e165b92 to 0d78b6d Compare November 30, 2026 21:35
@callumalpass
callumalpass merged commit 4ca22ad into main Dec 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Task link overlay renders inside the natural language input of the Create task dialog

1 participant