fudo
05/18/2021, 5:03 PMcodefriar
05/18/2021, 5:38 PMfudo
05/18/2021, 5:59 PMjson
"yaml.schemas": {
"./schemas.json": "**/*.schema.yml"
}
To your dendron.code-workspace fileLars Solberg (xeor)
05/18/2021, 6:41 PMonCreate
hook (or the other hooks) do file-operations like renames on the note? Example, if I create a note named journal.+1
, or something similar, would I be able to rename it from a hook to journal.2021-05-19
based on the hooks code? Is there any side-effects on doing this? I really want to make myself a tiny syntax-language to support this kind of stuff.. new.todo
, work #project1
, and so on..
* Can a hook display an input-box and wait for it's response and use that respons for something? Example, if I do journal.2021-05-18
, I really want it to force me to type something, example #project
, and my hook will search and link to all matching notes with #project
in the content. Or combined with the rename notes
function, I would like it to use the input as part of the new filename..
Hooks are powerfull stuff! Love em!codefriar
05/18/2021, 7:14 PMkevins8
05/18/2021, 8:21 PMfname
property, that also changes where the file gets written to
> display an input-box
hooks don't have additional inputs besides the inbuilt metadata for lifecycle vents. for more dynamic functionality, it might do to invest in an actual plugin systemkevins8
05/18/2021, 8:21 PMfudo
05/18/2021, 9:17 PMLars Solberg (xeor)
05/18/2021, 9:24 PMvscode.window.showInputBox
, but I don't think I have a way of using vscode or the window object inside a hook? Trying to require('vscode') doesnt work either.. Is there a way the vscode object could be sent in as a parameter as well into the hook function?kevins8
05/18/2021, 10:31 PMdev-dendronPanel
branch.
Instructions on launching the next server is here: https://wiki.dendron.so/notes/9aa25182-4f40-45ce-b94c-f9eaf7a9a073.html#development
Updating the theme is here: https://wiki.dendron.so/notes/1698aef0-efd4-4c92-a3b0-5ca702b228a3.html#updating-the-theme
Currently we just have the light/dark theme but in the future, we will make it possible for folks to generate their own themes to use with Dendron8brandon
05/18/2021, 10:41 PMLars Solberg (xeor)
05/19/2021, 9:07 AMwindow.showInputBox
inside the hook. It worked perfectly when I was using const { window } = require("vscode");
😄kevins8
05/19/2021, 3:34 PMvscode
as part of the hook signature but looks like you already have access to it 🙂codefriar
05/19/2021, 3:36 PMLars Solberg (xeor)
05/19/2021, 3:37 PMLars Solberg (xeor)
05/19/2021, 3:38 PMkevins8
05/19/2021, 5:20 PM8brandon
05/19/2021, 6:53 PMdendron-design-system
for theme files. Then all the other projects can use it for a consistent theme.kevins8
05/19/2021, 8:17 PMLars Solberg (xeor)
05/20/2021, 9:18 AMfudo
05/20/2021, 10:46 AMkevins8
05/20/2021, 2:10 PMcodefriar
05/20/2021, 2:16 PMcodefriar
05/20/2021, 2:17 PMcodefriar
05/20/2021, 2:19 PMkevins8
05/20/2021, 2:21 PMcodefriar
05/20/2021, 2:22 PMcodefriar
05/20/2021, 2:22 PMcodefriar
05/20/2021, 2:22 PMvicrerdgz
05/20/2021, 2:27 PM