2018-12-09 10:03:30 +01:00
|
|
|
define-command new -params .. -command-completion -docstring '
|
2021-06-13 04:12:03 +02:00
|
|
|
new [<commands>]: create a new Kakoune client
|
2018-12-09 10:03:30 +01:00
|
|
|
The ''terminal'' alias is being used to determine the user''s preferred terminal emulator
|
|
|
|
The optional arguments are passed as commands to the new client' \
|
|
|
|
%{
|
|
|
|
try %{
|
2018-12-21 18:14:28 +01:00
|
|
|
terminal kak -c %val{session} -e "%arg{@}"
|
2018-12-09 10:03:30 +01:00
|
|
|
} catch %{
|
|
|
|
fail "The 'terminal' alias must be defined to use this command"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|