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

    Gander7

    04/26/2022, 12:42 AM
    If I were to look at making a Dendron compatible vscode extension, are there certain things I should look out for? (I am an experienced developer but completely new to vscode extensions)
  • k

    kevins8

    04/26/2022, 12:44 AM
    not particularly but depending on what your after, we might also be able to support the functionality natively using hooks/traits/pods/etc
  • g

    Gander7

    04/26/2022, 12:46 AM
    Looking to do an extension to help with handling todo's, similar to todo+ but compatible with a dendron markdown file, a bit different, and more configurable. Very early stages.
  • k

    kevins8

    04/26/2022, 12:49 AM
    got it. as long as you don't change the
    id
    field, you should be good to go
  • g

    Gander7

    04/26/2022, 12:52 AM
    All I heard is, "Change the id field everytime" 😛
  • k

    kevins8

    04/26/2022, 12:53 AM
    well, while your at it, also makes sure your extension automatically executes the current note as a javascript file 😇
  • g

    Gander7

    04/26/2022, 1:06 AM
    btw this has nothing to do with task notes, I like the way you've done them and the latest task management blog. This has more to do with simple todos
  • j

    Joshi

    04/26/2022, 2:40 AM
    Thanks @foureyedsoul for your inputs. This sounds interesting.
  • j

    Joshi

    04/26/2022, 11:12 AM
    I sometimes get the following error on dev-console while closing the webview panel. Is there something more that needs to be done to dispose the panel apart from https://github.com/dendronhq/dendron/blob/fa67bc36394e8eeea2972ec5bfa39dbfe66c7ad5/packages/plugin-core/src/components/views/NoteGraphViewFactory.ts#L149?
  • h

    hikchoi

    04/26/2022, 11:44 AM
    I've seen this too. From a quick look, I think what's happening is that we destroy the webview, but we are posting a message to it anyway. We might need to check for the existence of the panel before posting with
    postVSCodeMessage
    .
  • o

    Osa

    04/26/2022, 8:02 PM
    hi there, I am a SW Engineer, but never had to deal with any VS Codium development. I'd like to modify my 'Preview' of files. I found in VS Codium docs that WebView is responsible for this stuff. Is that correct? What should I look for in Dendron codebase? AFAIK here's the code: https://github.com/dendronhq/dendron/blob/926fe610c3f3165a3e1d889d70c2aa10612dd656/packages/plugin-core/src/components/views/PreviewPanel.ts#L72 (maybe I would like a little guidance what to look for if I want to modify preview - i.e. add some js library that would mutate how things are rendered, and so on...)
  • s

    SeriousBug

    04/26/2022, 8:30 PM
    Hey Osa! There's a few different places you can look at depending on what you want to modify. A lot of the code where markdown is converted to HTML is here, if that's what you are interested in: https://github.com/dendronhq/dendron/tree/master/packages/engine-server/src/markdown/remark And then the preview code itself is here: https://github.com/dendronhq/dendron/blob/master/packages/dendron-plugin-views/src/components/DendronNotePreview.tsx The file you linked is the VSCode portion of the preview, it's where we set up the preview. If you want to modify how the preview is set up (for example, changing how frequently the preview refreshes or something) then that's where you'd look.
  • s

    SeriousBug

    04/26/2022, 8:31 PM
    For adding a new library, I'd suggest looking at how Dendron sets up mermaid. Here is the hook: https://github.com/dendronhq/dendron/blob/3fad2fdd0649132f247d7ccf5e76a45787eb20eb/packages/dendron-plugin-views/src/hooks/index.tsx#L83 And here's how that hook is used: https://github.com/dendronhq/dendron/blob/master/packages/dendron-plugin-views/src/components/DendronNotePreview.tsx#L111
  • o

    Osa

    04/26/2022, 8:51 PM
    thank you very much @SeriousBug . I will familiarize with the material
  • a

    aleksey

    04/27/2022, 1:12 AM
    Found another one: https://github.com/g1eb/calendar-heatmap
  • t

    Tika

    04/27/2022, 2:08 AM
    Interesting. Especially if one could also see the topics that one worked on in the hot areas, for example, if the amended hierarchies could be highlighted, maybe even within the graph.............
  • d

    d1onys1us

    05/03/2022, 8:22 PM
    hey what is the dendron release cadence just curious... https://wiki.dendron.so/notes/2kb9bl9378k9w45wfrtkrnr/ , was wondering how often these are released
  • s

    SeriousBug

    05/03/2022, 8:26 PM
    We release a new version every Tuesday
  • k

    kevins8

    05/03/2022, 8:58 PM
    we'll be celebrating 0.100 pretty soon 😃
  • k

    kevins8

    05/03/2022, 9:57 PM
    #748936364283920495 responding to @benhsm | Jack of N trades about adding refactoring to the CLI - would add it to
    note
    for now, we can split it up if needed later (
    dendron note refactor
    ) -
    plugin-core/src/commands/RefactorHierarchyV2.ts
    is the right place to look. we generally want to move the logic from here into
    engine-server
    - if you look at
    dendron-engine/src/enginev2.ts
    , this would involve adding a new method (
    refactor
    ) to the engine API - this will be a bigger change - i need to run right now but will add more details here shortly
    b
    • 2
    • 2
  • b

    benhsm | Jack of N trades

    05/03/2022, 10:48 PM
    I actually just started reading Martin Fowler's Refactoring, so it'd be fun to have a chance to refactor in order to facilitate refactoring 😆
  • k

    kevins8

    05/04/2022, 12:01 AM
    add refactor to cli
  • d

    d1onys1us

    05/04/2022, 10:19 PM
    i've been thinking of picking that one up haha
  • b

    benhsm | Jack of N trades

    05/04/2022, 10:35 PM
    any others that you've got your eye on?
  • d

    d1onys1us

    05/04/2022, 10:49 PM
    Yeah was also looking at clean architecture by uncle bob!
  • s

    SeriousBug

    05/04/2022, 10:51 PM
    Let me plug this in in that case: https://dev.to/bosepchuk/why-i-cant-recommend-clean-architecture-by-robert-c-martin-ofd
  • a

    aleksey

    05/05/2022, 2:40 AM
    At work, we completely refactor 🙂 our main product every couple of years just because new JS frameworks are getting old faster than we can develop, ha-ha.
  • a

    aleksey

    05/05/2022, 2:44 AM
    For some reason, every time I see version numbers below 1, my brain thinks of them as prices. So, 0.100 is just 0.1 padded with extra meaningless 0s. As a result, when I try to decide which version of some portable app I should use, version 0.9 to me looks newer than 0.13. Brain 🧠. Go figure.
  • k

    kfischer_okarin

    05/05/2022, 2:45 AM
    I've come to learn to wrap everything in my own classes and components at the lowest level 😅 to minimize that impact
  • k

    kfischer_okarin

    05/05/2022, 2:45 AM
    Though I'm still working on many source code bases that are not yet that much wrapped
1...100101102...108Latest