Closed D00mch closed 5 months ago
Hey 👋 that's weird. The order seems to be kept correctly for me here.
I close windows with mapping that does :q<Cr>
. Don't know what may cause this behavior. Lets maybe wait for a while if anyone has the same problem.
I have the same exact mapping <leader>q :q<CR>
so that shouldn't be the cause.
I have the same issue but I need to go three levels deep.
Same issue here, if using <C-w>c
it doesn't go back at all, if you chain three deep then :q
will only go back once. I guess there is a variable last
that gets updated instead of a stack?
Describe the solution you'd like If I open previews
a
,b
, andc
, closingc
should put my focus on b; closing b — ona
.Describe alternatives you've considered I have a function that I do
vim.keymap.set
with the local buffer inside thepost_open_hook
:Additional context On the gif below I do:
close_and_move_focus_on_prev
function;(my config is in fennel).