https://www.dendron.so/ logo
Join Discord
Powered by
# questions
  • j

    jojanaho

    08/28/2020, 6:45 AM
    so there's something funky going on
  • j

    jojanaho

    08/28/2020, 6:45 AM
    (I guess) ๐Ÿ™‚
  • j

    jojanaho

    08/28/2020, 6:46 AM
    btw, reloaded both the index, and even the whole window while trying to get the things working. And restarted the whole vscode also couple of times
  • j

    jojanaho

    08/28/2020, 10:37 AM
    tried cloning & building dendron to debug this a bit, got stuck first stuck on typescript check "noUnusedLocals": true," ; after changing that to false, I was able to proceeded to dendron-cli, which fails with
    [error] No matching files. Patterns tried: . !**/node_modules/** !./node_modules/** !**/.{git,svn,hg}/** !./.{git,svn,hg}/**
  • j

    jojanaho

    08/28/2020, 10:37 AM
    (this by following the instructions in CONTRIBUTING.md)
  • j

    jojanaho

    08/28/2020, 11:18 AM
    ok, managed to start debugging by fumbling around. If I got the flow right, looks like
    const resp = await engine.query(querystring, opts.flavor)
    is not returning any of the notes for the lookup picker
  • j

    jojanaho

    08/28/2020, 11:58 AM
    btw, maybe dev related channel would be in place? would be nice to get some additional insights e.g. related to debugging various lerna packages (plugin-core -> engine-server). However this question might start to get a bit deep for generic "questions" channel ๐Ÿ™‚
  • u

    user

    08/28/2020, 1:58 PM
    I found something weird happening with lookup and file creation. I created a file named 'hello.hello.md'. When I look for 'hello.hello' in lookup it offers me to create new file despite it already existing. If I select 'Create New' then my previous content gets overwritten with a new empty note. I think the lookup shouldn't offer a 'Create New' option for an existing file name.
  • k

    kevins8

    08/28/2020, 4:15 PM
    @User great idea with the dev channel, have started it and responding to this thread there
  • k

    kevins8

    08/28/2020, 4:28 PM
    > > I found something weird happening with lookup and file creation. I created a file named 'hello.hello.md'. When I look for 'hello.hello' in lookup it offers me to create new file despite it already existing. If I select 'Create New' then my previous content gets overwritten with a new empty note. > > I think the lookup shouldn't offer a 'Create New' option for an existing file name. > @User you found a ๐Ÿ› ! dendron does a bunch of optimizations to not query its index every time. when you first open
    lookup
    , we do a query for everything under your current hierarchy (
    hello.*
    ). we remove the
    create new
    option if your query string matches a note exactly but because we modify this to
    hello.*
    on your initial lookup, it results in the behavior you see
  • k

    kevins8

    08/28/2020, 4:31 PM
    created an issue for it here: https://github.com/dendronhq/dendron/issues/135 will get it fixed in today's release!
  • u

    user

    08/28/2020, 5:55 PM
    I occasionally find myself tripped by lookup's hatred for spaces)
    denqui
    gets you
    dendron.quickstart
    readily but
    den qui
    gets nothing at all Dunno if this should be fixed, just reporting on my experience))
  • k

    kevins8

    08/28/2020, 6:01 PM
    yeah, dendron's currently doesn't give you much space
  • k

    kevins8

    08/28/2020, 6:01 PM
    created an issue for it here: https://github.com/dendronhq/dendron/issues/136
  • k

    kevins8

    08/28/2020, 6:02 PM
    feel free to upvote and/or leave comments. i end up prioritizing feature development based on what people leave on the issues ๐Ÿ™‚
  • u

    user

    08/29/2020, 12:22 AM
    I'm really struggling to wrap my head around schemas and whether or not they will even be useful for me. Is anyone able to explain them to me in another way?
  • k

    kevins8

    08/29/2020, 2:20 AM
    @User schemas help you categorize your notes. they aren't required but help you know that your notes are filed consistently. for example, lets say you have a bunch of projects and you know you like to keep your projects in the following hierarchy:
    Copy code
    - project
        - goals
        - people
        - tasks
        - meetings
    by creating a schema for it, dendron will be able to autosuggest the valid children (goals, people, tasks, meetings) if you accidentally do a typo (eg. project.foo.task instead of project.foo.tasks), your schema will tell you that this entry is inconsistent with the rest of your entries. that being said, schemas are optional and you don't need to have them to use dendron. they just help enforce the organizational structure that you already have
  • k

    kevins8

    08/29/2020, 3:34 AM
    updated the schema docs with some example use cases https://www.dendron.so/notes/c5e5adde-5459-409b-b34d-a0d75cbb1052.html#why-use-schemas
  • k

    kevins8

    08/29/2020, 3:48 AM
    > I found something weird happening with lookup and file creation. I created a file named 'hello.hello.md'. When I look for 'hello.hello' in lookup it offers me to create new file despite it already existing. If I select 'Create New' then my previous content gets overwritten with a new empty note. > > I think the lookup shouldn't offer a 'Create New' option for an existing file name. @User this has been fixed in 0.8.13! thanks for the tip ๐Ÿ™‚
  • u

    user

    08/29/2020, 6:13 AM
    I'm struggling with using backlinks in dendron. For example I open
    dendron.topic.schema.md
    . The backlinks panel lists some files with links to this note. I want to look through them and see what the docs say about schemas. But as soon as I click on anything in backlinks panel the active file changes, and the backlinks are now shown for the note I clicked on. Then I have to figure out how to navigate back and then read through backlinks list again to find my place. Is there maybe some way to pin the backlinks in place? Or is this sort of workflow just totally un-dendronic? )
  • j

    jojanaho

    08/29/2020, 7:39 AM
    @User I think this would require some new "pinning" functionality for backlinks panel. You can somewhat alleviate the pain by using "back" shortcut keys to get back to your original note (e.g. bound to alt+leftArrow in my case)
  • u

    user

    08/29/2020, 8:29 AM
    yes, either that or maybe a way to see more context right there in the backlinks panel or the ability to open backlinks in editor like it's possible for search results I've resorted to doing a search for
    dendron.topic.schema
    and then opening results in editor for now. This shows a nice list of results with the ability to peek into different files from the same page. This might not scale well when there are more notes though).
  • j

    jojanaho

    08/29/2020, 9:19 AM
    Nice workaround!
  • j

    jojanaho

    08/29/2020, 10:26 AM
    I really like the possibility to quickly traverse up the note hierarchy with CTRL+UP. What drives me mad though is that I cannot traverse down with CTRL+DOWN (and select quickly the sub-topic with arrow keys if there's multiple). Anyone else who thinks this would be cool?
  • j

    jojanaho

    08/29/2020, 10:29 AM
    I think this could actually be implemented relatively easy, by triggering the lookup menu with dot added to the current topic (now instead of CTRL+DOWN, I press CTRL+L -> RIGHT -> '.')
  • u

    user

    08/29/2020, 10:51 AM
    @kevins8 that makes more sense. I keep a PhD notes schema unofficially that would benefit fromsome stricter structure. Thanks!
  • j

    jojanaho

    08/29/2020, 11:35 AM
    hmm, CTRL+UP / DOWN is actually not the best combination, using that to spawn multicursor
  • k

    kevins8

    08/29/2020, 1:28 PM
    > I think this could actually be implemented relatively easy, by triggering the lookup menu with dot added to the current topic (now instead of CTRL+DOWN, I press CTRL+L -> RIGHT -> '.') @jojanaho I was waiting for someone to bring up downward traversal :). Itโ€™s something i was thinking about but was concerned that it was duplicating the functionality of โ€˜ctrl-lโ€™.
  • k

    kevins8

    08/29/2020, 1:30 PM
    i think there is a lot of value to make hierarchy traversal as seamless as possible so will be adding downward traversal and sibling traversal (bring up lookup with previous dot)
  • k

    kevins8

    08/29/2020, 1:32 PM
    thereโ€™s also the idea of marking certain parts of the hierarchy as anchor points (you can do this on a per hierarchy basis via the schema) to quickly jump to them
1...262728...757Latest