Rename bookmark_file_pick_mode option value from current to parent
This commit is contained in:
6
init.lua
6
init.lua
@@ -36,7 +36,7 @@ end)
|
|||||||
local _get_bookmark_file = ya.sync(function(state)
|
local _get_bookmark_file = ya.sync(function(state)
|
||||||
local folder = cx.active.current
|
local folder = cx.active.current
|
||||||
|
|
||||||
if state.bookmark_file_pick_mode == "current" or not folder.hovered then
|
if state.bookmark_file_pick_mode == "parent" or not folder.hovered then
|
||||||
return { url = folder.cwd, is_cwd = true }
|
return { url = folder.cwd, is_cwd = true }
|
||||||
end
|
end
|
||||||
return { url = folder.hovered.url, is_cwd = false }
|
return { url = folder.hovered.url, is_cwd = false }
|
||||||
@@ -247,8 +247,8 @@ return {
|
|||||||
state.desc_format = "full"
|
state.desc_format = "full"
|
||||||
end
|
end
|
||||||
|
|
||||||
if args.bookmark_file_pick_mode == "current" then
|
if args.bookmark_file_pick_mode == "parent" then
|
||||||
state.bookmark_file_pick_mode = "current"
|
state.bookmark_file_pick_mode = "parent"
|
||||||
else
|
else
|
||||||
state.bookmark_file_pick_mode = "hover"
|
state.bookmark_file_pick_mode = "hover"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user