Skip to content

Commit 6853bb9

Browse files
authored
Merge pull request #309 from mrjones2014/mrj/111/fix-zellij-edge-detection
fix(mux): Restore cursor after zellij edge detection
2 parents 24e471d + c5a536c commit 6853bb9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,10 @@ window:
399399
Add the following keymap config to your Zellij KDL config, adjusting the keys you wish to use as necessary.
400400
No configuration should be needed on the Neovim side.
401401
402+
> [!NOTE]
403+
> This is an example. It is highly recommended to manually install the plugins and use `MessagePlugin "file:/path/to/plugin.wasm"`
404+
> instead of the GitHub URL!
405+
402406
```kdl
403407
keybinds {
404408
shared_except "locked" {

lua/smart-splits/mux/zellij.lua

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ function M.current_pane_at_edge()
3636
return false
3737
end
3838

39+
-- move back to original pane
40+
zellij_exec({ 'action', 'move-focus', Direction.right })
41+
3942
return pane_id == new_pane_id
4043
end
4144

0 commit comments

Comments
 (0)