summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-11-15 12:21:42 +0800
committerMaxime Coste <mawww@kakoune.org>2017-11-16 12:56:42 +0800
commit386f595a494f2fca3d52388a9d64c35bfd8bb3c6 (patch)
tree605aee9e03dc371bbb28a8296035a9c558a3976e
parent281890ea7adae12871ed98449312abeb1a573ab7 (diff)
screen.kak: use `define-command` full name instead of `def` alias
-rw-r--r--rc/base/screen.kak8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc/base/screen.kak b/rc/base/screen.kak
index e95bb3b0..157d38d0 100644
--- a/rc/base/screen.kak
+++ b/rc/base/screen.kak
@@ -12,28 +12,28 @@ hook global KakBegin .* %{
}
-def screen-new-vertical -params .. -command-completion -docstring "Create a new vertical region" %{
+define-command screen-new-vertical -params .. -command-completion -docstring "Create a new vertical region" %{
%sh{
tty="$(ps -o tty ${kak_client_pid} | tail -n 1)"
screen -X eval 'split -h' 'focus down' "screen kak -c \"${kak_session}\" -e \"$*\"" < "/dev/$tty"
}
}
-def screen-new-horizontal -params .. -command-completion -docstring "Create a new horizontal region" %{
+define-command screen-new-horizontal -params .. -command-completion -docstring "Create a new horizontal region" %{
%sh{
tty="$(ps -o tty ${kak_client_pid} | tail -n 1)"
screen -X eval 'split -v' 'focus right' "screen kak -c \"${kak_session}\" -e \"$*\"" < "/dev/$tty"
}
}
-def screen-new-window -params .. -command-completion -docstring "Create a new window" %{
+define-command screen-new-window -params .. -command-completion -docstring "Create a new window" %{
%sh{
tty="$(ps -o tty ${kak_client_pid} | tail -n 1)"
screen -X screen kak -c "${kak_session}" -e "$*" < "/dev/$tty"
}
}
-def -docstring %{screen-focus [<client>]: focus the given client
+define-command -docstring %{screen-focus [<client>]: focus the given client
If no client is passed then the current one is used} \
-params ..1 -client-completion \
screen-focus %{ %sh{