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

Configure Foam's default file extension(s) #1129

Closed
riccardoferretti opened this issue Jan 2, 2023 · 1 comment
Closed

Configure Foam's default file extension(s) #1129

riccardoferretti opened this issue Jan 2, 2023 · 1 comment
Labels
foam-core Related to API, core model or feature
Milestone

Comments

@riccardoferretti
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

Currently Foam supports only .md files as notes, and will always create .md files when clicking on a link (well, unless differently instructed by the template being used)

Describe the solution you'd like

As a user, I expect to be able to configure the list of extensions to be considered notes, e.g. txt, mdx, qmd, ...

There are really two issues here:

  1. support for multiple file extensions to be included as notes - this would need to be a setting, similar to what we have for foam.files.attachmentExtensions

  2. support for the creation of non-.md files. Here I can see two approaches:
    a. use note templates - this requires no further changes and is the current workaround
    b. use the first extension from the setting above as the default extension for new notes

Describe alternatives you've considered

No workarounds are available at the moment for including non-.md files in the graph.

To create non-.md files the current workaround would be to use the filepath property in templates.

Screenshots or Videos

No response

@riccardoferretti
Copy link
Collaborator Author

This is now 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

1 participant