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

    tlylt

    12/08/2022, 12:12 AM
    Hi there, Yeap I have seen that shortcut in the vscode config, which links to some custom script. I understand that the schema can be used to match and apply template, but I am trying to find a solution for creating filename that has the pattern which can be targeted by the schema. So like the daily note, using ctrl shift i it will automatically generate a file that has the date in the filename, wonder if we can setup something similar for other notes?
  • h

    hikchoi

    12/08/2022, 12:48 AM
    You can enable katex and wrap latex snippets between `$`s. Single dollar signs for inline and double dollar signs for blocks.
  • h

    hikchoi

    12/08/2022, 12:51 AM
    You can create a custom VSCode shortcut that passes certain arguments to the lookup command.
  • h

    hikchoi

    12/08/2022, 12:52 AM
    @tlylt ☝🏻 this doc goes over all the modifiers you can use and how to pass them in a keybinding.
  • b

    Bassmann

    12/08/2022, 8:04 PM
    I'm not sure I completely understand but maybe the 'notes with custom traits' functionality can help you. It basically allows you to manipulate the note name, title and body using JavaScript including loading templates. My use case is to create weekly notes with the weeknumber as part of the name and monthly notes
  • m

    michaelvolk

    12/08/2022, 10:48 PM
    I understand how to use Latex in markdown, my question is how to trigger latex snippets when you are in a md file?
  • t

    tlylt

    12/08/2022, 11:46 PM
    Yes that’s exactly what I am looking for! Have been looking through the docs for days and didn’t manage to find this out, thanks!
  • h

    hikchoi

    12/09/2022, 4:11 AM
    As in, vscode snippet files scoped to trigger on latex files? I don't think that's possible. You might be able to if you scope it to markdown instead.
  • l

    LividJava

    12/09/2022, 2:45 PM
    Is there a way to hide certain categories of notes? for example i have a Category called "Meta" that i'd like to hide but still link to
  • a

    alucard

    12/09/2022, 5:00 PM
    Hi, does current version support copy button on code blocks?
  • s

    ScriptAutomate

    12/09/2022, 5:57 PM
    There is a feature request for this at the moment. It isn't implemented yet, but you can give a thumbs up emoji in the issue to the original comment: https://github.com/dendronhq/dendron/issues/2497
  • s

    ScriptAutomate

    12/09/2022, 5:59 PM
    I think you might be looking for
    siteHierarchies
    if you mean not wanting it published? https://wiki.dendron.so/notes/q960Z622o0RLO32w0B8SP/#sitehierarchies When you say "category" to do you mean "hierarchy" or do you mean "tags" or?
  • l

    LividJava

    12/09/2022, 6:02 PM
    no, i want it published an example i have files called
    character.bob
    and
    meta.guide
    I want character to be listed in the navigation side bar, but i want meta to be hidden, and still published so i can link to it as needed
  • l

    LividJava

    12/09/2022, 6:03 PM
    i know i can do it per note, but i want it for meta and all its children
  • l

    LividJava

    12/09/2022, 6:04 PM
    so anything new is just automatically bidden from navigation but still published
  • s

    ScriptAutomate

    12/09/2022, 6:12 PM
    Ah, I think if you do top level, in
    meta
    using
    nav_exclude: true
    , that it will exclude the
    meta.*
    hierarchy but still publish the pages
  • l

    LividJava

    12/09/2022, 6:12 PM
    Alright, right now
    meta
    is just a stub so i'll just make the page for it then and all of its children will be excluded
  • l

    LividJava

    12/09/2022, 6:12 PM
    thanks
  • l

    LividJava

    12/09/2022, 6:13 PM
    might peek in on how the dendron wiki did it just in case
  • s

    ScriptAutomate

    12/09/2022, 6:13 PM
    I think dendron wiki did the same method, making the stub file and then adding to the frontmatter
  • s

    ScriptAutomate

    12/09/2022, 6:14 PM
    https://github.com/dendronhq/dendron-site/search?q=nav_exclude
  • l

    LividJava

    12/09/2022, 6:14 PM
    yeah that seems to be the way to do it
  • l

    LividJava

    12/09/2022, 6:14 PM
    thanks
  • n

    NiobiumRedwood

    12/09/2022, 7:25 PM
    Greetings, I am having a hard time getting the dendron paste image vscode extension working. I've tried this on a few workstations and it simply doesn't paste. I can paste image in other apps so I know it's in the clipboard but keyboard shortcut doesn't work nor the command palette. Am I missing something here?? Thank you
    s
    • 2
    • 2
  • s

    ScriptAutomate

    12/09/2022, 9:00 PM
    Dendron Paste Image
  • k

    K-RITE

    12/10/2022, 11:09 AM
    I need some help. I'm new to this, Guides are a little confusing for me. Imma share my use case lemme know how can I bring in Dendron, I maintain a note keeping repo, It's for academic, I have each folder for each subject, Sometimes i also need to paste images/screenshots. I format the file name date wise, Sometimes I also add codes in folders too.
  • t

    Teltrix

    12/10/2022, 11:07 PM
    Has anyone set up a cli tool that includes the fuzzy lookup feature like in VS Code?
  • b

    benhsm | Jack of N trades

    12/11/2022, 2:13 PM
    I have a script that looks something like:
    Copy code
    sh
    #!/bin/sh
    # Looks up a Dendron note and opens it in an editor
    
    # Dependencies:
    # fzf, fd, dendron-cli
    # 
    # Required env variables:
    #   DENDRON_DIR -> Set to workspace root directory
    #   DENDRON_VAULT -> Set this to the vault you want to use
    
    # Usage: if a note exists, select it from the fzf prompt with 'enter' to view/edit it.
    #        if the note doesn't exist, use the binding 'ctrl-l' to create a new note with that name
    
    cd "$DENDRON_VAULT" || exit
    
    NOTE="${1:-$(fd -c never --exclude assets --exclude "./*.yml" --strip-cwd-prefix | sed -E 's/\.[^.]*$//' | fzf --height 90% --margin 5% --layout=reverse --border --bind ctrl-l:print-query --preview='bat --terminal-width 70 --wrap=auto --style numbers,changes --color=always {}.md')}"
    
    if test -z "$NOTE"; then 
    #    printf "\nNo input. Doing nothing.\n"
        exit;
    fi;
    
    if test -f "$NOTE.md"; then
        exec $EDITOR "${NOTE}.md" || echo "There was a problem"
    else
        dendron note lookup_legacy --quiet --wsRoot "$DENDRON_DIR" --attach --useLocalEngine --enginePort 3999 --query "$NOTE"
        exec "$EDITOR" + "${NOTE}.md" || echo "There was a problem"
    fi
    
    clear
  • b

    benhsm | Jack of N trades

    12/11/2022, 2:20 PM
    a simple way to start would be to have one hierarchy for each subject, and use [dendron paste image]() to add images. So your note tree would look something like:
    Copy code
    subject-1.<name-date>
    subject-2.<name-date>
    subject-3.<name-date>
    In a flat folder. As for code files, I believe dendron will still index those, or at least won't mess with them If you want to keep on using folders, you could try a setup where you have a dendron vault per subject
  • k

    K-RITE

    12/11/2022, 5:31 PM
    if i make diff subjects followed by .md will it create seperate hierarchy or i need to run some cmd?
1...735736737...757Latest