summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/README.md b/README.md
index e9cfa2a..d18bb39 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,24 @@ The file will be opened in the client from where `:connect` was executed by usin
You can also use the `[e]dit` and `[b]uffer` shell commands available in `PATH`.
+### Examples
+
+**Example** – [lf] integration:
+
+``` kak
+def lf %(connect lf)
+```
+
+**Example** – [fzf] integration:
+
+``` kak
+def fzf-files %(connect edit $(fzf))
+```
+
+``` kak
+def fzf-buffers %(connect buffer $(buffer | fzf))
+```
+
## Commands
- `connect-shell [program] [arguments]`: Run a shell with `[e]dit`, `[b]uffer` and `EDITOR` connected to the current client
@@ -41,3 +59,5 @@ You can also use the `[e]dit` and `[b]uffer` shell commands available in `PATH`.
[IRC]: https://webchat.freenode.net?channels=kakoune
[IRC Badge]: https://img.shields.io/badge/IRC-%23kakoune-blue.svg
[Pathogen]: https://github.com/alexherbo2/pathogen.kak
+[lf]: https://github.com/gokcehan/lf
+[fzf]: https://github.com/junegunn/fzf