Skip to content
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

feat(mux): Support splitting Kitty multiplexer panes #206

Merged
merged 2 commits into from
Jun 4, 2024
Merged

feat(mux): Support splitting Kitty multiplexer panes #206

merged 2 commits into from
Jun 4, 2024

Conversation

mochouaaaaa
Copy link
Contributor

@mochouaaaaa mochouaaaaa commented Jun 4, 2024

Fixes #205

How to test

Ensure you've run post-install hooks for kitty; I think you can do this via :Lazy sync<cr>

  1. Use following config in a Kitty multiplexer session:
-- the actual keys `<M-C-k>` can be whatever you'd like
vim.keymap.set("n", "<M-C-k>", function()
    mux.split_pane("up")
end)
vim.keymap.set("n", "<M-C-j>", function()
    mux.split_pane("down")
end)
vim.keymap.set("n", "<M-C-h>", function()
    mux.split_pane("left")
end)
vim.keymap.set("n", "<M-C-l>", function()
    mux.split_pane("right")
end)
  1. Use the keymaps, they should create kitty splits

@mochouaaaaa mochouaaaaa changed the title feature: https://github.com/mrjones2014/smart-splits.nvim/issues/205 feature: (mux) add kitty window split Jun 4, 2024
@mochouaaaaa mochouaaaaa changed the title feature: (mux) add kitty window split Feature: (mux) add kitty window split Jun 4, 2024
@mochouaaaaa mochouaaaaa changed the title Feature: (mux) add kitty window split feature: (mux) add kitty window split Jun 4, 2024
@mochouaaaaa mochouaaaaa changed the title feature: (mux) add kitty window split feat: (mux) add kitty window split Jun 4, 2024
@mrjones2014 mrjones2014 changed the title feat: (mux) add kitty window split feat(mux): add kitty window split Jun 4, 2024
@mrjones2014 mrjones2014 changed the title feat(mux): add kitty window split feat(mux): Support splitting Kitty multiplexer panes Jun 4, 2024
@mrjones2014
Copy link
Owner

Looks like there is one Luacheck warning that needs to be resolved, but looks good other than that. https://github.com/mrjones2014/smart-splits.nvim/actions/runs/9360568332/job/25782345774?pr=206#step:6:15

@mrjones2014 mrjones2014 merged commit 54cbdb8 into mrjones2014:master Jun 4, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Add neovim to the Kitty terminal for window cutting
2 participants