davraamides / todotxt-mode

MIT License
59 stars 12 forks source link

Task notes not showing on hover #54

Open fmartelg opened 1 year ago

fmartelg commented 1 year ago

Given that I have have a task with a note:note.md tag in a todo.txt file in my current workspace, when I hover over the task, then nothing happens. Was expecting a preview of note.md.

Here are the contents of my todo.txt file:

(B) A task note note:note.md
(B) Another task 

--

Here the contents of note.md:

# Test 

This is a note:

    - A
    - B

I have disabled all Extensions globally except todotxt-mode which is enabled globally.

I am running vscode:

Version: 1.74.2 (system setup) Commit: e8a3071ea4344d9d48ef8a4df2c097372b0c5161 Date: 2022-12-20T10:29:14.590Z Electron: 19.1.8 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Windows_NT x64 10.0.22621 Sandboxed: No

davraamides commented 1 year ago

Hi @fmartelg, I just tried this locally and it's working for me. Here's a screenshot using your two files:

Screenshot 2023-01-06 at 12 27 38 PM

It looks like we are on identical versions (below) except for macOS vs. Windows (which shouldn't make a difference).

Are you hovering over the note tag or note.md filename? That's what triggers it, not hovering over the task.

A couple of things to check in User Settings under Extensions, todotxt-mode:

My version of VS Code: Version: 1.74.2 (Universal) Commit: e8a3071ea4344d9d48ef8a4df2c097372b0c5161 Date: 2022-12-20T10:26:09.430Z Electron: 19.1.8 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Darwin x64 22.2.0 Sandboxed: No

fmartelg commented 1 year ago

Hi @davraamides thank you for the prompt and informative response. I have solved the issue.

Turns out I had, at some point in the past, associated .txt files to markdown in user settings under Files: Associations.

I removed this association and everything worked fine. Sharing as a corner case...