-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
v2.0 discussionAn issue discussing the upcoming v2.0 changesAn issue discussing the upcoming v2.0 changes
Description
Did you check existing requests?
- I have searched the existing issues
Content
Before 2.0 I could toggle the output like so:
local toggle_runner = function(cmd)
-- Close if terminal.
if vim.bo.buftype == "terminal" then
vim.cmd("close")
return
end
-- Check for Overseer window.
for _, win in ipairs(vim.api.nvim_list_wins()) do
local buf = vim.api.nvim_win_get_buf(win)
if vim.bo[buf].filetype == "Overseer" then
vim.api.nvim_win_close(win, true)
return
end
end
-- Otherwise, run command.
vim.cmd(cmd)
end
map({
mode = "n",
lhs = "<M-;>",
rhs = function()
toggle_runner("OverseerQuickAction open float")
end,
desc = "Overseer: open task in floating window",
})Not sure how to achieve this after the update. Open to any suggestions...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
v2.0 discussionAn issue discussing the upcoming v2.0 changesAn issue discussing the upcoming v2.0 changes