summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--rc/connect.kak5
2 files changed, 7 insertions, 1 deletions
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