Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: resolve datascript query inputs with Logseq DSL for plugins #5047

Merged
merged 2 commits into from Apr 24, 2022
Merged

feat: resolve datascript query inputs with Logseq DSL for plugins #5047

merged 2 commits into from Apr 24, 2022

Conversation

pengx17
Copy link
Contributor

@pengx17 pengx17 commented Apr 23, 2022

  1. allow plugins to pass in :today etc in logseq.DB.datascriptQuery
logseq.DB.datascriptQuery(
  `[:find (pull ?h [*])
            :in $ ?start ?next
            :where
            [?h :block/marker ?marker]
            [?h :block/refs ?p]
            [?p :block/journal? true]
            [?p :block/journal-day ?d]
            [(> ?d ?start)]
            [(< ?d ?next)]]`,
  ":today",
  ":7d-after"
);
  1. fix a display issue of query DSLs

截屏2022-04-23 19 52 06

@pengx17 pengx17 requested review from logseq-cldwalker, tiensonqin and xyhp915 and removed request for logseq-cldwalker April 23, 2022 11:50
Copy link
Collaborator

@cnrpman cnrpman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pengx17
Copy link
Contributor Author

pengx17 commented Apr 23, 2022

should fix #5045

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants