Skip to content

Commit

Permalink
Merge pull request microsoft#1 from jjw24/add_folderplugin_displayloc…
Browse files Browse the repository at this point in the history
…ation

Add folder location display to Wox.Plugin.Folder
  • Loading branch information
jjw24 authored Jul 31, 2019
2 parents 0e03b95 + b85632c commit 4231d7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Plugins/Wox.Plugin.Folder/FolderLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public class FolderLink
[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) + ")";
}
}

0 comments on commit 4231d7b

Please sign in to comment.