mrjones2014 / smart-splits.nvim

🧠 Smart, seamless, directional navigation and resizing of Neovim + terminal multiplexer splits. Supports tmux, Wezterm, and Kitty. Think about splits in terms of "up/down/left/right".
MIT License
906 stars 38 forks source link

How to not break tmux zoom mode? #40

Closed towry closed 1 year ago

towry commented 1 year ago

I use <F12> to toggle the zoom mode, in tmux zoom mode, if I switch panel in vim, it will un zoom the tmux which is annoying.

Expected behavior Ability to detect tmux zoom mode.

mrjones2014 commented 1 year ago

I’m not familiar with tmux zoom mode but I can look into it 👍

mrjones2014 commented 1 year ago

@towry to clarify, what is the desired behavior here? Just don't do anything when the current pane is zoomed?

towry commented 1 year ago

@mrjones2014 Like https://github.com/christoomey/vim-tmux-navigator#tmux did, let g:tmux_navigator_disable_when_zoomed = 1

mrjones2014 commented 1 year ago

@towry can you test this PR and make sure it works as intended? if so I will merge: https://github.com/mrjones2014/smart-splits.nvim/pull/41

towry commented 1 year ago

@mrjones2014 You are amazing! ❤️ It works!