Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
c2fa26a
fix: fix `_needsLayout`
sun-jiao Sep 14, 2023
6b91334
fix: wrap `SizedBox(child: IconButton())` as a function
sun-jiao Sep 14, 2023
601b961
Merge branch 'AppFlowy-IO:main' into find-replace-fix-1
sun-jiao Sep 15, 2023
4bedca4
chore: reformat files
sun-jiao Sep 15, 2023
bba13d2
Merge branch 'AppFlowy-IO:main' into find-replace-fix-1
sun-jiao Sep 15, 2023
6e67ced
feat: support regex and case sensitive in find and replace
sun-jiao Sep 16, 2023
40845a0
fix: remove `_rSearchMethod` because it is slightly slower than `all…
sun-jiao Sep 17, 2023
666f63d
feat: add 2 `SearchAlgorithm`s
sun-jiao Sep 17, 2023
e9121b9
fix: default caseSensitive is true
sun-jiao Sep 17, 2023
2fcbcad
test: add regex and case insensitive search test
sun-jiao Sep 17, 2023
44db679
chore: reformat file
sun-jiao Sep 17, 2023
20bd13a
fix: should be insensitive
sun-jiao Sep 17, 2023
58e7565
fix: update matches when `regex` or `caseSensitive` changed.
sun-jiao Sep 17, 2023
2d0d693
feat: change Range to Match
sun-jiao Sep 17, 2023
a342d98
Merge branch 'main' into find-replace-feat
sun-jiao Sep 17, 2023
9b2b2b0
chore: add "button" to button name
sun-jiao Sep 18, 2023
d7e84a2
Merge branch 'main' into find-replace-feat
sun-jiao Sep 18, 2023
77b3f5f
Merge branch 'main' into find-replace-feat
sun-jiao Sep 18, 2023
708eac3
fix: avoid creating too many instances
sun-jiao Sep 18, 2023
4b9bd28
chore: move throw error out of "else" branch
sun-jiao Sep 18, 2023
e324d5c
chore: rename method.
sun-jiao Sep 18, 2023
2caa385
Merge branch 'find-replace-feat' of https://github.com/sun-jiao/appfl…
sun-jiao Sep 18, 2023
e110509
chore: update comment
sun-jiao Sep 18, 2023
ff06b7d
chore: camel case
sun-jiao Sep 18, 2023
ab9f7b5
Merge branch 'AppFlowy-IO:main' into find-replace-feat
sun-jiao Sep 19, 2023
4181f00
feat: use dart built-in regex search
sun-jiao Sep 19, 2023
addea23
feat: add `regexFlag` and `caseSensitiveFlag`
sun-jiao Sep 19, 2023
7cab003
fix: use flags
sun-jiao Sep 19, 2023
7fd4d49
Merge branch 'main' into find-replace-feat
sun-jiao Sep 20, 2023
476888a
feat: extract icons
sun-jiao Sep 20, 2023
90368cd
chore: reformat file
sun-jiao Sep 21, 2023
d507155
Merge remote-tracking branch 'upstream/main' into find-replace-feat
sun-jiao Sep 21, 2023
d1ea4ab
test: add regex and case test case
sun-jiao Sep 21, 2023
16af1c3
chore: reformat test cases
sun-jiao Sep 21, 2023
97f067d
Merge branch 'AppFlowy-IO:main' into find-replace-feat
sun-jiao Sep 24, 2023
21f83fa
Merge branch 'AppFlowy-IO:main' into find-replace-feat
sun-jiao Sep 27, 2023
ee39de2
merge
sun-jiao Oct 4, 2023
4701db3
revert example
sun-jiao Oct 7, 2023
d35c4e8
Update search_service_v2.dart
sun-jiao Oct 7, 2023
0a53503
update to v2
sun-jiao Oct 7, 2023
8c69ea6
wrap match in MatchWrap
sun-jiao Oct 7, 2023
ac34ee2
rename it as SearchServiceV3, restore search service v1 and v2
sun-jiao Oct 7, 2023
e0f3921
chore: reformat files
sun-jiao Oct 7, 2023
484fd67
chore: typo
sun-jiao Oct 7, 2023
4a206b1
Merge branch 'AppFlowy-IO:main' into find-replace-feat
sun-jiao Oct 7, 2023
44033f2
chore: typo
sun-jiao Oct 7, 2023
cf9a2d4
Merge branch 'find-replace-feat' of https://github.com/sun-jiao/appfl…
sun-jiao Oct 7, 2023
4574659
chore: typo
sun-jiao Oct 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: reformat files
  • Loading branch information
sun-jiao committed Sep 15, 2023
commit 4bedca4284bca381a8a5b6550cab4c3263004a87
10 changes: 7 additions & 3 deletions lib/src/editor/find_replace_menu/find_replace_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ class _FindMenuWidgetState extends State<FindMenuWidget> {
onPressed: () => setState(
() => replaceFlag = !replaceFlag,
),
icon: replaceFlag ? const Icon(Icons.expand_less) : const Icon(Icons.expand_more),
icon: replaceFlag
? const Icon(Icons.expand_less)
: const Icon(Icons.expand_more),
),
SizedBox(
width: 200,
Expand Down Expand Up @@ -135,10 +137,12 @@ class _FindMenuWidgetState extends State<FindMenuWidget> {
_replaceSelectedWord();

Future.delayed(const Duration(milliseconds: 50)).then(
(value) => FocusScope.of(context).requestFocus(replaceFocusNode),
(value) => FocusScope.of(context)
.requestFocus(replaceFocusNode),
);
},
decoration: _buildInputDecoration(widget.localizations.replace),
decoration:
_buildInputDecoration(widget.localizations.replace),
),
),
_iconButton(
Expand Down
2 changes: 1 addition & 1 deletion test/plugins/html/html_document_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void main() {
"insert": "inline code",
"attributes": {
"bg_color": "0x26878378",
"font_color": "0xffeb5757"
"font_color": "0xffeb5757",
},
},
{"insert": "."},
Expand Down