mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
DirectoryInfoPath- fix partial item search
This commit is contained in:
parent
e22abba18c
commit
c93f4a09ea
1 changed files with 13 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
using Flow.Launcher.Infrastructure;
|
||||
using Flow.Launcher.Infrastructure;
|
||||
using Flow.Launcher.Plugin.SharedCommands;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -45,6 +45,18 @@ namespace Flow.Launcher.Plugin.Explorer.Search.DirectoryInfo
|
|||
// incompleteName = "*" + incompleteName.Substring(1);
|
||||
//}
|
||||
|
||||
if (!search.EndsWith("\\"))
|
||||
{
|
||||
// not full path, get previous level directory string
|
||||
var indexOfSeparator = search.LastIndexOf('\\');
|
||||
|
||||
incompleteName = search.Substring(indexOfSeparator + 1).ToLower();
|
||||
|
||||
search = search.Substring(0, indexOfSeparator + 1);
|
||||
}
|
||||
|
||||
incompleteName += "*";
|
||||
|
||||
var folderList = new List<Result>();
|
||||
var fileList = new List<Result>();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue