Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Plugins/Flow.Launcher.Plugin.Explorer/Search/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ internal static class Constants

internal const string DefaultContentSearchActionKeyword = "doc:";

internal const char UnixDirectorySeparator = '/';

internal const char DirectorySeparator = '\\';

internal const string WindowsIndexingOptions = "srchadmin.dll";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Plugin.SharedCommands;
using System;
using System.Collections.Generic;
Expand All @@ -12,6 +12,9 @@ public static class DirectoryInfoSearch
{
internal static IEnumerable<SearchResult> TopLevelDirectorySearch(Query query, string search, CancellationToken token)
{
// if user uses the unix directory separator, we need to convert it to windows directory separator
search = search.Replace(Constants.UnixDirectorySeparator, Constants.DirectorySeparator);

var criteria = ConstructSearchCriteria(search);

if (search.LastIndexOf(Constants.AllFilesFolderSearchWildcard) >
Expand Down
Loading