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

Add metadata 'create daily entry` boolean setting to make any page like daily page #25

Open
m1k3s0 opened this issue Jul 3, 2024 · 5 comments

Comments

@m1k3s0
Copy link

m1k3s0 commented Jul 3, 2024

Currently, renaming the current "daily journal" note prevents the new date block from being added. Perhaps in settings a journal note could be specified.

@kjk
Copy link
Owner

kjk commented Jul 3, 2024

Maybe a per-page setting to auto-create daily block, with daily note getting it by default.

Have it persisted in metadata so will survive renames.

Could then extend that to more per-page settings.

@m1k3s0
Copy link
Author

m1k3s0 commented Jul 3, 2024

Might be able to extend this to being able to add page templates too.

@kjk kjk changed the title Feature request: Ability to rename daily journal Add metadata 'create daily entry` boolean setting to make any page like daily page Jul 4, 2024
@kjk
Copy link
Owner

kjk commented Jul 4, 2024

@m1k3s0 for the page template idea please create a new issue with more elaborate explanation of proposed feature.

@kjk
Copy link
Owner

kjk commented Jul 5, 2024

Potential UI: context menu this note / Edit metadata and shows a dialog like Settings.

It would be cute to make metadata editing like note editing i.e. show a note system: metadata of <note name> with some customized UI for editing key / value items. VS Code does this for settings, also 10x editor.

But it's a bit harder to implement (need CodeMirror code).

@kjk
Copy link
Owner

kjk commented Jul 6, 2024

Another idea to implement this without UI: if there's a block with first line:

// metadata

and of type yaml, it would be a metadata, in yaml syntax, for the page.
That way user could add any metadata he wants, in addition to metadata values understood by Edna itself.

I don't particularly like yaml, so maybe the metadata should be in a simple key: value format, i.e.:

// metadata
daily_entry_template: # YYYY-MM-DD Monday
tags: foo, bar
author: chris
description: This is a note about my investing

But then the question is what lang should this block be. Maybe add a new lang Edna Metadata.

Also, it kind of pollutes the note. Maybe could have an option to hide metadata block and commands Edit metadata, Hide metadata.

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