Skip to content

Add template option for Create Note command #88

@Perchycs

Description

@Perchycs

I've been trying to make this work for a while, and as far as I can tell there isn't a way to achieve what I want easily.

Current Workflow

I have been using the extension to quickly create a 'fleeting note' which I can quickly fill the content of using the form for the create new note command. This works great!

Issue

I am wanting to add a 'created_date' field as frontmatter, because dataview's 'file.cdate' doesn't work well when syncing notes across multiple devices. The 'cdate' reflects the file's creation date on each device (ie. when it was synced to that device), which can differ from the actual note's creation date.

Current Limitations

Using the 'default note content' option:

  • If 'fill form with defaults' is enabled, the default frontmatter appears in the content box, which ends up looking cluttered.
  • If 'fill form with defaults' is disabled, the default value is overwritten when adding content.
  • Adding tags via the form results in the default frontmatter being added after the tags, causing formatting issues (example here).

Using the feature introduced from #14

Feature Requests

New Setting: Add a 'text to append to the beginning of the note' option, allowing users to input frontmatter or initial text (e.g., a templater command). This could function like the similarly named option for the 'append task' command.
Tag Handling: Ensure that any tags selected in the form are integrated into this frontmatter, avoiding multiple frontmatter blocks. This might reduce the relevance of the 'default tags' setting, as users can add a 'tags: [your_tag]' field in the appended text.


Thanks so much, really appreciate the work you have done to create & improve this extension, it is such a useful addition to Obsidian!

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions