Coder Social home page Coder Social logo

logseq-query-builder-plugin's People

Contributors

adxsoft avatar xyhp915 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

xyhp915 gangulabs

logseq-query-builder-plugin's Issues

Unable to use `tab` as Indentation

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.

Problem with `starts-with` and `ends-with`

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.