Commit Graph

298 Commits

Author SHA1 Message Date
llcc
f02c21c95b fix: link property causes wrong pages creation 2022-03-08 14:16:28 +08:00
Gabriel Horner
482e36783e Add test for #4476 fix 2022-03-08 13:58:02 +08:00
Gabriel Horner
3987395ab5 Merge branch 'master' into fix/dsl-query-boolean-operators 2022-03-04 09:54:23 -05:00
Gabriel Horner
7f78c8d933 Rewrite tests from #4382 to use with-redefs
No need to have set-marker impl copied with with-redefs. Move tests to
its corresponding test ns
2022-03-02 15:52:03 -05:00
llcc
1d420965bd fix tests 2022-03-02 13:04:18 +08:00
llcc
d7d7e94928 Merge branch 'master' into fix-wrong-logbook-creation 2022-03-02 10:57:08 +08:00
llcc
5e0a4b786b add test for set-marker 2022-03-02 10:43:46 +08:00
Gabriel Horner
12395c61fb Introduce rules to query-dsl
Fixes #4217 as each use of page-property have unique bindings that don't
clobber each other
2022-03-01 16:46:27 -05:00
Gabriel Horner
ce618443bf Improve query dsl tests
- Each dsl test can load its own test data
- Refactored property and page-property tests to test accuracy
  of each
- Also added humane-test-output to make diff easier to read when tests
  fail
- Also fixed weird behavior of test runner that runs all tests when no
  tests selected
2022-03-01 16:42:19 -05:00
Gabriel Horner
50e5764369 Fix --exclude option
Subtle annoying bug with symbol. Also allos multiple exclude options
2022-02-28 16:27:22 +08:00
Gabriel Horner
12712f83f1 Fix intermittent test-data staleness for test runner 2022-02-28 16:27:22 +08:00
Gabriel Horner
35d2023e24 Add shadow test runner that provides most test-runner like options 2022-02-24 22:45:52 +08:00
Tienson Qin
db7d1cde09 fix: CI tests and lint warnings 2022-02-24 16:35:26 +08:00
Tienson Qin
c678fa15e6 fix: can't parse graphs because of links regular expressions
close #4308
2022-02-24 16:35:26 +08:00
Gabriel Horner
b0babf2232 Change export to not depend on printing - close #4211 2022-02-24 00:32:30 +08:00
leizhe
86ea102b89 fix(android): app crashes 2022-02-20 23:41:02 +08:00
Tienson Qin
e1064d21d3 fix: page/block refs not working
close #4289
2022-02-19 13:29:34 +08:00
Tienson Qin
e55b666429 chore: remove unused react-impls 2022-02-19 12:47:15 +08:00
Gabriel Horner
c6d03b67ab Merge branch 'master' into dev/var-sizes-linter 2022-02-08 12:02:39 -05:00
Tienson Qin
6151ca9c09 fix: CI tests 2022-02-08 22:54:18 +08:00
Gabriel Horner
2213a4e33d Add tests for get-file-path in #4010 2022-02-08 15:05:18 +08:00
Gabriel Horner
1df386ecca Add regression tests for querying properties with links
These tests were fixed by f1728c48cb

Also cleaned up more of query and tests i.e. split up large fns
2022-02-08 14:47:08 +08:00
Gabriel Horner
5a126027eb Fix #4007 to allow linked integer page links to match property query 2022-02-08 14:47:08 +08:00
Gabriel Horner
f25e49c8d0 Rename non-boolean fns to not end in '?'
'?' usually indicate that the fn returns a boolean. This can be
confusing as seen by mistaken util/url? entry in
2401ce9e9a (diff-d5720cb6221452c421a80ce9e8df86cce229e69ac53b10506161ffcfbf3d6889)
2022-02-08 14:47:08 +08:00
Gabriel Horner
203c39828f Fix #4088 by reverting plain link regex
The link tests weren't being run because test namespaces need to end with '-test'.
Since these tests weren't being run, they didn't catch when the
plain-link regex was borked in #3520
2022-02-08 14:47:08 +08:00
Gabriel Horner
e81678fc69 Mark most vars as cleanup-todo
Fixed a few that I knew how to QA and were low risk
2022-02-04 16:57:49 -05:00
Gabriel Horner
b3ee61b1ca Remove more unused fns 2022-01-27 14:11:59 -05:00
Gabriel Horner
757ac40fdd Add tag and url support for follow-link-under-cursor cmd
Plain urls, markdown urls and org mode urls all work
2022-01-22 00:01:11 +08:00
Tienson Qin
2401ce9e9a fix: property regression : # should be a delimiter
Close #3916

Tests added.
2022-01-16 12:39:41 +08:00
Gabriel Horner
8cca1dd6b1 Enable disabled extract tests that kondo was warning us about
I did have to reintroduce :block/level in extract for tests to pass
2022-01-12 00:22:37 +08:00
Gabriel Horner
97632c8c25 Fix up most lints in src/test 2022-01-12 00:22:37 +08:00
charlie
9c89c6395b fix(editor): back/forward cursor for emoji char 2022-01-10 16:58:01 +08:00
charlie
33fbb0aa1b fix(editor): backspace for emoji char 2022-01-10 16:58:01 +08:00
Tienson Qin
a175b51684 fix: nested and query issues and full-text search in nested queries
Related to #3630.

Full text search example in a nested query:
(and [[page]] "query")
2021-12-30 00:32:56 +08:00
Tienson Qin
4cae0f9ebd fix: ci 2021-12-27 12:37:06 +08:00
Tienson Qin
6fb7121397 feat: multiple windows support 2021-12-21 23:05:28 +08:00
Tienson Qin
7822848af8 chore: remove :block/title, :block/body and :block/unordered
For two reasons:

1. Reducing memory usage, both block/title and block/body are AST parsed
by Mldoc. After removing, logseq is able to handle 10k notes.

2. Simplify the db schema
2021-12-08 10:46:45 +08:00
Tienson Qin
dbef0c3d10 fix: ci 2021-11-24 23:11:21 +08:00
Gabriel Horner
24807eef17 Fix clj test so that it passes
roam-test was no longer clj compatible with dependence on text and date
namespaces. Added to CI to ensure clj tests continue to pass
2021-11-22 14:59:57 +08:00
leizhe
d84fec72e5 fix: sometimes two dots are used in page reference link in org 2021-11-22 13:58:28 +08:00
Junyi Du
daae4932ad Some fix according to lint 2021-11-18 21:13:35 +08:00
Tienson Qin
054436f16d fix: ci 2021-11-11 00:00:12 +08:00
Tienson Qin
829c8ebb8d fix: there's no auto-complete if the cursor moves back to [[]]
Related to #538
2021-11-10 23:36:53 +08:00
llcc
793c814dc4 Refactor properties code (#3104)
* enhance(properties): display various links well

* refactor(properties): split get-property-keys

* refactor(properties): add some testcases

Co-authored-by: leizhe <leizhe@leizhedeMacBook-Air.local>
2021-11-10 11:53:44 +08:00
leizhe
33b1e7831e fix page-ref replacement if non-slash in path 2021-11-10 11:52:48 +08:00
leizhe
008d5e14a1 enhance(properties): display various links well 2021-11-10 11:32:32 +08:00
leizhe
7e985ed7c9 enhance page-ref-un-bracket!
This solves some issue when renaming page.
1. The embeded references will be updated which was not supported before.
2. query supports orgmode link now.
2021-11-09 15:41:36 +08:00
leizhe
86302b41f1 enhance get-page-name and add some tests 2021-11-09 10:40:25 +08:00
leizhe
0fe778e3e8 fix testcase
remove format specific code for general testing.
2021-11-08 11:21:17 +08:00
Tienson Qin
4b21b0d476 fix: ci 2021-11-04 20:30:54 +08:00