Commit graph

877 commits

Author SHA1 Message Date
Lucas.Xu
81186fa857
chore: bump version 1.2.4 (#414) 2023-08-25 16:11:19 +08:00
Lucas.Xu
1922e56903
feat: migrate copy paste command from AppFlowy (#413) 2023-08-25 15:58:33 +08:00
Mukund Tandon
687af49f63
feat: added support for custom parser for markdown to document (#403) 2023-08-25 15:58:22 +08:00
APPFLOWY\tsuiy
790d3fda53 feat: improve CJK IME support 2023-08-25 14:56:28 +08:00
Lucas.Xu
28c5adf0f9 feat: add support for context menu items to the editor 2023-08-24 19:17:13 +08:00
Lucas.Xu
f4db21c367 fix: refactor _onSelectionChange method to update _showPlaceholder state more efficiently 2023-08-23 10:33:36 +08:00
Lucas.Xu
6b15d6cca6
fix: typo (#408) 2023-08-23 00:49:08 +08:00
Lucas.Xu
a8eb042d27
Fix selected nodes (#407)
* fix: miss the nested node when copying

* fix: miss the nested node when copying
2023-08-23 00:45:54 +08:00
Lucas.Xu
aaef934f07
fix: miss the nested node when copying (#406) 2023-08-23 00:38:41 +08:00
Johan Sutrisno
5e78abc36f
feat: skip whitespace between words while navigating with CTRL+ARROW keys (#363)
* feat: skip whitespace between words while navigating with CTRL+ARROW keys

* refactor: testing for arrow keys handler

* refactor: testing for arrow keys handler

* refactor: refactor var to final

* test: Presses arrow left/right/up/down + meta in not collapsed and forward selection except macos

* refactor: refactor test alt+arrow up

* refactor: refactor test alt+arrow down

* refactor: resolve suggestion of code

* refactor: resolve suggestion of code

* refactor: resolve suggestion of code

---------

Co-authored-by: Johan Sutrisno <johan@zero-one-group.com>
2023-08-21 11:47:07 +08:00
Mathias Mogensen
2eb801e7f5
feat: double hyphen to em dash (#395)
* feat: double hyphen to em dash

* chore: fix tests

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-08-21 11:46:45 +08:00
Sean Riley Hawkins
1f2668c18a
fix: add variable to hold editor selection for colour menu (#400)
* fix: add variable to hold selection

* fix: keep the selection area when editing color

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-08-21 11:46:04 +08:00
MayurSMahajan
de779ab87a test: open link command 2023-08-21 10:43:06 +08:00
MayurSMahajan
807a8dfb96 refactor: show link command test 2023-08-21 10:43:06 +08:00
MayurSMahajan
22b56130e8 refactor: show link menu command 2023-08-21 10:43:06 +08:00
MayurSMahajan
52231f885f feat: open link command 2023-08-21 10:43:06 +08:00
Mathias Mogensen
61be737fe2
fix: placeholder on paragraph when selected (#390)
* fix: placeholder on paragraph when selected

Closes: #380

* fix: review comment
2023-08-17 09:45:28 +02:00
Lucas.Xu
56474e8bd9 fix: revert the customSlashCommand function 2023-08-17 14:07:19 +08:00
Lucas.Xu
378ff75a97 fix: test error 2023-08-17 13:49:51 +08:00
Mathias Mogensen
0d4a00a848 chore: remove highlight toolbar item (unused) 2023-08-17 13:13:45 +08:00
Mathias Mogensen
2dabbebb43 test: improve coverage of link mobile toolbar item 2023-08-17 13:13:45 +08:00
Mathias Mogensen
52486cc6a3 test: improve coverage 2023-08-17 13:13:45 +08:00
Mathias Mogensen
c38fe1625d test: mobile selection gesture 2023-08-17 13:13:45 +08:00
Mathias Mogensen
0bad8d67d1 test: improve coverage for editor_style 2023-08-17 13:13:45 +08:00
Mathias Mogensen
f8632b68bf test: remove toolbarService getter from editorState 2023-08-17 13:13:45 +08:00
Mathias Mogensen
daab208f54 test: clean slash_command.dart 2023-08-17 13:13:45 +08:00
Mathias Mogensen
027bcdff71 test: improve coverage for auto scroller 2023-08-17 13:13:45 +08:00
Mathias Mogensen
afa06095b0 test: improve coverage for renderer/ 2023-08-17 13:13:45 +08:00
Mathias Mogensen
999ec073cd chore: fix deprecation warnings 2023-08-17 13:13:45 +08:00
Mathias Mogensen
b79aded8bb test: improve coverage for delta input 2023-08-17 13:13:45 +08:00
Mathias Mogensen
9eb60cc6aa test: improve coverage of editor/block_component/ 2023-08-17 13:13:45 +08:00
Mathias Mogensen
7c19368334 test: improve coverage of transaction.dart 2023-08-17 13:13:45 +08:00
Mathias Mogensen
639ebf1415 test: improve coverage of operations.dart 2023-08-17 13:13:45 +08:00
Mathias Mogensen
a564c10e87 chore: deprecate Selection.collapse + coverage for selection.dart 2023-08-17 13:13:45 +08:00
Mathias Mogensen
29d7ace457 test: coverage for position.dart 2023-08-17 13:13:45 +08:00
Mathias Mogensen
36d6c779be test: coverage for text_delta.dart 2023-08-17 13:13:45 +08:00
Mathias Mogensen
668feddf56 test: doc node.dart and coverage path.dart 2023-08-17 13:13:45 +08:00
Mathias Mogensen
b2f6c9c206 test: increase coverage for document.dart 2023-08-17 13:13:45 +08:00
Mathias Mogensen
4daaaf0cc3 fix: execute character command on replace 2023-08-17 13:13:27 +08:00
Lucas.Xu
016e141f51 fix: import single line delta failed 2023-08-17 13:09:34 +08:00
Lucas.Xu
cf14e0de08 feat: paste from html 2023-08-17 13:08:19 +08:00
Lucas.Xu
e5a10c4b4d
Merge pull request #374 from LucasXu0/fix_029_bugs
fix: v0.2.9 bugs
2023-08-13 17:15:17 +07:00
Lucas.Xu
5df1d3ab35 fix: link is not auto formatted 2023-08-13 18:14:58 +08:00
Lucas.Xu
4ccd811cda fix: link issue in the heading block 2023-08-13 16:37:21 +08:00
Mayur Mahajan
f5c6dc2ce7
feat: find dialog 1760 (#106)
* feat: make find menu widget

* feat: service for find menu

* feat: add find menu shortcut event

* feat: create a search service

* docs: explain search service

* fix: unhighlight method takes searched word

* fix: unhighlight before each search

* feat: navigate between matches

* feat: forget highlighting from undo stack

* feat: replace logic and ui

* feat: replace shortcut handler and widget

* test: find functionality

* test: replace menu tests

* refactor: separate class for search algo

* refactor: suggested changes

* refactor: remove unhighlight method

* feat: add find highlight color

* refactor: name of the search algo class

* test: unit tests for search algorithm

* chore: simplify syntax

* test: renamed test group

* refactor: move to editor

* refactor: add shortcut for find

* refactor: use new api

* refactor: add abstrac class search algo

* fix: avoid multiple instances of find dialog

* refactor: xazin's suggestions

* chore: separately build input decor

* test: search algorithm

* chore: unhighlight properly

* refactor: replace handler

* refactor: move tests into new

* test: find menu widget test

* test: replace menu

* fix: localizations + resolve scroll bug partially

* fix: without update selection on highlight

* fix: do not select words when highlighting

* test: update expected selection

* fix: matches and styling

* feat: separate attribute for highlighting

* feat: unique color for selected match

* test: unique color for selected match

* refactor: cleaning the code

* fix: navigate to first match

* fix: tests and replace logic

---------

Co-authored-by: Mathias Mogensen <mathiasrieckm@gmail.com>
Co-authored-by: Mathias Mogensen <42929161+Xazin@users.noreply.github.com>
2023-08-10 13:08:45 +02:00
Lucas.Xu
953249fefd
fix: lose selection after pasting (#365)
* fix: the selection area delay to update after typing enter

* fix: selection will lose after pasting
2023-08-10 15:22:43 +08:00
Lucas.Xu
18aa9bff55
chore: release 1.2.3 (#362) 2023-08-08 15:34:27 +08:00
Lucas.Xu
2a8955b392 chore: format code 2023-08-08 15:09:09 +08:00
q200892907
4dd85449fd
Solve the problem of screen appearing at critical positions when there is a URL in the link menu (#346) 2023-08-08 15:05:03 +08:00
Mohammad Zolfaghari
2ab007415b
fix: selection menu respects current node direction (#360)
modified insertNodeAfterSelection to copy current node text direction
to the node which is going to get inserteded.

resolves #331
2023-08-08 14:56:27 +08:00