Save last_dir before jump
This commit is contained in:
8
main.lua
8
main.lua
@@ -272,15 +272,15 @@ return {
|
|||||||
end
|
end
|
||||||
|
|
||||||
if action == "jump" then
|
if action == "jump" then
|
||||||
|
if get_last_mode() == "jump" then
|
||||||
|
save_last_jump()
|
||||||
|
end
|
||||||
|
|
||||||
if bookmarks[selected].is_parent then
|
if bookmarks[selected].is_parent then
|
||||||
ya.manager_emit("cd", { bookmarks[selected].path })
|
ya.manager_emit("cd", { bookmarks[selected].path })
|
||||||
else
|
else
|
||||||
ya.manager_emit("reveal", { bookmarks[selected].path })
|
ya.manager_emit("reveal", { bookmarks[selected].path })
|
||||||
end
|
end
|
||||||
|
|
||||||
if get_last_mode() == "jump" then
|
|
||||||
save_last_jump()
|
|
||||||
end
|
|
||||||
elseif action == "delete" then
|
elseif action == "delete" then
|
||||||
delete_bookmark(selected)
|
delete_bookmark(selected)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user