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

Possibility to leave a field empty #7

Open
sandersantema opened this issue Sep 4, 2019 · 1 comment
Open

Possibility to leave a field empty #7

sandersantema opened this issue Sep 4, 2019 · 1 comment

Comments

@sandersantema
Copy link

Currently adding a note like the following wouldn't be possible:

Template:

# {Front}
# {Back}
# {Hint}

Note:

# Front Example
# Back Example

This would be good to have since you might for instance not want to add a hint to every note but use the same template non the less.

This would hopefully also allow for the following:

Template:

# Front
{Front}
# Back
{Back}
# Hint
{Hint}
# Source
{Source}

Note:

# Front
Front Example
# Back
Back Example
# Hint

# Source
Example Source
@glfharris
Copy link
Owner

I agree there's definitely a need for something like this, although there's a potential headache with the templating system. I think the easy way would just be to leave a blank line, which is enough to match as a field. Then do a cull on whitespace only fields in the note processing.

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

No branches or pull requests

2 participants