Hello all!
So with Kitty, I have some commands already (that I stole from someone, I can’t remember who lol) for working with Tmux, and I would like to do something similar for Kitty in case I ever use it.
For Tmux I have:
hook global ModuleLoaded tmux %{
define-command vsplit -docstring "split tmux vertically with `tmux-terminal-horizontal`" \
-params .. -command-completion %{
tmux-terminal-horizontal kak -c %val{session} -e "%arg{@}"
}
define-command split -docstring "split tmux horizontally with `tmux-terminal-vertical`" \
-params .. -command-completion %{
tmux-terminal-vertical kak -c %val{session} -e "%arg{@}"
}
define-command tabnew -docstring "create new tmux window with `tmux-terminal-window`" \
-params .. -command-completion %{
tmux-terminal-window kak -c %val{session} -e "%arg{@}"
}
}
And I thought I could do something similar for Kitty:
hook global ModuleLoaded kitty %{
define-command ktab -docstring "create a new kitty tab with `kitty-terminal-tab`" \
-params .. -command-completion %{
kitty-terminal-tab kak -c %val{session} -e "%arg{@}"
}
define-command knew -docstring "create a new kitty terminal with `kitty-terminal`" \
-params .. -command-completion %{
kitty-terminal kak -c %val{session} -e "%args{@}"
}
}
However, I would rather make use of a split layout instead of opening a new window or tab. Though I’m not sure if that would be possible.