https://www.dendron.so/ logo
Join Discord
Powered by
# dev
  • n

    nam

    02/10/2022, 9:03 AM
    I started playing with building a neovim dendron plugin. Currently it does not more than lookup and opening a daily note. https://github.com/namjul/dotfiles/tree/master/dots/.config/nvim/lua/namjul/dendron
  • b

    benhsm | Jack of N trades

    02/10/2022, 2:31 PM
    I'm hoping to build some kind of coc.nvim plugin for Dendron when the migration to a language server architecture is complete (maybe it already is and I'm not up to date)
  • b

    benhsm | Jack of N trades

    02/10/2022, 2:32 PM
    right now I've got some stuff in vimscript and shell for looking up notes and opening a daily note
  • b

    benhsm | Jack of N trades

    02/10/2022, 2:33 PM
    and also to be able to use
    gf
    to navigate through wikilinks
  • f

    fudo

    02/10/2022, 3:15 PM
    That sounds like something useful for me as well, just curious how it would work together with code-NeoVim
  • b

    benhsm | Jack of N trades

    02/10/2022, 3:20 PM
    I anticipate that it wouldn't work all that well; I wasn't able to get code-neovim to behave the way I wanted it to. but who knows
  • n

    Nidoling

    02/10/2022, 6:17 PM
    @User FYI for those working with
    nextjs-templates
    , we now have support for writing playwright tests (https://github.com/dendronhq/dendron/pull/2354). This is an E2E testing framework to replace cypress. Note that before running the tests, you'll need to run
    npx playwright install --with-deps
    . For instructions on how to run tests, see [[Test|dendron://dendron.docs/pkg.nextjs-template.qa.test]]
  • k

    krisfremen

    02/10/2022, 7:40 PM
    oh nice. I will give it a shot
  • f

    foureyedsoul

    02/10/2022, 8:18 PM
    Requests for a dark theme or custom themes come up frequently, and I have no idea how complicated it is to implement an alternate theme with the new framework Dendron uses. I did just remember Aral Balkan's approach to [making a dark theme](https://ar.al/2021/08/24/implementing-dark-mode-in-a-handful-of-lines-of-css-with-css-filters/). He cleverly uses an invert filter and hue rotation filter to achieve a dark theme, rather than specifying an entirely separate set of colors. If this can be done with the new framework, maybe it would save time for whoever works on theming?
    k
    d
    b
    • 4
    • 9
  • s

    SeriousBug

    02/10/2022, 8:23 PM
    I think there's already a dark theme for the preview, so I don't think a workaround is needed for dark mode. Thanks for bringing it up though, looks interesting!
  • f

    foureyedsoul

    02/10/2022, 8:29 PM
    Is there also a dark mode for publishing, or a way for the site to respond to user preferences? I think I have "prefers dark mode" set in Safari and Firefox, but the Dendron wiki always shows up with a white background.
  • s

    SeriousBug

    02/10/2022, 8:56 PM
    I don't think so, no. That probably would be an easy goal to hit while we work on full theming support.
  • k

    kevins8

    02/10/2022, 10:17 PM
    dark-mode
  • s

    SeriousBug

    02/11/2022, 5:31 AM
    Are there any existing tests that check for schema matches?
  • k

    kevins8

    02/11/2022, 5:49 AM
    if you look at recent pull request by @User you should find some
  • s

    SeriousBug

    02/11/2022, 5:55 AM
    I can't find it, the only PR I see with schema tests is https://github.com/dendronhq/dendron/pull/2274, but those are tests for applying templates. I'm testing if certain fnames match certain schemas or not.
  • s

    SeriousBug

    02/11/2022, 6:11 AM
    I wrote a nice harness for testing schema matches, hopefully it's not duplicated effort ๐Ÿ˜…
  • k

    kevins8

    02/11/2022, 8:26 PM
    hey @User - I know last we talked you were interested in getting started with open source development. let me know if that's still the case. @User posted some good first tasks in dendron that we purposely groomed for first time contributors -> https://discord.com/channels/717965437182410783/748936364283920495/936713179814318180
  • k

    kevins8

    02/11/2022, 8:29 PM
    got it - misunderstood the question. we have some schema matching tests here but they are not extensive -> https://github.com/dendronhq/dendron/blob/master/packages/engine-test-utils/src/presets/engine-server/query.ts#L80:L80
  • k

    kevins8

    02/11/2022, 10:21 PM
    @User @User docs on how we test new engine methods This has been around for a while but never formally documented. posting here for visibility -> https://github.com/dendronhq/dendron-docs/commit/e53b72c021693f68e98b46646cb1bec4dd352eab
  • b

    benhsm | Jack of N trades

    02/13/2022, 4:40 PM
    I've made a draft pull request for adding a rename command to the CLI. I think it's been four months now since I set out to work on this ๐Ÿ˜… . Main thing is, I'm not sure if the docs on manual testing: are applicable to testing the CLI. Details in the draft.
    j
    k
    • 3
    • 3
  • j

    Joshi

    02/13/2022, 5:03 PM
    Testing CLI
  • n

    Nidoling

    02/15/2022, 8:49 PM
    Since we cannot use
    vscode
    outside of
    plugin-core
    , what are the alternative methods that we use to prompt user for input?
  • s

    SeriousBug

    02/15/2022, 9:19 PM
    CLI could prompt the user, although I'm not sure if there are any examples of that right now. Any code inside something like the engine or common-all shouldn't be interactive IMO, although you could accept a "promptUser" callback if you have to
  • k

    kevins8

    02/15/2022, 9:43 PM
    following up on that - dendron currently has two clients: vscode and cli. they both have methods for prompting
  • n

    Nidoling

    02/15/2022, 10:30 PM
    Gotcha thanks @User . Eventually we want to support xvault schema support so that when an user creates a new note via "Go-to-note" command, they will be prompted to select which template to use. Right now the schema template apply logic is in common-all.
  • s

    SeriousBug

    02/15/2022, 10:33 PM
    I would recommend splitting the logic into two parts then, one part that finds all applicable templates, and then another one that applies 1 template. Then the plugin/CLI code will call the first function, prompt the user if there are more than 1 templates, then call the second function.
  • n

    Nidoling

    02/15/2022, 11:26 PM
    gotcha, thanks for the input! i'll think on it some more and create an async/doc for this. We have a couple main entryways with regards to creating a note (plus applying template) that may be worth consolidating
  • f

    fudo

    02/16/2022, 10:02 AM
    How long ago where the RFC's switched from the
    wiki.dendron.so
    to the
    docs.dendron.so
    domain? Becouse I see some Discussion that still link to the wiki instead of the docs
  • k

    kevins8

    02/16/2022, 3:33 PM
    quite a while back (its been maybe half a year now)
1...929394...108Latest