Closed robertmeta closed 4 years ago
connect.kak does not handle the windowing.
You should ask for tmux.kak
or add a command to position the window.
tmux-terminal-window
⇒ tmux-terminal-impl new-window %arg{@}
There exists tmux-terminal-vertical
and tmux-terminal-horizontal
Do you see a nice way to make the terminal
command in connect.kak
configurable?
I’m not sure if it should be addressed here or upstream.
Fair point, hmph... Let me consider it, if I come up with a good solution I will submit a PR. I was hoping you would have a great notion!
It could be nice to be able to tell terminal
whether we want the newly created window.
Something like Splitting containers for setting the orientation could be nice for Kakoune.
Maybe ask @occivink also.
At some point the idea of a -split vertical|horizontal
parameter to terminal
floated around, but it never really got anywhere. What you can do is simply change the terminal
alias, like so
define-command connect-vertical %{
alias global terminal tmux-terminal-vertical
connect
}
define-command connect-horizontal %{
alias global terminal tmux-terminal-horizontal
connect
}
but it sucks a bit that it modifies the global configuration
How about a split
command setting an option, and the terminal
implementations doing something with that option?
split (vertical|horizontal|toggle)
that would be amazing!
@occivink Are you op to take care of that request?
I’m closing, as this issue is more addressed upstream.
@robertmeta terminal-mode.kak
I would love to be able to fire this off in a vertical or horizontal mode.