-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: Please support nyngwang/NeoZoom.lua
#64
Comments
Should be fixed now |
Confirmed. Thank you a lot! |
@stevearc I just found a problem. I'm using a
vim.keymap.set('n', ';', function ()
if vim.bo.buftype == 'terminal' then return end
if vim.bo.filetype ~= 'oil'
then require('oil').open()
else require('oil').close() end
end) Update: I just found a client-side workaround that might be helpful as an impl. reference: vim.keymap.set('n', ';', function ()
if vim.bo.buftype == 'terminal' then return end
if vim.bo.filetype ~= 'oil' then
vim.w.oil_win_enter = vim.api.nvim_get_current_buf()
vim.w.oil_view_win_enter = vim.fn.winsaveview()
require('oil').open()
else
if vim.api.nvim_buf_is_valid(vim.w.oil_win_enter or -1) then
vim.api.nvim_set_current_buf(vim.w.oil_win_enter)
vim.fn.winrestview(vim.w.oil_view_win_enter)
end
end
end) |
Did the fix for #65 resolve this as well? |
@stevearc Sorry for my late reply. the first point has been resolved and the second point is not valid after #65 as it's not related to the rightmost window anymore. The current problem is shown by the DEMO below: Explanation for the DEMO:
According to the demo, this is the new problem to be solved:
demo_oil_should_not_close_win_on_oil_close.mov |
That was an interesting autocmd edge case. Should be fixed now! |
@stevearc Thank you! I just confirmed it! |
Did you check existing requests?
Describe the feature
Currently, oil.nvim always close the floating window created by nyngwang/NeoZoom.lua when it shouldn't.
<C-c>
doesn't work as expected::NeoZoomToggle
on a bufferA
to create a floating window holdingA
.:Oil
to replaceA
with the filetree.<C-c>
to switch back toA
.Step 3. will fail and close the floating window.
<CR>
doesn't work as expected::NeoZoomToggle
on a bufferA
to create a floating window.:Oil
to replaceA
with the filetree.<CR>
on bufferB
to switch the current buffer toB
.Again, step 3. will close the floating window and stay in the oil buffer.
Provide background
I expect that I oil.nvim should not close any floating window created by other plugins.
Additional details
No response
The text was updated successfully, but these errors were encountered: