-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Switching between neovim and wezterm panes when using wezterm ssh client does not work #163
Comments
Hm, the issue is because of |
Hmm ok. Sounds like more of a wezterm issue then |
It seems to work when connecting to the persistent ssh domain instead of the ad-hoc one. e.g |
In the case where it doesn't work, if you run |
It just returns an empty list :/ But I'm unsure how that connection would work anyway, how should the wezterm cli running on the remote machine know things about the local wezterm gui. My guess is when connecting using the persistent ssh domain it uses the socket somehow. |
Interesting. I have the same issue but even without an ssh connection. Just wezterm and Neovim |
I'm in the same situation as you, and so far I've come to the conclusion that neovim doesn't receive key events, but inside neovim you can see that shortcuts have been bound via :verbose map . But when I use vim.notify to throw an exception in the smart-splits source code, the shortcut is again available using the. function M.get()
if
config.multiplexer_integration == nil
or config.multiplexer_integration == false
or #tostring(config.multiplexer_integration or '') == 0
then
return nil
end
local ok, mux = pcall(require, string.format('smart-splits.mux.%s', config.multiplexer_integration))
print(ok) # no error
print(vim.inspect(mux)) # no error
vim.notify(ok) # error
if not ok then
log.error(mux)
end
return ok and mux or nil
end |
Interesting. Could you open a separate issue for that? |
|
Pretty sure it's all related to this. Still investigating. |
See also: wez/wezterm#5378 (reply in thread) It should be something like |
So I can reproduce this with normal ssh but I actually cannot reproduce using |
Similar Issues
Neovim Version
Multiplexer Integration
Wezterm
Multiplexer Version
wezterm 20240203-110809-5046fc22
Steps to Reproduce
wezterm ssh <your-host>
Expected Behavior
You should be able to navigate out of neovim split in a
wezterm ssh <host>
session.Actual Behavior
You can only navigate to an neovim split, not out of it.
Minimal Configuration to Reproduce
Additional Details and/or Screenshots
I've been digging around a bit on this one, and from what i can gather it is only an issue when using wezterms built in ssh client, e.g if if i run
ssh <host>
switching between panes works.I've set up the shell-integrations as per the instructions in the wezterm docs: https://github.com/wez/wezterm/blob/main/assets/shell-integration/wezterm.sh and can confirm that the
IS_NVIM
user var is being set correctly and is accessible from outside the remote host.I can't see anything interesting in
:SmartSplitsLog
It seems that the call to
wezterm_exec({ 'get-pane-direction', direction })
here https://github.com/mrjones2014/smart-splits.nvim/blob/78f0c74ea1d5aa1725ab63b25761886245622904/lua/smart-splits/mux/wezterm.lua#L97C1-L97C43 doesn't return anything.Running the command in bash on the remote host gives the following error:
Edit: though that might be because i didn't specify it when running the command
The text was updated successfully, but these errors were encountered: