Commit Graph

115 Commits

Author SHA1 Message Date
Tienson Qin
95169b81ca fix: cursor move between linked blocks 2023-08-28 12:56:36 +08:00
Tienson Qin
14d25f7225 fix: edit block for multiple instances of linked blocks 2023-08-27 10:11:46 +08:00
Tienson Qin
58fc4bca28 allow page's block/content to be it's original name 2023-08-16 01:09:48 +08:00
Tienson Qin
ea56b0a9c0 enhance: backspace to delete a block value 2023-08-14 16:43:55 +08:00
rcmerci
ac15c6c75e remove adding opts to outliner-tx/transact! 2023-08-08 22:11:10 +08:00
rcmerci
aff2620505 persist edit-operation 2023-08-02 22:54:05 +08:00
Tienson Qin
dbcd082f08 wip: handle built-in properties 2023-08-01 19:03:16 +08:00
Tienson Qin
3ec4c6bedd remove handler.editor.property 2023-08-01 13:59:06 +08:00
Tienson Qin
c81e114a1c fix: lint 2023-06-28 15:20:22 +08:00
Tienson Qin
41ef67829b chore: clean code 2023-06-28 13:09:07 +08:00
Tienson Qin
029b196432 refactor: remove db/get-paginated-blocks 2023-06-20 14:06:42 +08:00
Tienson Qin
55ff7584b7 wrap-parse-block impl for db && file 2023-06-14 15:13:22 +08:00
Tienson Qin
ed3b063575 perf: using :block/_parent instead of blocks->vec-tree 2023-06-06 02:00:45 +08:00
Tienson Qin
c85d224e75 fix: no need to query for other attributes in pagination 2023-06-05 17:26:21 +08:00
Tienson Qin
e7dae7728a fix: paginated blocks 2023-06-05 16:45:14 +08:00
Tienson Qin
997da82b50 fix: pagination blocks 2023-06-01 00:05:19 +08:00
Tienson Qin
01479ef9da enhance(perf): insert and delete blocks (#9142)
* enhance(perf): improve performance for both insert and delete

* fix: remember cursor pos before executing the body in a transaction

Otherwise, the edit-block and position could be changed

* fix: disable delete-concat when there's no child or right sibling

---------

Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2023-05-09 17:24:09 +08:00
charlie
23a0c53808 enhance(ux): more friendly letters for the ordered list marker 2023-04-28 14:26:37 +08:00
charlie
159ff169c7 fix(ui): incorrect order list number for the journal pages list 2023-04-22 12:56:33 +08:00
charlie
c34a641647 fix(ui): incorrect order list number for the root block 2023-04-21 09:49:06 +08:00
charlie
0939aac5b5 fix: lint 2023-04-18 19:31:05 +08:00
charlie
22246fcdb3 fix(ui): reactive block state for all the order list related items 2023-04-18 18:24:12 +08:00
charlie
ebab07367a feat(ui): sub alpha marker for order block (own-property) 2023-04-17 20:58:18 +08:00
charlie
ba42b12b09 feat(ui): WIP number list block (own-property) 2023-04-17 13:51:35 +08:00
charlie
8d6e9b7cfd feat(ui): WIP number list block (own-property) 2023-04-14 16:46:05 +08:00
Tienson Qin
3312bfc3b6 fix: sync icon is missing 2022-11-21 21:03:32 +08:00
Gabriel Horner
1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Gabriel Horner
2ce6dfad41 Use catch :default for default error handling in cljs
This is considered normal practice for cljs. See
https://clojure.atlassian.net/browse/CLJS-661 for when it was introduced
and background on it
2022-09-23 02:00:55 +08:00
Tienson Qin
b6ecc7f6e3 fix: parent refs are not included in filters
related to #6490
2022-08-29 08:02:15 +08:00
Tienson Qin
2b12e952ba fix: CI 2022-08-25 20:42:00 +08:00
Tienson Qin
1ee294e047 fix: filters not working for children blocks in linked references
related to #6457

fix #6462
fix #6458
2022-08-24 19:45:10 +08:00
Tienson Qin
7f2666da74 fix: lint warnings 2022-08-22 17:08:53 +08:00
Tienson Qin
f4715db2b2 fix: reactive references 2022-08-22 17:08:53 +08:00
Tienson Qin
3d5825330e wip: fix wrong refs and filters 2022-08-22 17:08:53 +08:00
Tienson Qin
010c0082c3 debug: posthog capture bad ref blocks
related to #6327
2022-08-11 12:43:12 +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
Tienson Qin
d40c0d8926 fix: WIP broken undo/redo for long page 2022-07-20 13:56:04 +08:00
llcc
c120bd9dbc fix #5837 2022-06-27 15:43:37 +08:00
llcc
ea6fe55510 remove debug print. Address comments 2022-06-27 15:43:37 +08:00
llcc
2f35629738 allow user to disable gestures on blocks with customized tags 2022-06-27 15:43:37 +08:00
llcc
6de6222645 increase gesture activation threshold 2022-06-27 15:43:37 +08:00
llcc
cf7528ee71 disable gesture on query table and logbook
fix #5783
2022-06-27 15:43:37 +08:00
llcc
c1822f3ed1 fix: hard to reverse right swipe 2022-06-09 15:07:48 +08:00
llcc
cd6e2ca051 resolve conflicts between select and swipe on non-editing mode
Also, fix issue that it is hard to move caret on editing mode
2022-06-06 15:58:15 +08:00
llcc
13cc487592 fix app crash if swiped block and editing block are different 2022-06-06 15:58:15 +08:00
llcc
328fda29a9 enhance gestures
1. disable swipe action-bar when editing
2. resolve conflicts between selection and swipe when editing
3. Remove indent/outdent button on mobile toolbar
2022-06-06 15:58:15 +08:00
llcc
c03ad5a781 feat(gesture): switch outdent and more icon 2022-05-27 12:14:18 +08:00
llcc
31092d35d4 fix lints 2022-05-24 15:09:11 +08:00
llcc
e05af8b914 improve swipe condition 2022-05-24 13:49:46 +08:00
llcc
ee3b578d99 Merge branch 'master' into gesture-support-on-block 2022-05-23 22:07:36 +08:00