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 1032d20..741a7b2 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 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 2e837c9..2773201 100644
--- a/rc/connect.kak
+++ b/rc/connect.kak
@@ -47,6 +47,10 @@ provide-module connect %{
connect terminal %arg{@}
}
+ define-command connect-repl -params .. -shell-completion -docstring 'Open a new REPL' %{
+ connect repl-new %arg{@}
+ }
+
define-command connect-shell -params 1.. -shell-completion -docstring 'Execute commands in a shell' %{
connect sh %arg{@}
}
@@ -118,6 +122,7 @@ provide-module connect %{
# Aliases
alias global > connect-terminal
+ alias global @ connect-repl
alias global $ connect-shell
alias global & connect-detach
}