From ec02b438a147fe1a5877b115ccaced01cf119e11 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Thu, 18 Jun 2020 23:04:12 +0200 Subject: README: Add more examples for opening in the same terminal window --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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 Control + q 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]. -- cgit v1.2.3