d12frosted / vulpea

A collection of functions for note taking based on `org` and `org-roam`.
GNU General Public License v3.0
237 stars 12 forks source link

Persist meta in database #100

Closed d12frosted closed 3 years ago

d12frosted commented 3 years ago

It would be nice to promote meta to first class citizen of vulpea-note, meaning that it needs to be persisted, it must be part of vulpea-note and the library should provide means to search/filter by meta.

This is primarily needed for performance of search and access, making meta more practical. Examples of usage:

  1. You want to find all notes that have meta with 'producer' set to some note. Without this feature you have to open ALL notes, parse the file and filter. Opening file and parsing takes lots of time.
  2. You wish to show some information about one or more notes. For example, title (already persisted) and some value from meta (not yet persisted). Without this feature you need to (again) open files and parse the data to present what you want.

Kind of follow up of https://github.com/d12frosted/vulpea/discussions/96#discussioncomment-987611

CC @hyan46

d12frosted commented 3 years ago

Example of such usage - https://github.com/d12frosted/environment/commit/0b5bc480758fd7ceeebc513317732f6337744126