2018-12-09 10:03:30 +01:00
|
|
|
define-command new -params .. -command-completion -docstring '
|
|
|
|
new [<commands>]: create a new kakoune client
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|