Define & use custom keys in YAML Frontmatter as global Filters
This is a carryover from https://github.com/Zettlr/Zettlr/issues/582
Now as I am addicted to YAML Frontmatters to enritch my documents with metadata I feel the need for a cutomizable Filter (like the tag cloud) for predefinable keys like "status", "authors", "workflowtarget", "categories", "priority" etc..
This could be an example YAML Frontmatter (with comments)
title: Why capitalism drives you crazy # this is already recognized by the filter
authors: [Gilles Deleuze, Félix Guattari] # a list of authors
id: 20200306100138 # this is of course recognized as the ID of the document
keywords: [#capitalism, #schizophrenia] # already recognized as tags
abstract: some short optional descripion
Imagine you are working as a team (gilles+felix+theodor) with synchronized folders or you have a lot to remember/forget this could be immense helpful. If I were felix, I could check "tasks" associated to me as workflowtarget and then check for the important stuff (priority) witch has the status "work in progress" (wip).
Adding a customizable filter for structured metadata would expand the possibilities to manage your files and tasks because you can add any possible "Order of Things" to your documents. If you want to build a simple "ticket system" to organize your collaborative writing within groups or you feel the need to pimp up your Zettelkasten with some additional meta-structures you are good to go.
Of course (in the future) there could be demands like the combination of multiple searches (e.g. workflowtarget + status) or the handling of numerical values and dates (e.g. deadline < 2020-04-02) but a first implementation working like the tag filter would also be a huge improvement.
- In order to use these keys they have to be defined in the preferences (key, label, optional description). This could be done in a similar way as defining colors for keywords.
- additionally to the tag cloud you have a dropdown for custom filters and a list (in future versions of the UI) or a "tag cloud" of all values associated to this key, but I am not sure about this part of the interface especially when it comes to future demands.