Commit graph

1,295 commits

Author SHA1 Message Date
Lucas
bf9d7e9c41
fix: skip repeated key events when the slash menu is opening (#978)
* fix: repeated key events in slash menu

* feat: add cmd+delete and option+delete commands

* Revert "feat: add cmd+delete and option+delete commands"

This reverts commit 436485a2504011673ee5d60858e7efc6fe8abc78.
2024-12-03 10:19:48 +08:00
Lucas
817c965f26
fix: hide the floating toolbar if no content is visible (#976)
* fix: hide the toolbar when all selected content is empty

* test: hide the toolbar when all selected content is empty

* Revert "fix: ignore backspace on empty table cells to avoid editor crash (#964)"

This reverts commit 09f4b17e2e.
2024-12-02 10:11:15 +08:00
Saif Addin
09f4b17e2e
fix: ignore backspace on empty table cells to avoid editor crash (#964) 2024-11-27 13:56:30 +08:00
Arya Pratap Singh
566ee6fbc2
fix: detect phone number when pasting text (#970) 2024-11-27 13:56:01 +08:00
Lucas
5b3878dcc5
feat: support in memory transaction update (#972)
* feat: support in memory transaction update

* test: support in memory transaction update
2024-11-25 11:07:47 +08:00
Lucas
6009429e58
fix: cross blocks format not reflected on the float toolbar (#971)
* fix: cross blocks format not reflected on the float toolbar

* test: cross blocks format not reflected on the float toolbar
2024-11-25 09:41:38 +08:00
Saif Addin
16a728721d
fix: deleting the last table being the last node of the document, places an empty node to avoid the editor to crash (#951) 2024-11-20 09:15:36 +08:00
Saif Addin
a1081a9dfb
fix: cut collapsed table cell won't crash the editor (#963) 2024-11-20 09:15:07 +08:00
Ahad Patel
ea81e3c164
fix: add name in keywords list in SelectionMenuItem (#966) 2024-11-13 15:35:58 +08:00
Mathias Mogensen
7ffae050ad
fix: table resizing when rect not rendered (#967) 2024-11-13 15:34:19 +08:00
Lucas
76daa96af5
fix: move cursor up / down error (#961) 2024-11-05 19:42:08 +08:00
Lucas
2903792fa3
feat: exclude padding when highlight heading block (#960) 2024-11-04 18:21:47 +08:00
Lucas
eccb24452a
fix: cursor height is inconsistent when the font size is smaller than the default text size (#958)
* fix: cursor height is inconsistent when the font size is smaller than the default text size

* fix: widget tests
2024-11-01 13:19:17 +08:00
Richard Shiue
4081fb7563
fix: highlight search match not scrolling document to reveal said match (#954)
* fix: highlight search match not scrolling document to reveal said match

* fix: don't jump if index is already on screen

* chore: code cleanup
2024-10-30 18:32:41 +08:00
Lucas
5756c9482a
fix: cancel block selection when tapping the editor on mobile (#956) 2024-10-30 18:25:37 +08:00
Lucas
cca5c41348
fix: replace texts may result in incorrect afterSelection (#952) 2024-10-29 15:35:20 +08:00
Lucas
46e00fc28f
fix: links starting with 0 index lose href attribute after formating (#947) 2024-10-29 09:44:49 +08:00
Lucas
e7d956099a
fix: replace texts assertion (#938)
* fix: replace texts assertion

* fix: unit test
2024-10-18 21:52:33 +08:00
Emmanuel Ferdman
ff8dbd0c48
fix: update migration guide (#929)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2024-10-18 20:23:25 +08:00
Lucas
450912305a
fix: use retain instead of insert/delete for same attr (#937)
* fix: use retain instead of insert/delete for same attr

* test: add delta diff test
2024-10-17 11:07:53 +08:00
Lucas
5cb871d3f5
feat: custom slice function (#935) 2024-10-17 11:04:47 +08:00
Lucas
bcd12082fe
feat: select multiple lines with block selection style (#936)
* feat: select multiple lines with block selection style

* feat: block selection margin

* fix: filter the selection not in same depth
2024-10-16 17:47:39 +08:00
Lucas
8ae43d4b66
fix: markdown parser doesn't recognize softline breaks (#933)
* fix: markdown parser doesn't recognize softline breaks

* fix: tests
2024-10-16 11:02:15 +08:00
Lucas
35f0f66370
fix: html decoder ignores h4-h6 tags (#932) 2024-10-16 10:22:40 +08:00
Lucas
b60626f034
chore: update device_info_plus to 11.0.0 (#931) 2024-10-15 20:05:21 +08:00
LinJi
c604e353d0
fix: deleteRange start must be > 0 in _deleteBackward (#928)
* fix: _deleteBackward deleteRange start must > 0

* fix: _deleteBackward deleteRange start must > 0
2024-10-15 17:55:53 +08:00
LinJi
503e9fdc37
fix: export pdf set font not work (#923)
* fix: export pdf set font not work

* fix: export pdf set font not work
2024-10-14 12:14:25 +02:00
Lucas
a0b3c7289b
chore: bump version 4.0.0 (#925) 2024-10-14 10:29:55 +08:00
Lucas
9580c6d0c6
feat: override block component validator (#924) 2024-10-14 10:06:07 +08:00
Lucas
41048fed6c
feat: add auto expanded editor showcase (#920) 2024-10-14 09:58:24 +08:00
Lucas
0a0d441339
fix: showActionsNotifier called after it has been disposed will raise an assertion (#919) 2024-10-10 11:46:34 +08:00
Mathias Mogensen
6130b166cb
fix: do not highlight inactive items on empty selection (#915) 2024-10-09 14:05:28 +02:00
Mathias Mogensen
aa6dd822d7
fix: ctrl+backspace does not delete newlines (#918) 2024-10-09 14:04:03 +02:00
Mathias Mogensen
fab3d74ca3
fix: ctrl+delete does not delete newlines (#917)
* fix: ctrl+delete does not delete newlines

* fix: wrong comment

* chore: add collapsed check
2024-10-09 08:44:54 +02:00
Mathias Mogensen
728eca2054
fix: shift+delete (#916) 2024-10-08 21:26:20 +02:00
Mathias Mogensen
8eb14007be
fix: only notify ui of selection change if it actually changed (#914) 2024-10-08 17:32:47 +02:00
Lucas
c07f9ef6d4
feat: slice attribute from next position if index is 0 (#911)
* feat: slice attribute from next position if index is 0

* test: add slice attributes test
2024-10-08 19:52:29 +08:00
Ahad Patel
647a53e257
feat: multi list indentation (#903)
* add muliple list indentation at once

* feat: filter out the children node when executing indent command

* feat: keeping only immediate children nodes when executing outdent command

* feat: ignore outdent command if any of the selected nodes have path 1

* add test cases for indent and outdent commands

* fix: linting issues and removed dead code

* chore: remove unecessary comments in test file

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2024-10-08 19:51:18 +08:00
Lucas
98356fac4c
feat: implement custom pan gesture to avoid delay offset update (#909) 2024-10-01 17:57:31 +08:00
Lucas
3bbdccd9b1
fix: insert the pasted nodes after current selection if they start with a non-delta node (#908)
* fix: insert the pasted nodes after current selection if they start with a non-delta node

* test: add paste multiple nodes test
2024-10-01 14:07:18 +08:00
Lucas
c5de9ed84d
chore: integrate delete line command into cut command (#907) 2024-09-30 13:26:39 +08:00
Lucas
54edcadbb2
feat: add 'delete line' command shortcut (#906)
* feat: support ctrl(cmd)+x to delete current line if the selection is collapsed

* test: add delete_line_command_test
2024-09-30 10:15:16 +08:00
Lucas
d049584785
feat: support keyboard gesture on mobile (#905)
* feat: support keyboard gesture on mobile

* fix: update drag handle when typing text on iOS
2024-09-30 09:21:19 +08:00
Lucas
6da7b4e5dc
feat: add keyboard service interceptor to prevent default ops execution (#902)
* feat: add keyboard service interceptor to prevent default ops execution

* chore: add logs
2024-09-26 17:47:41 +08:00
Lucas
ab977f9568
feat: support skipping slice attributes (#901)
* feat: skip slicing the next inserted text if the previous text has been formatted

* test: skip slicing attribute test

* feat: reset slice flag when updating selection
2024-09-26 16:26:12 +08:00
Lucas
628d5c8d0c
feat: support formatting text when the composing range is not collapsed (#900) 2024-09-26 15:36:08 +08:00
Lucas
737681dd97
feat: listen on delete_backward changes (#898) 2024-09-25 15:59:23 +08:00
Lucas
8582191b06
feat: support moving a block to become a child of another block (#896)
* feat: support moving a block to become a child of another block

* fix: disable moving a block to its children

* chore: update example/lib/pages/drag_to_reorder_editor.dart

Co-authored-by: Mathias Mogensen <42929161+Xazin@users.noreply.github.com>

* chore: update example/lib/pages/drag_to_reorder_editor.dart

Co-authored-by: Mathias Mogensen <42929161+Xazin@users.noreply.github.com>

* feat: optimize moving logic

---------

Co-authored-by: Mathias Mogensen <42929161+Xazin@users.noreply.github.com>
2024-09-20 16:09:03 +08:00
Lucas.Xu
0a0154ff7d feat: support customizing max width 2024-09-18 13:49:41 +08:00
snipd-min
ea494df556
feat: allow configuring the auto scroll edge offset (#888) 2024-09-16 16:45:46 +08:00