Closed willothy closed 9 months ago
Thanks!
Thanks for all your work!
I just reverted this change since edgebars are now re-layout whenever you chnage the current buffer, which is not great.
What was the exact problem you wanted to solve here?
Can you give me step by step how to reproduce and what didnt work?
Sure, no worries :) Essentially, I use dropbar.nvim along with toggleterm and edgy for managing terminals. The issue is that when I switch between terminals in the edgy window, the winbar disappears so I'm unable to open the popup and switch back using my regular mappings.
Here's a video:
https://github.com/folke/edgy.nvim/assets/38540736/3c685acd-f94e-427e-ba47-766abe9f2c4b
I was actually just about to look into a better solution for this, sorry I should've updated but didn't know you were about to merge haha. Maybe a single BufWinEnter autocmd that updates only the view that changed would work? The layout doesn't actually nee to be recomputed, the view just needs to be updated.
I was actually just about to look into a better solution for this, sorry I should've updated but didn't know you were about to merge haha. Maybe a single BufWinEnter autocmd that updates only the view that changed would work? The layout doesn't actually nee to be recomputed, the view just needs to be updated.
Found the cause! When switching buffers in the edgy window, the window id that is passed to the winbar changes to an id that is not correct. It doesn't seem to be invalid as there are no errors, but it is not the id of the current window. Looking into it now.
I have come up with a much simpler solution in #55 since I was able to find out what the actual issue was :)
Sorry about the initial PR, should have looked deeper before submitting that.
problem: When switching buffers to a buffer of the same filetype in an edgy window, the view is not updated and the winbar does not appear.
solution: Update edgebars on BufWinEnter.