mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add CopyText in Explorer Result
This commit is contained in:
parent
c56a2751a9
commit
ee9c53d2f9
1 changed files with 4 additions and 1 deletions
|
|
@ -58,6 +58,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
SubTitle = Path.GetDirectoryName(path),
|
||||
AutoCompleteText = GetPathWithActionKeyword(path, ResultType.Folder),
|
||||
TitleHighlightData = StringMatcher.FuzzySearch(query.Search, title).MatchData,
|
||||
CopyText = path,
|
||||
Action = c =>
|
||||
{
|
||||
if (c.SpecialKeyState.CtrlPressed || (!Settings.PathSearchKeywordEnabled && !Settings.SearchActionKeywordEnabled))
|
||||
|
|
@ -174,7 +175,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
}, StringSplitOptions.None).Last();
|
||||
|
||||
var title = $"Open {folderName}";
|
||||
|
||||
|
||||
var subtitleFolderName = folderName;
|
||||
|
||||
// ie. max characters can be displayed without subtitle cutting off: "Program Files (x86)"
|
||||
|
|
@ -189,6 +190,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
AutoCompleteText = GetPathWithActionKeyword(path, ResultType.Folder),
|
||||
IcoPath = path,
|
||||
Score = 500,
|
||||
CopyText = path,
|
||||
Action = _ =>
|
||||
{
|
||||
Context.API.OpenDirectory(path);
|
||||
|
|
@ -213,6 +215,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
AutoCompleteText = GetPathWithActionKeyword(filePath, ResultType.File),
|
||||
TitleHighlightData = StringMatcher.FuzzySearch(query.Search, Path.GetFileName(filePath)).MatchData,
|
||||
Score = score,
|
||||
CopyText = filePath,
|
||||
Action = c =>
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Reference in a new issue