@@ -20,6 +20,15 @@ public EverythingSearchManager(Settings settings)
2020
2121 private async ValueTask ThrowIfEverythingNotAvailableAsync ( CancellationToken token = default )
2222 {
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+
2332 try
2433 {
2534 if ( ! await EverythingApi . IsEverythingRunningAsync ( token ) )
@@ -42,7 +51,9 @@ private async ValueTask ThrowIfEverythingNotAvailableAsync(CancellationToken tok
4251
4352 private async ValueTask < bool > ClickToInstallEverythingAsync ( ActionContext _ )
4453 {
45- var installedPath = await EverythingDownloadHelper . PromptDownloadIfNotInstallAsync ( Settings . EverythingInstalledPath , Main . Context . API ) ;
54+ var installedPath =
55+ await EverythingDownloadHelper . PromptDownloadIfNotInstallAsync ( Settings . EverythingInstalledPath ,
56+ Main . Context . API ) ;
4657
4758 if ( installedPath == null )
4859 {
@@ -57,17 +68,18 @@ private async ValueTask<bool> ClickToInstallEverythingAsync(ActionContext _)
5768 return true ;
5869 }
5970
60- public async IAsyncEnumerable < SearchResult > SearchAsync ( string search , [ EnumeratorCancellation ] CancellationToken token )
71+ public async IAsyncEnumerable < SearchResult > SearchAsync ( string search ,
72+ [ EnumeratorCancellation ] CancellationToken token )
6173 {
6274 await ThrowIfEverythingNotAvailableAsync ( token ) ;
6375
6476 if ( token . IsCancellationRequested )
6577 yield break ;
6678
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 ,
7183 IsRunCounterEnabled : Settings . EverythingEnableRunCount ) ;
7284
7385 await foreach ( var result in EverythingApi . SearchAsync ( option , token ) )
@@ -110,7 +122,8 @@ public async IAsyncEnumerable<SearchResult> ContentSearchAsync(string plainSearc
110122 }
111123 }
112124
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 )
114127 {
115128 await ThrowIfEverythingNotAvailableAsync ( token ) ;
116129
0 commit comments