Commit Graph

3123 Commits

Author SHA1 Message Date
Gabriel Horner
b135b9c880 enhance(dev): task to vendor nbb deps for release 2025-08-11 17:05:39 -04:00
Gabriel Horner
9c6b7a2a6d fix: correct api calls
Also update cli install instructions
2025-08-11 17:05:39 -04:00
Gabriel Horner
a60b1177d2 Add readme and confirm logseq installs as a local CLI 2025-08-11 17:05:39 -04:00
Gabriel Horner
c67e254b4a enhance: search cmd highlights search term and
allows for user specified limit of results.
Also enabled nbb-logseq tests for cli since first
test was introduced
2025-08-11 17:05:39 -04:00
Gabriel Horner
81b3c65d6a enhance: add api-based search cmd
Also add error handler for required option since
search cmd has one
2025-08-11 17:05:39 -04:00
Gabriel Horner
a0912b5fd9 fix: api query should return same as default query
Print as edn and unwrap nested datalog results
2025-08-11 17:05:39 -04:00
Gabriel Horner
fd0f54b9f9 enhance: query can optionally use api 2025-08-11 17:05:39 -04:00
Gabriel Horner
0dfcd64d2d enhance: help cmd prints args and options usage 2025-08-11 17:05:39 -04:00
Gabriel Horner
465dceae17 enhance: add export edn command
Also DRY up graph-dir related fns
2025-08-11 17:05:39 -04:00
Gabriel Horner
0ecc41e19e enhance: unexpected failures print more helpful stack and context 2025-08-11 17:05:39 -04:00
Gabriel Horner
cf02369a20 enhance: query DB graph(s) 2025-08-11 17:05:39 -04:00
Gabriel Horner
6f1d6bd437 chore: add clj-kondo config 2025-08-11 17:05:39 -04:00
Gabriel Horner
a64bea57c8 enhance: add --version
Also print global options in help and error if db version not installed
2025-08-11 17:05:39 -04:00
Gabriel Horner
f86a7558c8 chore: add workflow for cli linters 2025-08-11 17:05:39 -04:00
Gabriel Horner
1b1a4e5004 enhance: show can display multiple graphs
Also git-sha may not be present on older graphs
2025-08-11 17:05:39 -04:00
Gabriel Horner
38c6c99faa enhance: show graph cmd 2025-08-11 17:05:39 -04:00
Gabriel Horner
241c1c104e refactor: have one fn to fetch ~/logseq/graphs dir
Also add deps.edn to cli dep which is needed for reuse with frontend
2025-08-11 17:05:39 -04:00
Gabriel Horner
887d91d2ac enhance: start CLI dep and implement list command
Also move common db graph list to shared ns and move common prefix
constants to common-config
2025-08-11 17:05:39 -04:00
charlie
5c3d04ca6d Merge branch 'master' into enhance/mobile-silk 2025-08-11 10:31:45 +08:00
Tienson Qin
12e1f35cc4 enhance(ux): filter by empty and not empty value 2025-08-10 22:53:05 +08:00
Tienson Qin
921d815491 fix: filter datetime rows filter out rows with empty value
fixed https://github.com/logseq/db-test/issues/386
2025-08-10 21:14:53 +08:00
charlie
5e6e5596aa Merge branch 'master' into enhance/mobile-silk 2025-08-10 10:50:38 +08:00
rcmerci
ca4b5c5266 fix(export): ignore :logseq.property/created-by-ref when export-edn 2025-08-08 14:10:05 +08:00
Tienson Qin
da73a6c48e fix: add journal day ref to scheduled and deadline properties only
not all :datetime properties
2025-08-08 00:09:58 +08:00
charlie
45499ba587 Merge branch 'master' into enhance/mobile-silk 2025-08-07 11:28:55 +08:00
Gabriel Horner
707f49bc4f fix: nbb-logseq bundling and quirky datascript requires (#12032)
* fix: nbb-logseq bundling and quirky datascript requires

* fix: bump nbb-logseq for node version incompatibility
2025-08-06 13:16:50 -04:00
Tienson Qin
4960790857 add silk sidebar and persistent sheet 2025-08-05 22:09:36 +08:00
Tienson Qin
a4d41f63ef Merge branch 'master' into enhance/mobile-silk 2025-08-05 19:27:16 +08:00
Tienson Qin
d84d3f9652 enhance(ux): set/unset #Page to convert between page and block (#11970)
* enhance(ux): add/remove #Page to toggle page/block

* enhance(ux): "p t" to set tags for selected blocks

Updated "p a" to toggle displaying all properties including hidden ones.

* feat: cmd+k move blocks

* fix: block could be converted to page and create invalid nodes

Pages with block namespace parents is nonsensical and pages in
property values led to multiple validation errors. Also guard
against class and property pages as namespace parents

* fix: warn on failed cut+paste or indent/outdent of page blocks. Better to warn than silent failure which leaves user confused on
what happened. 

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2025-08-05 17:45:57 +08:00
charlie
ebc14a51f7 Merge branch 'master' into enhance/mobile-silk 2025-08-02 10:16:14 +08:00
Gabriel Horner
182a51a85e fix: publishing app in prod mode
Also fix watch-publishing-frontend which had stopped working awhile back
with shadow-cljs update
2025-08-01 17:56:39 -04:00
Tienson Qin
1fe46682e4 Merge branch 'master' into feat/hnswlib+transformer-js 2025-08-01 00:14:28 +08:00
Tienson Qin
8c402676a9 fix: page references with same name in one block (#12017)
* fix: page references with the same name in one block

* fix: empty :block/name for Library pages

* fix: invalid call to uuid-string?

trace suddenly showing up in multiple CLI calls

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2025-08-01 00:09:31 +08:00
Tienson Qin
67a0f7cd8c Merge branch 'master' into feat/hnswlib+transformer-js 2025-07-31 20:08:29 +08:00
Tienson Qin
9ed4cdc34d fix: blocks in Library pages have incorrect page relationship
fixed https://github.com/logseq/db-test/issues/394
2025-07-31 17:53:35 +08:00
charlie
19ad5fb8c1 Merge branch 'master' into enhance/mobile-silk 2025-07-31 13:05:49 +08:00
Tienson Qin
4455dfca8d fix: backlinks context doesn't work for file graphs 2025-07-30 17:31:28 +08:00
Tienson Qin
110f5b18e5 Merge branch 'master' into feat/hnswlib+transformer-js 2025-07-28 12:29:32 +08:00
charlie
5f9b38b08b Merge branch 'master' into enhance/mobile-silk 2025-07-25 16:15:15 +08:00
Gabriel Horner
09e60ae296 fix: deleting last extends value doesn't revert to Root
Fixes https://github.com/logseq/db-test/issues/387
2025-07-24 10:50:33 -04:00
charlie
d63d5dce09 Merge branch 'master' into enhance/mobile-silk 2025-07-24 08:29:58 +08:00
Tienson Qin
d488c53fd6 adjust page/object sorting weight 2025-07-23 22:12:20 +08:00
Tienson Qin
6a22385f0b replace uuid ref with block title when embedding 2025-07-23 20:54:29 +08:00
Gabriel Horner
6ef1c62e95 chore: mv sanitize-filename into exporter
should fix outliner CI as it never loads exporter
2025-07-22 12:24:14 -04:00
Gabriel Horner
5de565dcce fix: some pdf annotations weren't imported
. Creation of edn+md paths from pdf path were lacking sanitization which
resulted in edn and md files not being associated with pdf

Fixes https://github.com/logseq/db-test/issues/196#issuecomment-3059363947.
Also fix incorrect dep
2025-07-22 12:24:14 -04:00
Gabriel Horner
6b3240f4b5 fix: imported pdf annotation image not showing up
in pdf viewer under Outline > Highlights
2025-07-22 08:57:21 -04:00
Gabriel Horner
f4a8b9438e fix: block references to annotations
Don't rewrite annotation uuids as we don't do that for other existing blocks
2025-07-22 08:57:21 -04:00
Gabriel Horner
ad5c776f46 fix: doc files in assets shouldn't be extracted
Asset files that are edn or md were being treated like assets and
extracted as doc files. This was noticed because pdf annotation edn was being
needlessly extracted
2025-07-22 08:57:21 -04:00
Gabriel Horner
3f21c297b2 enhance: import markdown annotations
for pdfs and any children blocks under highlight. Only
imports text from md annotations
2025-07-22 08:57:21 -04:00
Gabriel Horner
4c9d063323 enhance: import pdf area annotations 2025-07-22 08:57:21 -04:00