kevins8
10/03/2020, 6:51 PMBassmann
10/04/2020, 7:14 PMkevins8
10/04/2020, 8:29 PM.
, dendron will suggest valid children that match. the problem is that vscode's input widget (what dendron uses for lookup) does not support autocomplete. have some ideas about allowing this using a web view but it's currently blocked on us finishg our server side migration https://dendron.so/notes/725d99be-fadd-4464-88c3-0a5fcc7292c7.htmluser
10/05/2020, 12:51 AMuser
10/05/2020, 12:52 AM#text
as tags) nor foam, I think only Zettler does something like thisuser
10/05/2020, 12:53 AMkevins8
10/05/2020, 1:55 AM#{foo}
--> this is how obsidian and most editors do it
2. using #[[{foo}]]
--> this is how roam does it
3. using [[tag.{foo}]]
--> this was originally pioneered by @User and is how i would recommend doing tags in dendron
1. if you use method 1, you could find it by doing a search or right clicking and selecting "find all references"
2. if you use method 2, you can find all documents via backlinks of the {foo}.md
3. method 3 is a special case of method 2 where instead of a page, your tags have their own hierarchy. this helps with autocomplete and you get the benefits of 2. plus you can even style it in the preview by using the following instructions:
https://dendron.so/notes/692fa114-f798-467f-a0b9-3cccc327aa6f.html#stylized-tags-using-custom-cssLicat
10/05/2020, 2:09 AMgnomesoup
10/05/2020, 4:14 AMkevins8
10/05/2020, 4:27 AMtfer
10/05/2020, 5:22 AMkevins8
10/05/2020, 5:31 AMuser
10/05/2020, 6:44 AMuser
10/05/2020, 6:44 AMrobothor
10/05/2020, 7:51 AM"tag_insert": {
"prefix": "#",
"scope": "markdown",
"body": [
"[[#${1:my-tag}|tag.${1}]]"
]
}
Some variant might simplify some of the editing of these.Buxel
10/05/2020, 10:47 AMuser
10/05/2020, 12:17 PM#{foo}
--> this is how obsidian and most editors do it
> 2. using #[[{foo}]]
--> this is how roam does it
> 3. using [[tag.{foo}]]
--> t
I ended using the third option with a different tag structure for books tag.book.sci-fi
, snippets tag.lang.cpp
etc....robothor
10/05/2020, 12:30 PM$1
, $2
, $3
etc are tab stops
- ${1:default}
is an example of a placeholder -- as you tab through the fields, this one will have default
selected so you can replace it. This is what I did in the tag snippet I posted aboveuser
10/05/2020, 12:34 PMpeople.Bob
with the title: Bob
in the frontmatter. When writing in my daily note, I'd like to insert [[Bob | people.Bob]]
using Intellisense completion. Right now, it looks like I can auto-complete [[people.Bob]]
then manually insert the Bob
alias after. Bob
reads more naturally in text than people.Bob
, so I'd rather see the note title in the Markdown preview.
Sorry if I missed something obvious in the docs, but is there a way to auto-complete a wikilink with the frontmatter title as the alias?qqq
10/05/2020, 12:40 PMtfer
10/05/2020, 2:05 PMtfer
10/05/2020, 2:14 PMkevins8
10/05/2020, 3:10 PM$0
symbol will place the snippet after expansion.
as far as default snippets, you're right. this will be included in the next update!kevins8
10/05/2020, 3:14 PMkevins8
10/05/2020, 3:14 PMkevins8
10/05/2020, 4:31 PMuser
10/05/2020, 9:04 PMkevins8
10/05/2020, 9:06 PMuser
10/05/2020, 9:07 PMuser
10/06/2020, 12:00 AM