@@ -20,6 +20,15 @@ public EverythingSearchManager(Settings settings)
20
20
21
21
private async ValueTask ThrowIfEverythingNotAvailableAsync ( CancellationToken token = default )
22
22
{
23
+ #if ARM64
24
+ throw new EngineNotAvailableException (
25
+ Enum . GetName ( Settings . IndexSearchEngineOption . Everything ) ! ,
26
+ "ARM64 is not supported" ,
27
+ Main . Context . API . GetTranslation ( "flowlauncher_plugin_everything_not_support_arm64" ) ,
28
+ Constants . EverythingErrorImagePath ,
29
+ _ => ValueTask . FromResult ( false ) ) ;
30
+ #endif
31
+
23
32
try
24
33
{
25
34
if ( ! await EverythingApi . IsEverythingRunningAsync ( token ) )
@@ -42,7 +51,9 @@ private async ValueTask ThrowIfEverythingNotAvailableAsync(CancellationToken tok
42
51
43
52
private async ValueTask < bool > ClickToInstallEverythingAsync ( ActionContext _ )
44
53
{
45
- var installedPath = await EverythingDownloadHelper . PromptDownloadIfNotInstallAsync ( Settings . EverythingInstalledPath , Main . Context . API ) ;
54
+ var installedPath =
55
+ await EverythingDownloadHelper . PromptDownloadIfNotInstallAsync ( Settings . EverythingInstalledPath ,
56
+ Main . Context . API ) ;
46
57
47
58
if ( installedPath == null )
48
59
{
@@ -57,17 +68,18 @@ private async ValueTask<bool> ClickToInstallEverythingAsync(ActionContext _)
57
68
return true ;
58
69
}
59
70
60
- public async IAsyncEnumerable < SearchResult > SearchAsync ( string search , [ EnumeratorCancellation ] CancellationToken token )
71
+ public async IAsyncEnumerable < SearchResult > SearchAsync ( string search ,
72
+ [ EnumeratorCancellation ] CancellationToken token )
61
73
{
62
74
await ThrowIfEverythingNotAvailableAsync ( token ) ;
63
75
64
76
if ( token . IsCancellationRequested )
65
77
yield break ;
66
78
67
- var option = new EverythingSearchOption ( search ,
68
- Settings . SortOption ,
69
- MaxCount : Settings . MaxResult ,
70
- IsFullPathSearch : Settings . EverythingSearchFullPath ,
79
+ var option = new EverythingSearchOption ( search ,
80
+ Settings . SortOption ,
81
+ MaxCount : Settings . MaxResult ,
82
+ IsFullPathSearch : Settings . EverythingSearchFullPath ,
71
83
IsRunCounterEnabled : Settings . EverythingEnableRunCount ) ;
72
84
73
85
await foreach ( var result in EverythingApi . SearchAsync ( option , token ) )
@@ -110,7 +122,8 @@ public async IAsyncEnumerable<SearchResult> ContentSearchAsync(string plainSearc
110
122
}
111
123
}
112
124
113
- public async IAsyncEnumerable < SearchResult > EnumerateAsync ( string path , string search , bool recursive , [ EnumeratorCancellation ] CancellationToken token )
125
+ public async IAsyncEnumerable < SearchResult > EnumerateAsync ( string path , string search , bool recursive ,
126
+ [ EnumeratorCancellation ] CancellationToken token )
114
127
{
115
128
await ThrowIfEverythingNotAvailableAsync ( token ) ;
116
129
0 commit comments