mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-16 11:00:23 +00:00
feat: better logging for toggle
This commit is contained in:
parent
b66e92d4f5
commit
07cca27cf1
@ -107,9 +107,9 @@ end
|
|||||||
|
|
||||||
---@param list? HarpoonList
|
---@param list? HarpoonList
|
||||||
function HarpoonUI:toggle_quick_menu(list)
|
function HarpoonUI:toggle_quick_menu(list)
|
||||||
Logger:log("ui#toggle_quick_menu", list and list.name)
|
|
||||||
|
|
||||||
if list == nil or self.win_id ~= nil then
|
if list == nil or self.win_id ~= nil then
|
||||||
|
Logger:log("ui#toggle_quick_menu#closing", list and list.name)
|
||||||
if self.settings.save_on_toggle then
|
if self.settings.save_on_toggle then
|
||||||
self:save()
|
self:save()
|
||||||
end
|
end
|
||||||
@ -117,6 +117,7 @@ function HarpoonUI:toggle_quick_menu(list)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Logger:log("ui#toggle_quick_menu#opening", list and list.name)
|
||||||
local win_id, bufnr = self:_create_window()
|
local win_id, bufnr = self:_create_window()
|
||||||
|
|
||||||
self.win_id = win_id
|
self.win_id = win_id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user