diff options
| author | Mathieu Ablasou <alexherbo2@gmail.com> | 2020-11-23 16:41:44 +0100 |
|---|---|---|
| committer | Mathieu Ablasou <alexherbo2@gmail.com> | 2020-11-23 16:41:44 +0100 |
| commit | 9d942c5d5dd21fff3ca125b02ed618dacc106f14 (patch) | |
| tree | 2ac3cfefdf16976058d028e38e17db1269906af8 | |
| parent | a27e7781edf496f48210a21360eeddba6d1d7753 (diff) | |
Add @ (connect-repl) command
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | rc/connect.kak | 5 |
2 files changed, 7 insertions, 1 deletions
@@ -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 } |
