This commit is contained in:
LZX committed 2026-09-18 13:59:38 +08:00
1 parent 96358eae07
commit 7a3db86a10
13 files changed
+625 -37

No files matched your search

+7 -1
View File
@@ -14,6 +14,7 @@ class SearchOptions {
final bool isRegex;
final SearchMode mode;
final bool isReplaceExpanded;
final bool preserveCase;
const SearchOptions({
this.query = '',
@@ -23,6 +24,7 @@ class SearchOptions {
this.isRegex = false,
this.mode = SearchMode.text,
this.isReplaceExpanded = false,
this.preserveCase = false,
});
SearchOptions copyWith({
@@ -33,6 +35,7 @@ class SearchOptions {
bool? isRegex,
SearchMode? mode,
bool? isReplaceExpanded,
bool? preserveCase,
}) {
return SearchOptions(
query: query ?? this.query,
@@ -42,6 +45,7 @@ class SearchOptions {
isRegex: isRegex ?? this.isRegex,
mode: mode ?? this.mode,
isReplaceExpanded: isReplaceExpanded ?? this.isReplaceExpanded,
preserveCase: preserveCase ?? this.preserveCase,
);
}
@@ -69,7 +73,8 @@ class SearchOptions {
other.wholeWord == wholeWord &&
other.isRegex == isRegex &&
other.mode == mode &&
other.isReplaceExpanded == isReplaceExpanded;
other.isReplaceExpanded == isReplaceExpanded &&
other.preserveCase == preserveCase;
}
@override
@@ -81,6 +86,7 @@ class SearchOptions {
isRegex,
mode,
isReplaceExpanded,
preserveCase,
);
}