From c84d4e9f2801b09a142b4e80b1fff9425df3ee8e Mon Sep 17 00:00:00 2001 From: Mathieu Ablasou Date: Mon, 23 Nov 2020 16:47:38 +0100 Subject: Add + (connect-popup) command --- README.md | 3 ++- rc/connect.kak | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 741a7b2..3e24c37 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ require-module connect ## Usage -**>**, **@**, **$** and **&** are [Kakoune commands][Documentation]. +**>**, **+**, **@**, **$** and **&** are [Kakoune commands][Documentation]. The **:** prefixes all [connect.kak shell commands][Commands], and usually have an [alias][Aliases] on a single key – `:[e]dit` and `:[o]pen` for example. @@ -231,6 +231,7 @@ Available variables are: [Documentation]: #documentation - `>` ⇒ Open a new terminal +- `+` ⇒ Open a new popup - `@` ⇒ Open a new REPL - `$` ⇒ Execute commands in a shell - `&` ⇒ Write an attachable program to `connect.sh` and detach the client diff --git a/rc/connect.kak b/rc/connect.kak index 2773201..5e78305 100644 --- a/rc/connect.kak +++ b/rc/connect.kak @@ -47,6 +47,10 @@ provide-module connect %{ connect terminal %arg{@} } + define-command connect-popup -params 1.. -shell-completion -docstring 'Open a new popup' %{ + connect popup %arg{@} + } + define-command connect-repl -params .. -shell-completion -docstring 'Open a new REPL' %{ connect repl-new %arg{@} } @@ -122,6 +126,7 @@ provide-module connect %{ # Aliases alias global > connect-terminal + alias global + connect-popup alias global @ connect-repl alias global $ connect-shell alias global & connect-detach -- cgit v1.2.3