Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ public List<Result> ContextMenus(IPublicAPI api)
},
IcoPath = "Images/folder.png",
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\xe838"),
CopyText = Location,
}
};

Expand Down
5 changes: 4 additions & 1 deletion Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ public List<Result> ContextMenus(IPublicAPI api)
},
IcoPath = "Images/folder.png",
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\xe838"),
CopyText = ParentDirectory,
},
};
if (Extension(FullPath) == ShortcutExtension)
Expand All @@ -278,16 +279,18 @@ public List<Result> ContextMenus(IPublicAPI api)

private Result OpenTargetFolderContextMenuResult(IPublicAPI api)
{
var ParentDirectory = Path.GetDirectoryName(ExecutablePath);
return new Result
{
Title = api.GetTranslation("flowlauncher_plugin_program_open_target_folder"),
Action = _ =>
{
api.OpenDirectory(Path.GetDirectoryName(ExecutablePath), ExecutablePath);
api.OpenDirectory(ParentDirectory, ExecutablePath);
return true;
},
IcoPath = "Images/folder.png",
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\xe8de"),
CopyText = ParentDirectory,
};
}

Expand Down
Loading