Commit graph appflowy-editor/test/new
Author SHA1 Message Date
Richard Shiue
387a90ce39
feat: allow passing in a context menu builder (#1152)
* feat: allow passing in a context menu builder

* test: fix test

* chore: dart analyzer
2025-11-06 11:48:13 +08:00
Morn
552f95fd15
feat: add RegExp to CharacterShortcutEvent (#1088)
* feat: add RegExp to CharacterShortcutEvent

* fix: testing error
2025-04-02 12:53:45 +08:00
Mathias Mogensen
e214cfea4a
fix: backspace select all (#1077)
* test: ignore coverage in copied flutter files

* fix: selection and focus missing after backspace
2025-04-01 09:22:37 +08:00
Morn
2b5830dbaf
chore: enable pass custom color from outside (#1066)
* chore: enable pass custom color from outside

* chore: add toolbarBuilder for FloatingToolbar
2025-03-17 11:17:04 +08:00
Lucas
ec7350da7c
fix: unable to undo/redo when the selection is null (#1067)
* fix: unable to undo/redo when the selection is null

* test: add undo without selection test
2025-03-14 14:16:38 +08:00
Ahad Patel
8d3f5b904b
feat: add command shortcut keys to convert text to title (#921)
* feat: add command shortcut keys to convert text to title

* fix: use const values from heading block keys

* chore: add test cases for command

* fix: comments and nomenclature

* chore: add appropriate description
2024-12-11 17:07:18 +08:00
LinJi
432b797914
fix: cross column deletion in the table (#934) 2024-12-11 17:04:34 +08:00
Lucas
157ded3cd3
fix: underscore works should not be interpreted in inline-code (#984)
* fix: underscore works should not be interpreted in inline-code

* test: underscore works should not be interpreted in inline-code
2024-12-09 15:09:33 +08:00
Lucas
4034ebfae7
fix: closing a ')' braket to create a link will erase a text following it to the end of a paragraph (#983)
* fix: closing a ')' braket to create a link will erase a text following it to the end of a paragraph

* feat: move the cursor to the end of the doc if the cursor is in the last line

* fix: test
2024-12-09 11:42:18 +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
Arya Pratap Singh
566ee6fbc2
fix: detect phone number when pasting text (#970) 2024-11-27 13:56:01 +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
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
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
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.Xu
72512df842
chore: hide Log and PlatformExtension (#886) 2024-09-11 17:51:53 +08:00
Lucas.Xu
44989c568e
feat: optimize the table node parse steps and add logs (#875)
* feat: optimize the table node parse steps and add logs

* feat: support table cell node construtor

* fix: widget test
2024-09-04 13:57:46 +08:00
Lucas.Xu
8e17d1447e
feat: optimize table update (#869)
* feat: optimize table update

* fix: combine the table transactions
2024-08-16 10:52:48 +08:00
Mohammad Zolfaghari
ede8187efc
fix: enable converting multilne to list (#860)
currently only its possible to convert single line to bullet or
numbered list.
changed the active check function to also show list items in toolbar
when multiple text lines are selected.
2024-08-10 10:58:09 +08:00
nathan
4d93dfbded chore: fix test 2024-07-27 16:38:45 +08:00
Lucas.Xu
8b9ccf83fd
fix: render issue of nested list (#838)
* fix: render issue of nested list

* fix: table board doesn't show in readonly mode

* fix: ci tests
2024-07-04 16:58:57 +08:00
Juliano Penna
6a983808c8
feat: use format of wrapping node when pasting plain text (#692)
* fix: paste plain text follows destination formatting

* test: paste plain text

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2024-07-04 11:53:43 +08:00
Mathias Mogensen
8279a37ead
feat: undo markdown style (#830)
* feat: undo style of markdown and retain characters

* test: add tests

* test: macos meta instead of control
2024-06-21 13:14:31 +02:00
Lucas.Xu
796d1249fe
chore: upgrade Flutter to 3.22.0 (#797) 2024-05-14 14:05:38 +08:00
Lucas.Xu
d9e6178859
fix: update selection from the delta (#788) 2024-05-04 10:38:15 +08:00
q200892907
a9ef209c55
feat: add table style (#766) 2024-04-16 15:41:08 +08:00
Mathias Mogensen
c97842ae91
feat: add more gesture interceptors (#757) 2024-04-04 13:51:05 +02:00
Lucas.Xu
cbd92c4cd1
feat: disable converting heading block to numbered list block (#740) 2024-03-11 10:42:52 +08:00
Old Autumn
0ad1986cd9
fix: transfer the whole line into link when text contains url (#693) (#737) 2024-03-06 10:58:47 +08:00
Lucas.Xu
a52a2e7990
chore: reanme highlight color to background color (#729) 2024-02-28 10:57:13 +08:00
Lucas.Xu
5e5b908e78
fix: resolve data loss issue during block type conversion (#726)
* fix: resolve data loss issue during block type conversion

* fix: flutter test

* test: add more tests
2024-02-26 09:44:43 +08:00
Juliano Penna
7d8147c78d
fix: pasting keeps current node type (#689) 2024-01-26 10:45:41 +08:00
q200892907
b7c381e495
feat: optimize Enter operation (#673)
* outdentCommand is called when the node path is greater than 1

* feat:add test

* feat:update test
2024-01-15 15:29:51 +08:00
Jayaprakash
dccd4e8e72
feat: support formatting greater hyphen to single arrow (#665)
* feat: support formatting greater hyphen to single arrow

* refactor: renamed test group description

* refactor: formatted code file using dart formatter

* refactor: removes GreaterHyphen shortcut event from standard shortcuts

* fix: enable formatGreaterHyphen shortcut in test mode

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2024-01-14 22:47:19 +08:00
Yijing Huang
3feff00932
feat: backslash to ignore shortcut event (#635)
* feat: backslash to ignore shortcut event

* refactor: refactor format single char logic

* fix: avoid single char formating when in the double chars formatting situation

* fix: refactor the single char formating logic

* test: add test for back slash ignore shortcut cases

* test: add tests for ignoring space enabled shortcut events

* test: add test for checkbox shortcut ignore
2024-01-13 23:26:45 +08:00
Jayaprakash
a8a88c49fa
fix: support character deletion while holding down the Shift key. (#659)
* fix: support deletion of character using [shift+backspace] command shortcut

* refactor: remove unnecessary command handler and unit test
2024-01-10 21:13:35 +08:00
Ansah Mohammad
7ec43c9eee
feat: table navigation using TAB key (#627)
* feat: table navigation using TAB key

* feat: shift+tab for reverse navigation in table

* chore: circular traversal for arrow left and right

* test: added tests for tab and shift-tab commands in Table

* test: added tests for arrow left and right in table

* test: added corner case for tab and shift tab

* refactor: made changes as per the review

* refactor: Apply suggestions from code review

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2024-01-02 12:18:23 +08:00
Jazim Akbar
de94a5864f
feat: add markdown link syntax formatting (#618)
* Add markdown link syntax formatting

* chore: format code

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2024-01-01 14:34:33 +08:00
q200892907
c63d664513
feat: display number in latin or roman format (#595) 2023-11-18 13:48:17 +08:00
Lucas.Xu
db4057dea2 Merge branch 'main' into stable 2023-11-08 14:24:39 +08:00
Lucas.Xu
50117b6900
chore: refactor mobile toolbar and divider block component (#583)
* feat: adjust toggle list block

* chore: refactor mobile toolbar and divider block
component

* chore: adjust indentation padding in block component
configuration and indent command test
2023-11-08 14:17:08 +08:00
Lucas.Xu
c7d99913aa
feat: support Flutter stable channel (#581)
* feat: adjust toggle list block

* chore: upgrade Flutter to master channel

* chore: upgrade pbxproj

* fix: toolbar copy button not closing on mobile editor

* fix: formatting issues and add missing commas

* chore: add stable branch to GitHub Actions workflow

* chore: add missing trailing commas

* chore: adjust indentation padding in block component
configuration and unit tests
2023-11-08 13:46:33 +08:00
Mathias Mogensen
5b9b6d80f5
feat: power checkbox shortcut (#553) 2023-10-30 11:20:15 +08:00
Sameer Godse
51f8f791c8
feat: convert = and > to ⇒ (#523) 2023-10-24 14:07:29 +08:00
Lucas.Xu
194fe2fec9
fix: unable to clear the style by toggling twice (#532) 2023-10-11 20:14:34 +08:00
Lucas.Xu
b17bddceb8
feat: enable toggling and canceling of the formatting with shortcuts (#528) 2023-10-11 13:10:37 +08:00
Sun Jiao
8bfd779bfe
feat: add regex and case sensitive to FindReplaceMenu (#480) 2023-10-10 15:53:38 +08:00
Lucas.Xu
384532434c
feat: optimize the find and replace logic (#510) 2023-10-01 16:51:42 +08:00