From 3b0d95ab87dbddaa7e529a8dd57612b23409ad92 Mon Sep 17 00:00:00 2001 From: Sergey Kolesnik Date: Mon, 10 Apr 2023 16:09:07 +0300 Subject: [PATCH] feat: support @-syntax for getting properties with dev.get --- src/tags.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tags.ts b/src/tags.ts index c265a2d..1eae1f2 100644 --- a/src/tags.ts +++ b/src/tags.ts @@ -191,6 +191,8 @@ function get(context: ILogseqContext, path: string): string { path = _arg(path) + path = path.replaceAll('@', '.props.') + const parts = path.split('.') if (parts[0] === 'c') parts.shift() @@ -198,7 +200,7 @@ function get(context: ILogseqContext, path: string): string { return getByPath(context, parts) ?? '' } -/* search */ +/* query */ // where: source // how: tree-path-spec, by prop, by ancestor? // what: