adxsoft / logseq-query-builder-plugin Goto Github PK
View Code? Open in Web Editor NEWA logseq plugin that generates advanced queries from simple commands
License: MIT License
A logseq plugin that generates advanced queries from simple commands
License: MIT License
Hi @adxsoft , this is my second post as review for this plugin.
The issue is, if I use tab
as indentation the line code is not processed, current workaround is I should use space
twice for 1 level indentation.
This is the example using tab:
title: Example Commands
- blocks
[tab]- *endingtext
Result:
#+BEGIN_QUERY
{
:title [:b "Example Commands"]
:query [:find (pull ?block [*])
:where
[?block :block/content ?blockcontent]
[?block :block/page ?page]
[?page :block/name ?pagename]
]
}
#+END_QUERY
Using space:
title: Example Commands
- blocks
[space][space]- *endingtext
Result:
#+BEGIN_QUERY
{
:title [:b "Example Commands"]
:query [:find (pull ?block [*])
:where
[?block :block/content ?blockcontent]
[?block :block/page ?page]
[?page :block/name ?pagename]
[(clojure.string/starts-with? ?blockcontent "endingtext")]
]
}
#+END_QUERY
Thanks.
Hai @adxsoft , thanks for your cool plugin. I found something that I think its an issue.
When I generate this code, to search block with a starting text
title: Example Commands
- blocks
- startingtext*
The generated query is to search block with a ending text
#+BEGIN_QUERY
{
:title [:b "Example Commands"]
:query [:find (pull ?block [*])
:where
[?block :block/content ?blockcontent]
[?block :block/page ?page]
[?page :block/name ?pagename]
[(clojure.string/ends-with? ?blockcontent "startingtext")]
]
}
#+END_QUERY
Likewise for the code to search block with a ending text.
Plugin fails to load. Seems to hang.
Thank you
As title.
This is a super cool plugin, but I think repo wiki is a better way to show the docs?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.