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 sigil for keyvalue pairs #38
Comments
I'm going to throw in some of our chat transcript for additional context:
|
LogSeq also does Jekyll front matter is yaml, mostly seen as For TiddkyWiki, I can create arbitrary custom fields name -> value on any item. But I would say there is a lot of complexity down this path that might better be tied to the programmability of geists? EG can we include a Geist (with whatever that syntax is) and the simplest Geist might encapsulate both custom fields AND know what to do with them? Anti-pattern example: for Jekyll or TiddlyWiki, without extensive template / display layer programming and custom theme, these custom untyped data types don’t survive past a single user. (I’d love an example where this is not the case — because I’d love more lightly structured entities floating about) +1 for not using |
Moving this conversation to #19. |
Just adding this as a possible alternative to header keyvalue pairs, as discussed in #19.
That link mentions @ as a possible sigil, ie
@ foo: bar
Some alternatives -
.foo bar
.foo=bar
.foo: bar
I like this syntax as it's like property assignment in oo, and @ seems more appropriate for other uses.
For my project Neomem, I had been planning to just parse out any plain 'key: value' lines and treat them as metadata. Each item has a text representation similar to markdown, corresponding to a record in a database.
There's also 'key:: value' as in obsidian - I don't like that syntax though.
The text was updated successfully, but these errors were encountered: