letieu / wezterm-move.nvim

Directional navigation of Neovim + Wezterm
20 stars 3 forks source link

The keybindings don’t work when using the WezTerm multiplexer #2

Open relausen opened 1 month ago

relausen commented 1 month ago

The setup is based on using WezTerm’s pane:get_foreground_process_info() which is not working when using the multiplexer (https://wezfurlong.org/wezterm/multiplexing.html).

One solution for this is to use WezTerm’s user vars, as suggested by Wez himself here: https://github.com/wez/wezterm/discussions/3648#discussioncomment-5768342

I have made a test implementation of this in a fork of this repo, and it seems to work fine for me - at least using Unix domains. If you think it will be a good idea to change to this method I would be happy to contribute.

letieu commented 1 month ago

I think it would be nice. I will happy if you contribute

relausen commented 1 month ago

Alright, I will give it a go :-)

relausen commented 1 month ago

Since the “pure” lazy load feature sounds like it’s an important feature of this project, I should note that I could only get it to work when not lazy loading, as is also the case with the smart-splits.nvim project: https://github.com/mrjones2014/smart-splits.nvim?tab=readme-ov-file#wezterm

Is this a showstopper for you?

letieu commented 1 month ago

Since the “pure” lazy load feature sounds like it’s an important feature of this project, I should note that I could only get it to work when not lazy loading, as is also the case with the smart-splits.nvim project: https://github.com/mrjones2014/smart-splits.nvim?tab=readme-ov-file#wezterm

Is this a showstopper for you?

Have another issue and work around by use Title name. https://github.com/letieu/wezterm-move.nvim/issues/1

I still want keep the pure lazy load :))

relausen commented 1 month ago

No worries - it’s perfectly understandable. I’ll just use my fork - the increased startup time is barely measurable with the small codebase here :-). I don’t like changing my pane titles or depending on it in plugin code.