dhruvasagar / vim-zoom

Toggle zoom in / out individual windows (splits)
239 stars 15 forks source link

zoom-out in tmux? #22

Closed gcqmkm closed 2 years ago

gcqmkm commented 2 years ago

Why does zoom-out not work when in tmux?

dhruvasagar commented 2 years ago

@gcqmkm I use tmux actively, it works for me. Can you share in detail what and how you're trying to use vim-zoom ?

gcqmkm commented 2 years ago

Actually I was just stupid. It seems that it does not have anything to do with tmux. When zooming in function zoom#toggle I get an E474 error: sessionoptions+=blank,buffers,curdir,terminal,help Most of the times zooming works, but sometimes, maybe with complex window structure 3windows vert split above and 1 window below, if i try to zoom in window below it freezes and zoom does not do anything. I need to press ctrl-c to make unfreeze vim, and then I can continue my work as normal. I use ctrl-w m. This problem seems not to appear when using ctrl-w z. It is kind of random. I am using vim8.2

dhruvasagar commented 2 years ago

vim-zoom offers \m, not \z

gcqmkm commented 2 years ago

The error is caused by curdir parameter, since I have sesdir already in my sessionoptions by default.

dhruvasagar commented 2 years ago

@gcqmkm Interesting, thanks for that, let me try to address this.

dhruvasagar commented 2 years ago

@gcqmkm I've pushed an update that should address this. Let me know.

gcqmkm commented 2 years ago

Yes, actually I got the same error. I made a pull request with the code that works for me. Please check.

dhruvasagar commented 2 years ago

@gcqmkm But I have already fixed the issue.

dhruvasagar commented 2 years ago

@gcqmkm Is the fix I pushed not working for you ? Kindly let me know.

gcqmkm commented 2 years ago

It does not work for me. The code in pull request works.

dhruvasagar commented 2 years ago

@gcqmkm I haven't tried since my changes were solving it, i'll take another look.