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
Editable custom metadata #67
Comments
Creation date and last edited date could be added, but they would kind of be out of sync if you update/create your notes outside of Notable, maybe there could be a normalization step for this at startup, but it's a bit less trivial than it sounds at first. Adding other metadata such as location would require a way of editing the front matter in Notable, maybe there could be an additional button in the toolbar for additional metadata 🤔 |
Creation and modification date can be handled by the operating system, we don't need to save them as metadata |
@mvakili kind of. Currently we are taking that approach, but this doesn't work when you import notes (the creation date is probably not the date the note is imported) and it doesn't work when using synchronization (Dropbox or whatever may duplicate your notes at a different time then when they are created) |
I sync my notes using Dropbox and haven't looked into how it handles create/modification times. It sounds like you're saying Dropbox will potentially give wrong values for these? If so, having the created/modified timestamp metadata sounds very useful. I was once working on a similar note app that stored files in Markdown with metadata in frontmatter. I gave each note tracked by the app a UUID. If Notable added a UUID to the frontmatter, it could keep track of notes across file renames or edits outside of itself. Any thoughts? |
@mystal currently creation/modification dates aren't stored, but are inferred from the filesystem. This obviously doesn't work but I'll fix this in the next few releases. There's no need for a UUID as each note's metadata is written alongside the note's content in the same file. |
FWIW Google Drive's sync keeps correct metadata Edit: on Windows 10 |
As of 3641862 creation and modification times are now properly preserved. Support for editing custom metadata will have to wait some more time (you can already add custom metadata by editing it directly though). |
Coming from #538 (comment)
I think I'm not making myself quite clear: The note title/filename will not appear the in the editor/display at all. It is something that is used to display the notes on the sidebar and to name the file. If the user decides to use a custom title By default, the title would be inferred from the title and nothing would change from the current approach. What I'm talking about is a possibility to add a custom title for notes. There are notes where the title is different from the content. For example:
If I want the note's header and the note's title to be the same, I can just ignore this feature and move on with my life. The way I see it being implemented is just an additional button here: You click on it, you set or remove a title, Notable acts accordingly. |
@mikaelmello Ok I think we are on the same page now. I'm not sure why someone would not want to have a note's title there immediately editable along with the content, but I see the need for better editable metadata in general. I've been thinking about this for a while actually, I think at some point the "Open in Default App" button will be replaced with an "Info" button, that let's you see some additional metadata like creation and modification date, let's you set a custom, fixed, title and let's you add additional metadata, which could perhaps be useful for search in the future #293. |
From my experience I almost never edit titles once they are set. The contents are updated many more times |
I'm considering migrating to Notable from just editing my notes in VS Code, but my notes already have front matter with my own metadata (including tags). I would find Notable much better if there was an option to show (and thus edit) the metadata directly when editing the file. As a general principle, I don't want the editor to hide any part of the Markdown file from me. I found that confusing. |
@neighthan Maybe we could add an option for that in the future, but I think a better approach would be to show a separate UI component for editing the metadata 🤔 Like you might not want to learn how YAML's syntax works, and using a date-picker may be less error-prone than editing a date field directly. |
Agreed @fabiospampinato - I also found Notable as a useful editor to compose Hugo markdown files. The only thing missing is the custom meta data editor you reference but even @neighthan idea of just showing and saving the markdown would suffice for now. |
It will be nice to have additional metadata such as
It can come in handy when you want to do quick notes during meetings. I can easily refer to the date created and the location where the note was taken so I can recall back when and where did I jot this note. Pretty cool feature, nice to have.
The text was updated successfully, but these errors were encountered: