From ba26752f6c370acf6b2a89d76a5256552f4d6d9a Mon Sep 17 00:00:00 2001 From: Arijit Basu Date: Fri, 7 Jul 2023 09:45:11 +0530 Subject: [PATCH] Use correct base for symlink for alternate layouts --- src/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/init.lua b/src/init.lua index e06f1a1..1d994cb 100644 --- a/src/init.lua +++ b/src/init.lua @@ -2915,7 +2915,8 @@ end xplr.fn.builtin.fmt_general_selection_item = function(n) local nl = xplr.util.paint("\\n", { add_modifiers = { "Italic", "Dim" } }) - local sh_config = { with_prefix_dots = true, without_suffix_dots = true } + local sh_config = + { base = n.parent, with_prefix_dots = true, without_suffix_dots = true } local shortened = xplr.util.shorten(n.absolute_path, sh_config) if n.is_dir then shortened = shortened .. "/"