dccsillag / magma-nvim

Interact with Jupyter from NeoVim.
GNU General Public License v3.0
977 stars 49 forks source link

[Bug] ReevalateCell & Delete cause the output to remain regardless of current cell. #83

Closed Riverside96 closed 1 year ago

Riverside96 commented 1 year ago

the Delete function does not work but instead leaves the output "stuck" while the ReevaluateCell does work but again leaves the previous output "stuck"

brianfabre commented 1 year ago

I have the same problem but until this gets fixed, I use a function that closes all floats and mapped it to a key. So now whenever the output gets stuck, I just press the keybind and its back to normal. Not optimal but not a reason for me to stop using magma.

local function close_float()
    -- removes any stuck floating window
    for _, win in ipairs(vim.api.nvim_list_wins()) do
        local config = vim.api.nvim_win_get_config(win)
        if config.relative ~= "" then
            vim.api.nvim_win_close(win, false)
            print("Closing window", win)
        end
    end
end
Riverside96 commented 1 year ago

Thanks. This could be handy for now. It's a shame as the integration is really nice.

WhiteBlackGoose commented 1 year ago

I believe, this is now fixed