kevins8
09/01/2020, 5:34 PMjojanaho
09/01/2020, 5:41 PMjojanaho
09/01/2020, 6:15 PMkevins8
09/01/2020, 6:31 PMdefaultAddBehavior
> This makes sense, thanks for patiently explaining it :).
no problem. thanks for giving me a chance to refine my explanation πkevins8
09/01/2020, 6:32 PM*.schema.yml
. it is made from schema nodes
- schema node: a single entry in a schema
> - "domain": I think this is the first level after the root, but not sure if it's something more
- yep, exactly. think of it as the top level folder
from a traditional file system
> - "domain namespace": I guess this means the second level, if the first level is defined as namespace, not 100% sure though.
- yeah, it is. not thrilled with this because this is a kludge of sorts. namespaces are a schema concept and can occur at any level of a hierarchy. domain namespace
is only a thing because i needed it as a defaultAddBehavior
since most of my domains happen to be namespaces and I would like to keep my journals under the namespace instead of the domain (eg. pro.dendron.journal vs pro.journal)kevins8
09/01/2020, 6:32 PMglobal schema
concept that might fit what you're thinking about
> - Could the term "namespace" be changed to "open" (true/false) more clearly pointing out that a schema node is "open for extensions"
>
- it could. though i'm not sure if that's more obvious than namespace
> - Assuming the "domain" denotes some kind of important partition that should be the root for activities like inserting new notes; what if the structure is such that domains make sense only on the second level, i.e. new notes should appear on third level. Would this kind of use case make sense, or is it just a design decision for dendron to support domains on first level only.
- domains are meant to be the root of your hierarchies. there's no concept of a domain
at deeper levels. that being said, i think domain namespace
is a kludge and would like to support marking arbitrary points in your schema as entry points. this way, you could specify defaultAddBehavior
in terms of the schema (eg. schema: ${domain}.{path/to/child})
. thus, childOfDomainNamespace
can eventually be replaced with something like ${domain}.${namespace}?
jojanaho
09/01/2020, 7:13 PMkevins8
09/01/2020, 7:25 PMdomain
concept is probably not required. i use it as short form to mean "the root of this hierarchy". but i suppose root
will also do and its one less thing to think about. as long as people don't confuse that for root.md
which is the root of your entire vault. will stew on this π
> Didn't quite get that one...
the root
of a schema tree needs a something to match. the convention is for the root of a schema tree
to match the root of a note tree
(aka, its domain)
(that being said, you could have a schema whose root matches the pattern *
)
> Yeah, personally I don't need it anymore after understanding the concept. Just thinking about new users, and potentially the ones who have not heard about schemas and namespaces before. What's the background for the "namespace"-term in this context, btw?
using namespace in the computer science context (eg. a container of other things) --> https://en.wikipedia.org/wiki/Namespace
- eg. my knowledge base has 12 hierarchies vs my knowledge base has 12 domainsjojanaho
09/01/2020, 7:36 PMkevins8
09/01/2020, 8:32 PMkevins8
09/01/2020, 8:33 PMjojanaho
09/02/2020, 12:06 PMjojanaho
09/02/2020, 12:06 PMjojanaho
09/02/2020, 12:06 PMjojanaho
09/02/2020, 12:06 PMjojanaho
09/02/2020, 12:07 PMjojanaho
09/02/2020, 12:15 PMnpm install
and watch
, 2) statement to use dendron.code-workspace
when doing development; now I always forget and end up seeing odd errors 3) instructions which commands should be re-run after repo sync; now I started to get some errors related to some mdast related stuff 4) the watch running parallel might swallow some errors in some cases, e.g. errors from engine-server were sometimes hidden by latter compilation from other packages, don't know what would be the best approach for thiskevins8
09/02/2020, 2:30 PMnpx lerna bootstrap --scope @dendronhq/common-all --scope @dendronhq/common-server --scope @dendronhq/engine-server --scope @dendronhq/plugin-core --scope @dendronhq/dendron-cli
and you're right about the parallel runner swallowing errors. going to look into adding a husky hook to catch warnings before committing. will also be updating the dev docs based on your commentsjojanaho
09/02/2020, 2:33 PMjojanaho
09/02/2020, 2:34 PMjojanaho
09/02/2020, 2:35 PMkevins8
09/02/2020, 2:37 PMkevins8
09/02/2020, 2:38 PMkevins8
09/02/2020, 2:38 PMbuild
sequence againkevins8
09/02/2020, 4:41 PM"workbench.colorTheme"
setting?user
09/02/2020, 4:52 PMkevins8
09/02/2020, 4:53 PMuser
09/02/2020, 4:57 PMkevins8
09/02/2020, 4:58 PMkevins8
09/02/2020, 4:59 PM