summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2020-06-18 23:04:12 +0200
committerAlex Leferry 2 <alexherbo2@gmail.com>2020-06-18 23:04:12 +0200
commitec02b438a147fe1a5877b115ccaced01cf119e11 (patch)
tree266e2ab575dcf66220086641cc36269253d4990d
parentfa2bcb96f35c92639fa5420357988d8903da6676 (diff)
README: Add more examples for opening in the same terminal window
-rw-r--r--README.md22
1 files changed, 21 insertions, 1 deletions
diff --git a/README.md b/README.md
index fe60062..bf470ed 100644
--- a/README.md
+++ b/README.md
@@ -39,11 +39,31 @@ Add more entries to your liking.
Connect a terminal with [`:connect-terminal`]. Open files with [`edit`] or your
favorite program; buffers with the [`buffer`] command…
-**Tip**: You can connect to your current terminal – in a similar way to [vim-vinegar] – with the [`kak-connect`] shell command.
+**Tip**: You can connect to your current terminal (open in the same terminal window) – in a similar way to [vim-vinegar] – with the [`kak-connect`] shell command.
Try: `$ kak-connect` → `:connect-terminal` → `$ edit`.
[vim-vinegar]: https://github.com/tpope/vim-vinegar
+**Example** – Open a connected shell and reattach with [`edit`]:
+
+```
+$ kak-connect → :connect-terminal → $ edit → Quit to return to your shell
+```
+
+**Tip**: Map <kbd>Control</kbd> + <kbd>q</kbd> to quit.
+
+**Example** – Open a connected shell and [lf]:
+
+```
+$ kak-connect → :connect-terminal → $ lf → Open a file → Quit to return to lf
+```
+
+**Example** – Open [lf] connected to the Kakoune session:
+
+```
+$ kak-connect → :lf
+```
+
If you loaded the [modules], [`:fzf-files`] and [`:fzf-buffers`] commands are
also available. connect.kak currently has batteries for [fzf], [dmenu], [Rofi],
[Wofi], [lf] and [Dolphin].