twinkle-labs / twinkle-notes

End-to-end encrypted notes application
https://twinkle.app
GNU Affero General Public License v3.0
121 stars 5 forks source link

feature: (structured) arbitrary metadata on notes #4

Open majidaldo opened 4 years ago

majidaldo commented 4 years ago

I feel this is the final piece that would make the application PERFECT!

It seems like it could almost be done now with json [+text] or as a comment. sqlite has json support so that would be queryable. (a more structured query interface would be another feature).

litchie commented 4 years ago

What do you want to do with those metadata?

majidaldo commented 4 years ago

My use case is to manage references: url, doi, author, tags, ..etc. An extension of this would be the ability to import/paste json data as notes.

(I'm coming into this software from tiddlywiki. )

litchie commented 4 years ago

I think we can support json import as

{
 "xxx": "yyy"
}

and then render it as a table or a list of attribute-value pairs. However, I think you may want to query over those data and perhaps even process them and generate some outputs. That's going to take some thinking. Twinkle Notes is basically designed to be structureless.

May I ask what OS are you running on? What's in tiddlywiki that you miss much?

majidaldo commented 4 years ago

I think we can support json import as

{
 "xxx": "yyy"
}

and then render it as a table or a list of attribute-value pairs. However, I think you may want to query over those data and perhaps even process them and generate some outputs. That's going to take some thinking. Twinkle Notes is basically designed to be structureless.

May I ask what OS are you running on? What's in tiddlywiki that you miss much?

Windows. TW combines a tiddler (note) with some structure (tags and arbitrary fields on each note). This combines structure and structureless. (Also, more html integration but that's a separate issue. What I like about TN is more emphasis on the /process/ of creating notes... ie allowing it to evolve, not having to think about titles, revision history, workspaces, window panes).

litchie commented 4 years ago

In TN, you can have tags like '#todo'. Perhaps we can add special markup to support fields.

litchie commented 4 years ago

Here's a gift token for you, according to https://twinkle.app/bugs.html: TWK-e9b08b67-a6084e83-12GBm

majidaldo commented 4 years ago

Here's a gift token for you, according to https://twinkle.app/bugs.html: TWK-e9b08b67-a6084e83-12GBm

thanks hah this would best be in a PM to me :)

majidaldo commented 4 years ago

In TN, you can have tags like '#todo'. Perhaps we can add special markup to support fields.

ya you can sort of do that with inventing your own syntax like #dateread-2020-5-11 but ideally the structure should just be readily queryable like json.

litchie commented 4 years ago

I prefer metadata directly embedded in the plain texts, such as

[%age:32]
[%author:John Conway]

I am still wondering what kind of queries are you going to perform on these data. This is not going to be as powerful as excel, I am afraid.