From b85632cc99be760a9a3669c41c3ec95b2938c275 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Wed, 31 Jul 2019 20:11:50 +1000 Subject: [PATCH] Add folder location display --- Plugins/Wox.Plugin.Folder/FolderLink.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/Wox.Plugin.Folder/FolderLink.cs b/Plugins/Wox.Plugin.Folder/FolderLink.cs index c6ff03d622..8148c45bf4 100644 --- a/Plugins/Wox.Plugin.Folder/FolderLink.cs +++ b/Plugins/Wox.Plugin.Folder/FolderLink.cs @@ -10,9 +10,9 @@ namespace Wox.Plugin.Folder [JsonProperty] public string Path { get; set; } - public string Nickname - { - get { return Path.Split(new[] { System.IO.Path.DirectorySeparatorChar }, StringSplitOptions.None).Last(); } - } + public string Nickname => + Path.Split(new[] { System.IO.Path.DirectorySeparatorChar }, StringSplitOptions.None) + .Last() + + " (" + System.IO.Path.GetDirectoryName(Path) + ")"; } }