summaryrefslogtreecommitdiff
path: root/autoload/windowing/new-client.kak
diff options
context:
space:
mode:
authorthing1 <thing1@seacrossedlovers.xyz>2025-01-28 09:14:32 +0000
committerthing1 <thing1@seacrossedlovers.xyz>2025-01-28 09:14:32 +0000
commit904cec3c4a329cf89fc3219d359239910d61f3f6 (patch)
tree8d113899921dfbaca0e77c49ab5fc827362d1091 /autoload/windowing/new-client.kak
init commitHEADmaster
Diffstat (limited to 'autoload/windowing/new-client.kak')
-rw-r--r--autoload/windowing/new-client.kak9
1 files changed, 9 insertions, 0 deletions
diff --git a/autoload/windowing/new-client.kak b/autoload/windowing/new-client.kak
new file mode 100644
index 0000000..f852b39
--- /dev/null
+++ b/autoload/windowing/new-client.kak
@@ -0,0 +1,9 @@
+define-command new -params .. -docstring '
+new [<commands>]: create a new Kakoune client
+The ''terminal'' command is used to determine the user''s preferred terminal emulator
+The optional arguments are passed as commands to the new client' \
+%{
+ terminal kak -c %val{session} -e "%arg{@}"
+}
+
+complete-command -menu new command