From 3b6932eea6b2aebb4e945eac46774a96ac71dbe5 Mon Sep 17 00:00:00 2001 From: Richard Potter Date: Thu, 24 Apr 2025 20:11:49 -0600 Subject: [PATCH] Make desk_format apply when creating new bookmarks fixes: https://github.com/dedukun/bookmarks.yazi/issues/45 If a user may choose to set multiple marks in the same parent dir for various hovered items, this won't look good. They would be better off setting desc_format = "full". This is however closer to Ranger marks and will look clean for those who only set one mark per directory. --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 5b155fd..55606ca 100644 --- a/main.lua +++ b/main.lua @@ -155,7 +155,7 @@ local save_bookmark = ya.sync(function(state, idx, custom_desc) _idx = #state.bookmarks + 1 end - local bookmark_desc = tostring(file.url) + local bookmark_desc = tostring(_generate_description(file)) if custom_desc then bookmark_desc = tostring(custom_desc) end