Skip to content

Add Custom Search (CTRL + F) #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 92 commits into from
May 5, 2023
Merged

Add Custom Search (CTRL + F) #229

merged 92 commits into from
May 5, 2023

Conversation

yescorp
Copy link
Collaborator

@yescorp yescorp commented Apr 24, 2023

@codecov
Copy link

codecov bot commented Apr 25, 2023

Codecov Report

Merging #229 (d14e1f5) into main (72fa1df) will increase coverage by 1.02%.
The diff coverage is 86.63%.

@@            Coverage Diff             @@
##             main     #229      +/-   ##
==========================================
+ Coverage   80.93%   81.96%   +1.02%     
==========================================
  Files          88      107      +19     
  Lines        2728     3166     +438     
==========================================
+ Hits         2208     2595     +387     
- Misses        520      571      +51     
Impacted Files Coverage Δ
lib/src/code_field/actions/enter_key.dart 50.00% <50.00%> (ø)
lib/src/code_field/actions/search.dart 50.00% <50.00%> (ø)
.../src/code_field/js_workarounds/js_workarounds.dart 50.00% <50.00%> (ø)
...code_field/js_workarounds/js_workarounds_stub.dart 50.00% <50.00%> (ø)
lib/src/search/widget/search_settings_widget.dart 73.91% <73.91%> (ø)
lib/src/code_field/code_field.dart 93.54% <74.54%> (-5.44%) ⬇️
lib/src/search/search_navigation_state.dart 75.00% <75.00%> (ø)
lib/src/code_field/code_controller.dart 81.48% <78.00%> (+1.90%) ⬆️
lib/src/search/controller.dart 79.10% <79.10%> (ø)
lib/src/code/key_event.dart 85.71% <85.71%> (ø)
... and 14 more

@yescorp yescorp requested a review from alexeyinkin May 5, 2023 06:14
@@ -0,0 +1,12 @@
import 'package:flutter/widgets.dart';

class IgnoreIntent extends Intent {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yescorp yescorp requested a review from alexeyinkin May 5, 2023 13:03
_processText(textAfter);
}
} else {
if (sliceIndex < 0 || sliceIndex > text.length) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (sliceIndex < 0 || sliceIndex > text.length) {
if (sliceIndex < 0 || sliceIndex >= text.length) {

?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it is equal, we can call substring on it like 'a'.substring(0, 1);.
This is the range, that implies inability to substring the text.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe I should add clarification comment?

@alexeyinkin alexeyinkin merged commit 5d059e7 into main May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move SearchController.isEnabled to better place Search
2 participants