Skip to content

Commit ce8c3f9

Browse files
Fix typo
1 parent f07cff7 commit ce8c3f9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ internal static class Constants
3232

3333
internal const string DefaultContentSearchActionKeyword = "doc:";
3434

35-
internal const char DirectorySeperator = '\\';
35+
internal const char DirectorySeparator = '\\';
3636

3737
internal const string WindowsIndexingOptions = "srchadmin.dll";
3838

Plugins/Flow.Launcher.Plugin.Explorer/Search/DirectoryInfo/DirectoryInfoSearch.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal static IEnumerable<SearchResult> TopLevelDirectorySearch(Query query, s
1515
var criteria = ConstructSearchCriteria(search);
1616

1717
if (search.LastIndexOf(Constants.AllFilesFolderSearchWildcard) >
18-
search.LastIndexOf(Constants.DirectorySeperator))
18+
search.LastIndexOf(Constants.DirectorySeparator))
1919
return DirectorySearch(new EnumerationOptions
2020
{
2121
RecurseSubdirectories = true
@@ -29,9 +29,9 @@ public static string ConstructSearchCriteria(string search)
2929
{
3030
string incompleteName = "";
3131

32-
if (!search.EndsWith(Constants.DirectorySeperator))
32+
if (!search.EndsWith(Constants.DirectorySeparator))
3333
{
34-
var indexOfSeparator = search.LastIndexOf(Constants.DirectorySeperator);
34+
var indexOfSeparator = search.LastIndexOf(Constants.DirectorySeparator);
3535

3636
incompleteName = search[(indexOfSeparator + 1)..].ToLower();
3737

Plugins/Flow.Launcher.Plugin.Explorer/Search/QuickAccessLinks/AccessLink.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public string Name
1515
{
1616
get
1717
{
18-
var path = Path.EndsWith(Constants.DirectorySeperator) ? Path[0..^1] : Path;
18+
var path = Path.EndsWith(Constants.DirectorySeparator) ? Path[0..^1] : Path;
1919

2020
if (path.EndsWith(':'))
2121
return path[0..^1] + " Drive";

Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public static string GetPathWithActionKeyword(string path, ResultType type, stri
4040
var formatted_path = path;
4141

4242
if (type == ResultType.Folder)
43-
// the seperator is needed so when navigating the folder structure contents of the folder are listed
44-
formatted_path = path.EndsWith(Constants.DirectorySeperator) ? path : path + Constants.DirectorySeperator;
43+
// the separator is needed so when navigating the folder structure contents of the folder are listed
44+
formatted_path = path.EndsWith(Constants.DirectorySeparator) ? path : path + Constants.DirectorySeparator;
4545

4646
return $"{keyword}{formatted_path}";
4747
}
@@ -187,9 +187,9 @@ private static string ToReadableSize(long pDrvSize, int pi)
187187

188188
internal static Result CreateOpenCurrentFolderResult(string path, string actionKeyword, bool windowsIndexed = false)
189189
{
190-
// Path passed from PathSearchAsync ends with Constants.DirectorySeperator ('\'), need to remove the seperator
190+
// Path passed from PathSearchAsync ends with Constants.DirectorySeparator ('\'), need to remove the separator
191191
// so it's consistent with folder results returned by index search which does not end with one
192-
var folderPath = path.TrimEnd(Constants.DirectorySeperator);
192+
var folderPath = path.TrimEnd(Constants.DirectorySeparator);
193193

194194
return new Result
195195
{

0 commit comments

Comments
 (0)