aserowy / tmux.nvim

tmux integration for nvim features pane movement and resizing from within nvim.
MIT License
629 stars 39 forks source link

Add wezterm support as a new backend beside tmux #109

Closed illia-danko closed 9 months ago

illia-danko commented 9 months ago

Hey there. I had been a long neovim + tmux Ctrl[j,jk,h,l] user for long time. And recently found another alternative setup which satisfies all my needs. It's wezterm + its built-in multiplexer, which gives me:

The only missing part is make it works with the Ctrl[j,jk,h,l] nav workflow: to switch back and forth between panes and neovim windows seamlessly (resize panes as well, which I do not use). The solution for emacs + evil (vim binds) is already implemented. And perhaps, it is time to make it work for neovim as well. The trick is to ask wezterm about the available panes at the interested side and use these ids to direct navigation like:

wezterm cli get-pane-direction right # capture id number as stdout output
wezterm cli activate-pane --pane-id 46 # use the id

What about to create a new backend (lets say wezterm) and make the plugin work for wezterm also? Thank you for any input.

aserowy commented 9 months ago

Heho,

nice you discovered wezterm! Awesome terminal! I guess it would be worth another plugin to not drive more complexity into this one. The current implementation would deviate quite a bit.

Maybe willothys plugin already fits your needs.

A good starting point would be: