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

Editable custom metadata #67

Open
jinjie opened this issue Dec 28, 2018 · 13 comments
Open

Editable custom metadata #67

jinjie opened this issue Dec 28, 2018 · 13 comments
Labels
enhancement New feature or request
Milestone

Comments

@jinjie
Copy link

jinjie commented Dec 28, 2018

It will be nice to have additional metadata such as

  • Note created
  • Note last edited
  • Note location

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.

@fabiospampinato fabiospampinato added the enhancement New feature or request label Dec 28, 2018
@fabiospampinato
Copy link
Member

fabiospampinato commented Dec 28, 2018

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 🤔

@fabiospampinato fabiospampinato changed the title Feature Request: Additional meta for notes Additional metadata Dec 30, 2018
@mvakili
Copy link

mvakili commented Jan 1, 2019

Creation and modification date can be handled by the operating system, we don't need to save them as metadata

@fabiospampinato
Copy link
Member

@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)

@mystal
Copy link

mystal commented Jan 5, 2019

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?

@fabiospampinato
Copy link
Member

@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.

@mikaelmello
Copy link
Contributor

mikaelmello commented Jan 7, 2019

FWIW Google Drive's sync keeps correct metadata

Edit: on Windows 10

This was referenced Jan 7, 2019
@fabiospampinato
Copy link
Member

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).

@mikaelmello
Copy link
Contributor

Coming from #538 (comment)

Ok, but I'm struggling to understand what the actual advantage would be here. As a mental model I'm imagining this as if there was a line that divided the note in 2 sections, the first section contains only the title and the second section contains the content. What advantages does this kind of division bring to your use case?

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:

I want to write a proposal in my note and I'd like to easily find my note by looking for something such as "Proposal for Organization X - Program Y 2019" (1).

Well, my note is a proposal and I'd like the main header to be the name of the proposal: "Improving X's security" (2), not the sentence (1). This proposal is going to be viewed by other people and they all already know it's a proposal for them, they don't need to read (1) but (2).

The only usefulness for (1) is to organize myself, being it to manually search for the file in the filesystem or via Notable's sidebar, where notes are listed.

(1) would not appear anywhere inside the note.

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:
image

You click on it, you set or remove a title, Notable acts accordingly.

@fabiospampinato
Copy link
Member

@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.

@mikaelmello
Copy link
Contributor

I'm not sure why someone would not want to have a note's title there immediately editable along with the content

From my experience I almost never edit titles once they are set. The contents are updated many more times

@neighthan
Copy link

neighthan commented Dec 23, 2019

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.

@fabiospampinato
Copy link
Member

@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.

@shah
Copy link

shah commented Dec 28, 2019

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.

@fabiospampinato fabiospampinato added this to the Next milestone Jan 10, 2020
@fabiospampinato fabiospampinato changed the title Additional metadata Editable custom metadata Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

7 participants