File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Plugins/Flow.Launcher.Plugin.Folder Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,12 @@ public List<Result> Query(Query query)
58
58
var results = GetUserFolderResults ( query ) ;
59
59
60
60
string search = query . Search . ToLower ( ) ;
61
- if ( ! IsDriveOrSharedFolder ( search ) )
61
+ if ( ! IsDriveOrSharedFolder ( search ) && ! IsEnvironmentVariableSearch ( search ) )
62
+ {
62
63
return results ;
64
+ }
63
65
64
- if ( search . StartsWith ( "%" ) )
66
+ if ( IsEnvironmentVariableSearch ( search ) )
65
67
{
66
68
results . AddRange ( GetEnvironmentStringPathResults ( search , query ) ) ;
67
69
}
@@ -79,18 +81,18 @@ public List<Result> Query(Query query)
79
81
return results ;
80
82
}
81
83
84
+ private static bool IsEnvironmentVariableSearch ( string search )
85
+ {
86
+ return _envStringPaths != null && search . StartsWith ( "%" ) ;
87
+ }
88
+
82
89
private static bool IsDriveOrSharedFolder ( string search )
83
90
{
84
91
if ( search . StartsWith ( @"\\" ) )
85
92
{ // shared folder
86
93
return true ;
87
94
}
88
95
89
- if ( _envStringPaths != null && search . StartsWith ( "%" ) )
90
- { // environment string formatted folder
91
- return true ;
92
- }
93
-
94
96
if ( _driverNames != null && _driverNames . Any ( search . StartsWith ) )
95
97
{ // normal drive letter
96
98
return true ;
You can’t perform that action at this time.
0 commit comments