rc: Clearify the behavior of multiplexers that create new clients
Note: `GNU/screen` has a different interpretation of what constitutes a "vertical split", hence the inverted command descriptions, compared to the tmux/iterm etc. Closes #1626
This commit is contained in:
parent
513eb2720e
commit
46943d4374
|
@ -12,7 +12,7 @@ hook -group GNUscreen global KakBegin .* %{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
define-command screen-new-vertical -params .. -command-completion -docstring "Create a new vertical region" %{
|
define-command screen-new-vertical -params .. -command-completion -docstring "Split the current pane into two, left and right" %{
|
||||||
%sh{
|
%sh{
|
||||||
tty="$(ps -o tty ${kak_client_pid} | tail -n 1)"
|
tty="$(ps -o tty ${kak_client_pid} | tail -n 1)"
|
||||||
screen -X eval \
|
screen -X eval \
|
||||||
|
@ -24,7 +24,7 @@ define-command screen-new-vertical -params .. -command-completion -docstring "Cr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
define-command screen-new-horizontal -params .. -command-completion -docstring "Create a new horizontal region" %{
|
define-command screen-new-horizontal -params .. -command-completion -docstring "Split the current pane into two, top and bottom" %{
|
||||||
%sh{
|
%sh{
|
||||||
tty="$(ps -o tty ${kak_client_pid} | tail -n 1)"
|
tty="$(ps -o tty ${kak_client_pid} | tail -n 1)"
|
||||||
screen -X eval \
|
screen -X eval \
|
||||||
|
|
|
@ -28,11 +28,11 @@ define-command -hidden -params 1.. tmux-new-impl %{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
define-command tmux-new-vertical -params .. -command-completion -docstring "Create a new vertical pane" %{
|
define-command tmux-new-vertical -params .. -command-completion -docstring "Split the current pane into two, top and bottom" %{
|
||||||
tmux-new-impl 'split-window -v' %arg{@}
|
tmux-new-impl 'split-window -v' %arg{@}
|
||||||
}
|
}
|
||||||
|
|
||||||
define-command tmux-new-horizontal -params .. -command-completion -docstring "Create a new horizontal pane" %{
|
define-command tmux-new-horizontal -params .. -command-completion -docstring "Split the current pane into two, left and right" %{
|
||||||
tmux-new-impl 'split-window -h' %arg{@}
|
tmux-new-impl 'split-window -h' %arg{@}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,11 +29,11 @@ define-command -hidden -params 1.. iterm-new-split-impl %{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
define-command iterm-new-vertical -params .. -command-completion -docstring "Create a new vertical pane" %{
|
define-command iterm-new-vertical -params .. -command-completion -docstring "Split the current pane into two, top and bottom" %{
|
||||||
iterm-new-split-impl 'vertically' %arg{@}
|
iterm-new-split-impl 'vertically' %arg{@}
|
||||||
}
|
}
|
||||||
|
|
||||||
define-command iterm-new-horizontal -params .. -command-completion -docstring "Create a new horizontal pane" %{
|
define-command iterm-new-horizontal -params .. -command-completion -docstring "Split the current pane into two, left and right" %{
|
||||||
iterm-new-split-impl 'horizontally' %arg{@}
|
iterm-new-split-impl 'horizontally' %arg{@}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user