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

Ability to use *.todo file instead of *.md #579

Closed
lawrence-laz opened this issue Apr 14, 2021 · 7 comments
Closed

Ability to use *.todo file instead of *.md #579

lawrence-laz opened this issue Apr 14, 2021 · 7 comments
Labels
foam-core Related to API, core model or feature
Milestone

Comments

@lawrence-laz
Copy link

lawrence-laz commented Apr 14, 2021

Todo+ is a pretty popular VS Code extension for managing *.todo files.

It looks a bit like this:
image
Compared to markdown:
image

I would like to use it in Foam instead of markdown todo files. However, I cannot find a way to reference a *.todo file from a *.md file.

Adding it as a markdown link doesn't work, as clicking on the link (in edit mode) does not open the *.todo file the same way it does when you click a [[todo]] link.
image

Would it be possible to somehow integrate non-markdown files into Foam?

@holajoyce
Copy link

+1 yes, in fact, I find myself trying to reference code files in my foam markdown files, and would love to be able to do so.

@riccardoferretti riccardoferretti added this to the backlog milestone May 4, 2021
@riccardoferretti riccardoferretti added the foam-core Related to API, core model or feature label May 4, 2021
@riccardoferretti
Copy link
Collaborator

This falls into better support for attachments, which the latest refactoring should make easier.
I have added this task to the backlog, I don't have a timeframe for it but I agree it's quite important

@riccardoferretti
Copy link
Collaborator

I have played with the extension and actually really liked it. I wonder whether the solution here should actually be the other way around. Is there a reason why TODO+ doesn't support .md as extension?

@lawrence-laz
Copy link
Author

lawrence-laz commented May 18, 2021

Is there a reason why TODO+ doesn't support .md as extension?

How would that work: would TODO+ extension be enabled on all .md files? I know that it has some keyboard shortcuts, functionality like archiving completed tasks and syntax highlighting. This could possibly conflict with some other markdown stuff in simple non-todo files I guess.

@SanketDG
Copy link
Contributor

There is some context here on how to make it work, but in general it looks like the extension itself implements some spec?

@riccardoferretti
Copy link
Collaborator

thanks for this pointer, so it looks like TODO files are treated as having their own "language"... mm... problematic..

@riccardoferretti
Copy link
Collaborator

This is fixed as of 0.25.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
foam-core Related to API, core model or feature
Projects
None yet
Development

No branches or pull requests

4 participants