https://www.dendron.so/ logo
Join DiscordCommunities
Powered by
# dev
  • k

    kevins8

    07/05/2022, 4:52 PM
    way to get yourself on the bugcatcher list for v103 😅
  • r

    rlh1994

    07/05/2022, 4:53 PM
    This and finding typos is why I have "open source contributor" on my CV 😁
  • k

    kevins8

    07/05/2022, 4:54 PM
    well deserved 🙂
  • j

    José Longo

    07/05/2022, 9:51 PM
    hi there ! Not sure if it is the right place but here we go... I'm trying to play with hooks to do some automation on note creation with javascript... there is a simple way to get yaml variables ? in NoteUtils can'f find anything related... (warning... i'm not a programmer, just curious )... Also, it is possible to execute hooks from vscode's command interface ?
  • j

    José Longo

    07/06/2022, 9:43 PM
    Ok, i solved for now creating a config.js for the hook... it's on the planes allow execution of hooks on the fly ? Also it's only developed the "onCreate" event ?
  • z

    zenen

    07/06/2022, 9:58 PM
    tr
  • z

    zenen

    07/06/2022, 10:01 PM
    tr
  • k

    kevins8

    07/06/2022, 10:02 PM
    yaml variables are located under
    note.custom
    property
  • k

    kevins8

    07/06/2022, 10:02 PM
    > it's on the planes allow execution of hooks on the fly could you elaborate on this?
  • j

    José Longo

    07/06/2022, 10:08 PM
    for example i create a hook to parse whatever i want inside a indicated note e get back some values (undone tasks for example or other pattern) and insert on actual note for example.
  • j

    José Longo

    07/06/2022, 10:09 PM
    call dendrom custom myhook some.note or something like that
  • j

    José Longo

    07/06/2022, 10:12 PM
    hooks: onCreate: pattern: something.* supports "child" vaults (something.* is inside other vault)? how ?
  • j

    José Longo

    07/07/2022, 7:14 PM
    hmmm, this means that only main vault support the hook... ok refactor time.
  • k

    kevins8

    07/08/2022, 5:18 PM
    got it. this might make sense as a feature request (eg. hookOnManualTrigger). feel free to submit a issue for this and we can add it to our backlog 🙂
  • d

    dirty

    07/08/2022, 5:18 PM
    Oui za de moi x m s de ses àdes
  • s

    ScriptAutomate

    07/12/2022, 12:28 AM
    I have a PR that should fix the
    dendron-site
    GitHub Actions failures, and bring the version of Dendron used in publishing to the latest version. This should also fix a weird problem where Firefox users can't properly use the wiki site (from what I can tell, at least, when using the local publish preview!): - https://github.com/dendronhq/dendron-site/pull/587
  • k

    kevins8

    07/12/2022, 1:51 AM
    ah, was it the outdated version that was causing the issue?
  • s

    ScriptAutomate

    07/12/2022, 2:06 AM
    Yeah. When I test locally with current version in
    master
    , it's broken in Firefox. I tested locally with a Dendron upgrade and it worked great. Though, since I merged that into
    dev
    , technically it's still a problem with the site at the moment 😛 But, once
    dev
    is merged to
    master
    in for release tomorrow, should update all the things.
  • f

    foureyedsoul

    07/12/2022, 3:39 PM
    Great! I looked at it for about 15 yesterday minutes but couldn't figure out what purpose the SVG tag plays or where it comes from!
  • k

    kevins8

    07/12/2022, 3:44 PM
    its now fixed 🙂
  • s

    ScriptAutomate

    07/14/2022, 3:51 PM
    I have a PR I opened when I noticed some validator errors: - https://github.com/dendronhq/dendron/pull/3245 I have listed questions in there for why it is in draft status, but I also want to confirm that my updates reflect what Dendron is expecting in functionality too ;P
  • k

    kevins8

    07/14/2022, 5:57 PM
    insert note has been removed, its now
    apply template
    😅
  • s

    ScriptAutomate

    07/14/2022, 6:40 PM
    Oh! So should
    insertNote
    be
    applyTemplate
    or what is Dendron expecting now (in the
    dendron.yml
    config)?
  • k

    kevins8

    07/14/2022, 6:43 PM
    commands.templateHierarchy
    is the config now
  • s

    ScriptAutomate

    07/14/2022, 7:18 PM
    Ah! So
    commands.templateHierarchy
    is replacing
    commands.insertNote
    ? I see
    workspace.templateHierarchy
    - did it move to
    commands
    or move to
    workspace
    ?
  • k

    kevins8

    07/14/2022, 8:27 PM
    ah, it should be
    commands
  • s

    ScriptAutomate

    07/14/2022, 11:18 PM
    - Since the PR is closed, is the plan to update the validator in an upcoming release? - Should I update my local
    dendron.yml
    to remove
    insertNote
    and to move
    templateHierarchy
    to
    commands
    ?
  • s

    ScriptAutomate

    07/14/2022, 11:19 PM
    Oh wait, so the validator is up to date, just my local config is wrong
  • h

    hikchoi

    07/14/2022, 11:22 PM
    Shouldn't it be
    commands.applyTemplate.templateHierarchy
    ?
  • h

    hikchoi

    07/14/2022, 11:25 PM
    oh it is actually
    commands.templateHierarchy
    .... This doesn't really make sense to me. any namespace directly under
    commands
    should probably be the command name unless it's something that affects every single command.
1...104105106107108Latest