@@ -33,7 +33,7 @@ public List<Result> Query(Query query)
33
33
string cmd = query . Search ;
34
34
if ( string . IsNullOrEmpty ( cmd ) )
35
35
{
36
- return ResultsFromlHistory ( ) ;
36
+ return ResultsFromHistory ( ) ;
37
37
}
38
38
else
39
39
{
@@ -55,8 +55,8 @@ public List<Result> Query(Query query)
55
55
else if ( Directory . Exists ( Path . GetDirectoryName ( excmd ) ?? string . Empty ) )
56
56
{
57
57
basedir = Path . GetDirectoryName ( excmd ) ;
58
- var dirn = Path . GetDirectoryName ( cmd ) ;
59
- dir = ( dirn . EndsWith ( "/" ) || dirn . EndsWith ( @"\" ) ) ? dirn : cmd . Substring ( 0 , dirn . Length + 1 ) ;
58
+ var dirName = Path . GetDirectoryName ( cmd ) ;
59
+ dir = ( dirName . EndsWith ( "/" ) || dirName . EndsWith ( @"\" ) ) ? dirName : cmd . Substring ( 0 , dirName . Length + 1 ) ;
60
60
}
61
61
62
62
if ( basedir != null )
@@ -158,7 +158,7 @@ private Result GetCurrentCmd(string cmd)
158
158
return result ;
159
159
}
160
160
161
- private List < Result > ResultsFromlHistory ( )
161
+ private List < Result > ResultsFromHistory ( )
162
162
{
163
163
IEnumerable < Result > history = _settings . CommandHistory . OrderByDescending ( o => o . Value )
164
164
. Select ( m => new Result
@@ -204,7 +204,7 @@ private ProcessStartInfo PrepareProcessStartInfo(string command, bool runAsAdmin
204
204
info . Arguments = $ "{ ( _settings . LeaveShellOpen ? "/k" : "/c" ) } { command } ";
205
205
206
206
//// Use info.Arguments instead of info.ArgumentList to enable users better control over the arguments they are writing.
207
- //// Previous code using ArgumentList, commands needed to be seperated correctly:
207
+ //// Previous code using ArgumentList, commands needed to be separated correctly:
208
208
//// Incorrect:
209
209
// info.ArgumentList.Add(_settings.LeaveShellOpen ? "/k" : "/c");
210
210
// info.ArgumentList.Add(command); //<== info.ArgumentList.Add("mkdir \"c:\\test new\"");
@@ -377,9 +377,9 @@ public string GetTranslatedPluginDescription()
377
377
378
378
public List < Result > LoadContextMenus ( Result selectedResult )
379
379
{
380
- var resultlist = new List < Result >
380
+ var results = new List < Result >
381
381
{
382
- new Result
382
+ new ( )
383
383
{
384
384
Title = context . API . GetTranslation ( "flowlauncher_plugin_cmd_run_as_different_user" ) ,
385
385
AsyncAction = async c =>
@@ -390,7 +390,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
390
390
IcoPath = "Images/user.png" ,
391
391
Glyph = new GlyphInfo ( FontFamily : "/Resources/#Segoe Fluent Icons" , Glyph : "\xe7ee " )
392
392
} ,
393
- new Result
393
+ new ( )
394
394
{
395
395
Title = context . API . GetTranslation ( "flowlauncher_plugin_cmd_run_as_administrator" ) ,
396
396
Action = c =>
@@ -401,7 +401,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
401
401
IcoPath = "Images/admin.png" ,
402
402
Glyph = new GlyphInfo ( FontFamily : "/Resources/#Segoe Fluent Icons" , Glyph : "\xe7ef " )
403
403
} ,
404
- new Result
404
+ new ( )
405
405
{
406
406
Title = context . API . GetTranslation ( "flowlauncher_plugin_cmd_copy" ) ,
407
407
Action = c =>
@@ -414,7 +414,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
414
414
}
415
415
} ;
416
416
417
- return resultlist ;
417
+ return results ;
418
418
}
419
419
}
420
420
}
0 commit comments