Commit Graph

8263 Commits (c3799b3f23a65ccf8e57b59d53e53fe80e6e4b66)

Author SHA1 Message Date
Tienson Qin b6a7a11fac fix: safe check block content 2022-08-04 21:23:11 +08:00
Tienson Qin db700fe740 fix: Aliases where both pages exist break linked references
related to #6263
2022-08-04 21:16:12 +08:00
Tienson Qin f1ee980e47 fix: do not overwrite .md file if it already exist
close #1332
2022-08-04 21:01:25 +08:00
Tienson Qin 59b924f25d fix: CI 2022-08-04 17:25:29 +08:00
Gabriel Horner 4ec5827902 Move block-ref fns and vars to their own ns
Similar to page-ref to keep namespaces explicit
2022-08-04 17:25:29 +08:00
Gabriel Horner e0b1f6b2de Move common uses of page-ref to its own ns
By having a specific ns for page-ref utils, our code is more readable
and intention revealing. Also found that
text/{get-page-name,page-ref-un-brackets!} was getting called in
contexts that didn't make sense e.g. query layer was checking for
markdown and org page-refs
2022-08-04 17:25:29 +08:00
Gabriel Horner 8be0deecd0 Move markdown property colons into a var 2022-08-04 17:25:29 +08:00
Gabriel Horner 001e0d302d Finish block-ref helpers
There were a couple scattered in 2 text namespaces and there were
a couple uses of block-ref that involved escaping.
Removed block-ref-un-brackets! once it was seen as the equivalent
of an or statement
2022-08-04 17:25:29 +08:00
Gabriel Horner a3d30e0b52 Move all block ref parens strings to vars
Extracted a couple fns we kept reinventing across namespaces
2022-08-04 17:25:29 +08:00
Tienson Qin e1e8ff8a92 fix: paste copied quote block got messed content
close #6229
2022-08-04 13:47:22 +08:00
Gabriel Horner b66ec9cd9f Add tests to confirm property completion fix
Move current-line to specific clause for performance as fn is run on every keystroke
2022-08-04 13:43:10 +08:00
maxweilun1989 d12437722d fix: only show perperty search when current line is wrapped by . #6146 2022-08-04 13:43:10 +08:00
Tienson Qin a1ca6820df
Fix: broken linked references (#6105)
* enhance: clicking the refresh button if a query is slow

* fix: skip running slow queries if there's no need to refresh

* fix: linked reference filtering does not work on TASK items

close #1669

* fix: each block should have its own page as a reference when query page references

* fix: references

* fix: non consecutive blocks in query result and filtered linked references

* simplify filters logic

* fix: ref numbers

* Save both :block/refs and :block/path-refs for different usage

* fix: block refs

* enhance: move scheduled and deadlines to its own ns

* linked references performance tweaks

* mouse hover filters icon to expand the collapsed linked refs

* perf: react/refresh! once instead twice

* enhance: compute flashcards every hour instead of every 5s

* feat: macros as blocks

* feat: flashcards list

* fix: refed pages count

* fix: can't select in linked references

* fix: block editing on linked refs

* perf: editing in linked references

* enhance: update srs cards number when clicking flashcards

* Add a test for the case fixed in #6100

* Address feedbacks from Gabriel

* fix: Block Ref Indicator is missing from the references-blocks class

close #5375

* fix: referenced pages

* fix: page refs

* fix: Using filters pushed the title property to the second block

close #5845

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-08-04 13:03:12 +08:00
charlie 0694154829 fix(lint): remove unused var 2022-08-03 18:38:49 +08:00
charlie d5e1ab5fbf fix(zotero): remove useless condition 2022-08-03 18:38:49 +08:00
charlie f82268207d fix(zotero): remove absolute file path from linked file path 2022-08-03 18:38:49 +08:00
Gabriel Horner e7110eea67
Merge pull request #6199 from maxweilun1989/fix/search-remove-accents
fix: add :feature/enable-search-remove-accents
2022-08-02 13:07:29 -04:00
Gabriel Horner 01c8f41b61 search-remove-accents config should default to existing behavior
Also start a default-config to start a data-first approach
to config
2022-08-02 12:48:45 -04:00
Gabriel Horner da6ba03ca3 Merge branch 'master' into fix/search-remove-accents 2022-08-02 11:53:51 -04:00
Phoenix Eliot 0747d5ccb7
Fix pasting race condition (#5964)
* Fix re-running e2e tests when it reuses old app instances

I'm not certain this doesn't break things for other OSes/setups, but it was required for e2e tests to run after the first time I ran them. It keeps a list of all previous (now missing) graphs in the sidebar, and this flow properly causes the new one to be selected, where the old flow did not match what the UI was doing anymore.

* Add e2e test for quickly pasting blocks after editing new blocks

* Fix pasting quickly after editing a new block

* Remove "test.only" focus

* Fix clicking add button in first test by closing error notification

* Improve some flaky race conditions in tests

* Remove unrelated waits in E2E tests

* Update playwright version; update tests to match

* Fix logic for checking if there are unsaved edits

* Fix typescript complaints

* Reduce how long we wait after closing each error popup
2022-08-02 10:54:09 -04:00
Yue Yang 50ed2cb2ed fix(style): cursor of restart text
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
2022-08-02 21:09:49 +08:00
Andelf 271700ec02
Merge branch 'master' into fix/search-remove-accents 2022-08-02 12:14:24 +08:00
Gabriel Horner 49fbdd0244
Merge pull request #6214 from logseq/fix/hidden-properties-in-autocompletion
Fix: Property completion for hidden properties and property ordering
2022-08-01 14:42:06 -04:00
maxweilun1989 85acd60b9c
fix: recent in sidebar do not remember it's state (#6144)
* fix: recent in sidebar do not remember it's state

* fix: recent in sidebar do not remember it's state

* fix: store the collapsed state of navigatin item in left side bar

* enhance: use react to handle toggling

Co-authored-by: Junyi Du <junyidu.cn@gmail.com>
2022-08-01 11:16:40 -04:00
Gabriel Horner 57b9547ba7
Merge pull request #6233 from joshaprior/nl-translation
Dutch translation
2022-08-01 10:48:24 -04:00
Andelf 09a16f7069
fix(template): tz wrong when expand template time variables (#6237)
* fix(template): tz wrong when expand template time variables

Fix #6234
2022-08-01 21:02:34 +08:00
Herman Sandoval 4d2e48026b
Spanish language strings added (#6217)
* Spanish language strings added

- New dictionary array strings added
- Dummy-notes and tutorial files created
2022-08-01 16:57:05 +08:00
joshaprior da70b862fe
add: dutch language (shortcut) 2022-07-31 17:25:20 +02:00
joshaprior f44f0d83ae
add: dutch language (frontend) 2022-07-31 11:30:26 +02:00
Gabriel Horner 42b7f5d189 Add two editable org built-in properties
Also ported old filetags property tests from b991599244.
2022-07-30 06:33:37 +08:00
Gabriel Horner f01e8d0ea9 Small cleanup for #6115
Move ns delimiter to vars and make remove-nested-namespaces-link more
clojure-like /cc @8N9KT
2022-07-29 10:30:09 -04:00
Gabriel Horner d298a15c32
Merge pull request #6115 from 8N9KT/fix/remove-namespace-parents-graph-links
fix: remove links for each level of the namespaces hierarchy pages in global graph view
2022-07-29 10:29:38 -04:00
charlie 98ace5593d improve(pdf): friendly breakline for multiple language highlights text 2022-07-29 14:17:31 +08:00
Gabriel Horner 9fa3f0a172 translation and property cleanup
- Caught a missing translation
- QAed that the following fns should refer directly to hidden-properties
  and not the larger umbrella of built-in-properties
2022-07-28 15:46:18 -04:00
Gabriel Horner b1c98ec09c Fix property ordering for large property maps
Fixes #4907. Issue was that we were losing sort order by converting a
linked/sorted map to a normal unsorted map.  Also ensure
properties-order is a vec to simplify edn serialization
2022-07-28 15:46:18 -04:00
Gabriel Horner f7ddfeffdf Fix hidden properties showing up in autocompletion 2022-07-28 15:46:18 -04:00
8N9KT b7cd440144 fix private functions test 2022-07-28 18:35:56 +02:00
maxweilun1989 78882b0051 fix: add some remember note for toggle :feature/enable-search-remove-accents? 2022-07-28 21:34:40 +08:00
8N9KT 7d6ecdf645 add test remove-links-for-each-level-of-the-namespaces 2022-07-28 15:27:59 +02:00
8N9KT a18500ac53
Merge branch 'logseq:master' into fix/remove-namespace-parents-graph-links 2022-07-28 15:26:51 +02:00
Alex L 178e2f51bb Clearer examples in config.edn 2022-07-28 15:49:45 +08:00
maxweilun1989 15a0f19a82 fix: add :feature/enable-search-remove-accents 2022-07-27 18:34:01 +08:00
Andelf 5e2487c6d8 chore(release): bump version 0.7.9 2022-07-27 14:36:25 +08:00
Jon 5af4b69b43
Fix #5856: Wrong order of switching images in maximize mode (#6068)
* Fix #5856: Wrong order of switching images in maximize mode

Co-authored-by: llcc <lzhes43@gmail.com>
2022-07-26 23:38:04 +08:00
Andelf 60c559bb24 fix(cards): only check when enabled 2022-07-26 22:46:22 +08:00
Andelf 8f30be684e fix(cards): only check when enabled 2022-07-26 22:46:22 +08:00
dependabot[bot] 82671fd612 chore(deps): bump terser from 5.7.1 to 5.14.2 in /libs
Bumps [terser](https://github.com/terser/terser) from 5.7.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-26 22:34:02 +08:00
Andelf 06b7b7e4f3 fix(android): unlink file crashes app 2022-07-26 22:29:20 +08:00
Gabriel Horner 6a64cdf4b3 Fix tag completion at start of line or whitespace before cursor 2022-07-26 20:47:36 +08:00
Gabriel Horner bc69e7d5a1 Silence noisy parsing tests
Added :verbose option to repo-handler/parse-files-and-load-to-db!
2022-07-26 20:47:36 +08:00