Splits with Tmux, Neovim, FZF & Yabai #150
Replies: 5 comments
-
This is really neat, thanks for sharing! |
Beta Was this translation helpful? Give feedback.
-
Thanks for this, I’ve always fallen short figuring out the tmux part of this. One little thing is that you should be ignoring the keybindings in E.g: ctrl - h [
* : yabai -m window --focus west || yabai -m display --focus west
"Kitty" ~ # REMOVE : skhd -k "ctrl - h"
] Synthesizing the keybind causes some issues with some terminals and how they interpret "ctrl", "meta", "alt" etc Additionally, (at least on macOS) wrapping the yabai command in the following can squash undesired tmux messages: |
Beta Was this translation helpful? Give feedback.
-
Good catch on the skhd config, thanks! I added || true a little while ago to stop those messages lol, great minds: koekeishiya/yabai#2238 (comment) Not sure if you use ssh much but if you can figure out a way of making yabai navigation work across nested tmux sessions I'm all ears! |
Beta Was this translation helpful? Give feedback.
-
@PhrantiK can you please elaborate a bit how the Also, is there an assumption that Kitty is running tmux/neovim? |
Beta Was this translation helpful? Give feedback.
-
Yep, tmux running neovim inside kitty. The smart-splits.lua file is the returning the setup config for smart splits with lazy.nvim: https://github.com/mrjones2014/smart-splits.nvim?tab=readme-ov-file#configuration I have my neovim config separated into files but it doesn't have to be: |
Beta Was this translation helpful? Give feedback.
-
Managed to get pane navigation working across yabai windows|displays, tmux & neovim with a single set of keybindings. Resizing & Swapping works across tmux & neovim splits.
I can never remember key bindings so try to use the same ones for direction including C-j C-k for up & down in FZF, telescope.
Hope this helps prevent anyone else from sustaining the same injuries as I do from banging my head on the desk. If anyone can spot improvements please let me know!
smart-splits.lua
bindings
tmux.conf
skhdrc
Note: no clue if the kitty mux works or not, I don't use it.
Beta Was this translation helpful? Give feedback.
All reactions