tpope / vim-tbone

tbone.vim: tmux basics
http://www.vim.org/scripts/script.php?script_id=4488
397 stars 17 forks source link

Feature request: support for the kitty terminal #23

Closed devth closed 4 years ago

devth commented 4 years ago

Kitty supports tabs and windows similar to tmux. I am using it as a tmux replacement for performance reasons.

Kitty has expressive remote controls to control any tab or window.

I tried to hack something on top of vim-dispatch that acts like vim-tbone:

function! TerminalH()
  let line=getline('.')
  execute "Spawn! kitty @ send-text --match title:left ".line."\r"
endfunction
nnoremap <leader>twh :call TerminalH()<cr>

It's gross and doesn't work that well when I have multiple tabs each with multiple windows.

tpope commented 4 years ago

A plugin designed from the ground up to abstract over both forms of multiplexing sounds very cool. Even if you ignore :Tmux, I don't think retrofitting all tbone functionality to support both targets is tenable.