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

    kevins8

    09/03/2020, 3:40 PM
    > @User I will also add that I think I recall that this worked when I first installed dendron, version 0.9.0 (maybe not the I want $100 instead of $200) but the $\sin(x)$ worked. Something has changed. And I tested the current version in a new user account this morning and had exactly the same behaviour. @User okay, in that case it might be a dendron related change to the preview. let me take another look at this today!
  • p

    p0lyg0n

    09/03/2020, 5:14 PM
    Up until now, I was making note links manually, I was gonna suggest to add a command that copies a note link and taking the note title as label, but I just discovered you've already thought about that and the command exists already 😄
  • t

    TomD

    09/03/2020, 5:29 PM
    @kevins8 It was over 2000 characters. How do you want me to send you the file?
  • k

    kevins8

    09/03/2020, 6:35 PM
    @User you can use this dropbox link: https://www.dropbox.com/request/6PuqQuZKAYli0tR95aVc
  • k

    kevins8

    09/03/2020, 6:36 PM
    > Up until now, I was making note links manually, I was gonna suggest to add a command that copies a note link and taking the note title as label, but I just discovered you've already thought about that and the command exists already :facepalm: 😄 @User a lot of the features come from user suggestions so not going to take all the credit 😅
  • t

    TomD

    09/03/2020, 8:18 PM
    @User noob.Not sure what I am doing wrong here.RefactorHeirarchyError.noteNotFound Not sure what the requirements for Refactor Heiarachy are. I am pointing to a flat directory
  • p

    p0lyg0n

    09/03/2020, 9:19 PM
    Would it be somehow possible to open a search editor when we click on tags either in the preview or editor? This would be really cool/helpful
  • k

    kevins8

    09/03/2020, 9:22 PM
    that would be convenient. currently, i map it to a keyboard shortcut and use it to launch the search editor based on the current file. https://www.dendron.so/notes/692fa114-f798-467f-a0b9-3cccc327aa6f.html#search-editor you might be able to script something like that using the macros extension https://marketplace.visualstudio.com/items?itemName=geddski.macros
  • p

    p0lyg0n

    09/03/2020, 9:23 PM
    Was gonna say: I could maybe hack something together using something like
  • k

    kevins8

    09/03/2020, 9:24 PM
    oh, that looks neat. if you do go that route, do let us know what you come up with 🙂
  • p

    p0lyg0n

    09/03/2020, 9:26 PM
    > currently, i map it to a keyboard shortcut and use it to launch the search editor based on the current file. I think this would work well for my use case
  • p

    p0lyg0n

    09/03/2020, 9:26 PM
    any idea if there's a variable to include in the
    query
    part of that that grabs the selected text ?
  • p

    p0lyg0n

    09/03/2020, 9:27 PM
    I have this in my keybindings (from dendron docs):
    Copy code
    json
        {
            "key": "ctrl+k ctrl+f",
            "command": "search.action.openNewEditor",
            "args": {
                "query": "${needSomethingThatGrabsSelectedText}", // <----
                "triggerSearch": false,
                "focusResults": false,
                "includes": "${fileBasenameNoExtension}",
            },
            "when": "editorTextFocus"
        },
  • p

    p0lyg0n

    09/03/2020, 9:29 PM
    Found it!
  • p

    p0lyg0n

    09/03/2020, 9:29 PM
    I have modified it to this:
    Copy code
    json
    {
        "key": "ctrl+k ctrl+f",
        "command": "search.action.openNewEditor",
        "args": {
            "query": "${selectedText}",
            "triggerSearch": false,
            "focusResults": false,
            "includes": "${fileBasenameNoExtension}.*",
        },
        "when": "editorTextFocus"
    }
  • p

    p0lyg0n

    09/03/2020, 9:30 PM
    added
    .*
    in the
    includes
    part, so now I just hit enter and I get all results matching the tag I had selected from the same hierarchy
  • p

    p0lyg0n

    09/03/2020, 9:30 PM
    My use case is a to-read book list
  • k

    kevins8

    09/03/2020, 9:35 PM
    @User I think I'm going to just let you answer your own questions from now on 😛
  • p

    p0lyg0n

    09/03/2020, 9:36 PM
    Haha, thank you for your assistance nonetheless!
  • k

    kevins8

    09/03/2020, 9:36 PM
    heh, np
  • p

    p0lyg0n

    09/03/2020, 9:37 PM
    I also changed
    triggerSearch
    and
    focusResults
    to true, save me one extra keystroke 😄
  • k

    kevins8

    09/03/2020, 9:41 PM
    its all about those keystrokes! you should cross post it in #742532267058004098 🙂
  • p

    p0lyg0n

    09/03/2020, 9:42 PM
    Got another question, and this is definitely not a crucial feature to have but would be nice to have it: Is there anyway we can customize the rendering of tags in the preview ? I'm only wrapping them in the inline code tildes sos they look nicer 😄
  • k

    kevins8

    09/03/2020, 9:43 PM
    so the css is customizable https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css
  • p

    p0lyg0n

    09/03/2020, 9:45 PM
    But in the markup, it's just straightup text, not much can be done like this
  • k

    kevins8

    09/03/2020, 9:45 PM
    yeah, with css, you'll need to wrap the tag within a
    span
    or
    div
    which would be a pain
  • p

    p0lyg0n

    09/03/2020, 9:45 PM
    unless I can figure out a way to have it wrapped with a custom element and maybe have a classname so I can have even more customizations that way
  • p

    p0lyg0n

    09/03/2020, 9:46 PM
    does Dendron have any say in how the markdown is rendered? Can we maybe customize the way tags (specifically) are rendered ?
  • k

    kevins8

    09/03/2020, 9:46 PM
    i do want to support this natively at some point. it shouldn't be too bad since dendron already makes modifications to the markdown to support note refs
  • k

    kevins8

    09/03/2020, 9:47 PM
    can you create a feature request for tags? https://github.com/dendronhq/dendron/issues/new?assignees=&labels=&template=feature_request.md&title=
1...394041...757Latest