fix(api): Add back is_focus_in_outline
This commit is contained in:
@@ -130,6 +130,11 @@ function M.open_outline(opts)
|
|||||||
return sidebar:open(opts)
|
return sidebar:open(opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---@return boolean? has_focus Nil when no outline opened yet, otherwise returns whether cursor is in outline window.
|
||||||
|
function M.is_focus_in_outline()
|
||||||
|
return M._sidebar_do('has_focus')
|
||||||
|
end
|
||||||
|
|
||||||
---Handle follow cursor command with bang
|
---Handle follow cursor command with bang
|
||||||
local function _cmd_follow_cursor(opts)
|
local function _cmd_follow_cursor(opts)
|
||||||
M.follow_cursor({ focus_outline = not opts.bang })
|
M.follow_cursor({ focus_outline = not opts.bang })
|
||||||
|
|||||||
Reference in New Issue
Block a user