kevins8
08/28/2020, 4:16 PMLookupProvider
is responsible for integrating the lookup results with the engine. the specific code is here: https://github.com/dendronhq/dendron/blob/master/packages/plugin-core/src/components/lookup/LookupProvider.ts#L285jojanaho
08/28/2020, 4:18 PMconst resp = await engine.query(querystring, opts.flavor);
)jojanaho
08/28/2020, 4:18 PMkevins8
08/28/2020, 4:19 PMdebugger;
statement inside the engine.query
. this will cause vscode to break inside the compiled .js
codekevins8
08/28/2020, 4:20 PMkevins8
08/28/2020, 4:21 PMls -l | awk '{print $9}'
, i can re-create the file names and try to repro the issuejojanaho
08/28/2020, 4:29 PM.
āāā dendron.code-workspace
āāā docs
āĀ Ā āāā assets
āĀ Ā āĀ Ā āāā images
āĀ Ā āĀ Ā āāā logo-banner.png
āĀ Ā āĀ Ā āāā logo.png
āĀ Ā āāā _config.yml
āĀ Ā āāā favicon.ico
āĀ Ā āāā Gemfile
āāā vault
āāā journal.2020.08.01.md
āāā journal.2020.08.28.md
āāā journal.2020.08.md
āāā journal.2020.09.md
āāā journal.2020.md
āāā journal.2020.w.22.md
āāā journal.md
āāā journal.template.daily.md
āāā journal.template.weekly.md
āāā journal.template.yearly.md
āāā journal.weekly.md
āāā pro.md
āāā root.md
āāā .vscode
āāā dendron.code-snippets
jojanaho
08/28/2020, 4:29 PMjojanaho
08/28/2020, 4:32 PMjournal
. If i add dot to it (journal.
), only thing I see is "Create New"jojanaho
08/28/2020, 4:34 PMjojanaho
08/28/2020, 4:34 PMjojanaho
08/28/2020, 4:37 PMjojanaho
08/28/2020, 4:37 PMtitle: 2020-08-01
jojanaho
08/28/2020, 4:38 PMjojanaho
08/28/2020, 4:38 PMkevins8
08/28/2020, 4:38 PMengine.query
unless we have to. when you first start a lookup, we search for everything under the current hierarchy.
https://github.com/dendronhq/dendron/blob/master/packages/plugin-core/src/components/lookup/LookupProvider.ts#L295:L295
so journal -> ""
, journal.foo -> journal.*
the reason you're not seeing anything for journal is that we also have a special case for ""
where we only show you the 1st level results to not overwhelm you if you're at the root
https://github.com/dendronhq/dendron/blob/master/packages/plugin-core/src/components/lookup/LookupProvider.ts#L316:L316kevins8
08/28/2020, 4:39 PMkevins8
08/28/2020, 5:04 PMgray-matter
to parse md frontmatter and by default, it will parse unquoted dates as a time stamp. we use fuse.js
to search doc frontmatter and its not happy when it finds said timestamp
https://github.com/jonschlinkert/gray-matter/issues/62kevins8
08/28/2020, 5:05 PMjojanaho
08/28/2020, 6:27 PMkevins8
08/28/2020, 6:44 PMjojanaho
08/28/2020, 8:17 PMengine.query
unless we have to. when you first start a lookup, we search for everything under the current hierarchy.
@User : Have you considered using LSP (Language Server Protocol) for dendron? This would delegate all the heavy lifting and caching into separate process, keeping everything snappy in the UI; basically the workspace could be loaded (and the related index constructed) e.g. when a dendron vault have been found from the workspace.kevins8
08/28/2020, 8:19 PMkevins8
08/28/2020, 8:21 PMjojanaho
08/28/2020, 8:24 PMkevins8
08/28/2020, 10:39 PMuser
08/30/2020, 4:01 AMimalightbulb
08/30/2020, 4:02 AMimalightbulb
08/30/2020, 4:02 AMkevins8
08/30/2020, 4:03 AM