diff options
| author | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-01-15 03:25:35 +0100 |
|---|---|---|
| committer | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-02-14 16:27:42 +0100 |
| commit | d4e3d54e527db0dd81a58ebebb0c92f0df739fa3 (patch) | |
| tree | 69887a38bc4556cb2348f3bb645c0d32a5e4dba5 | |
| parent | b8558bb11694ca636d2a68451355ad817d7340f4 (diff) | |
Add dolphin module
https://dolphin.kde.org
| -rw-r--r-- | README.md | 18 | ||||
| -rw-r--r-- | rc/modules/dolphin.kak | 8 |
2 files changed, 25 insertions, 1 deletions
@@ -28,7 +28,8 @@ Connect a terminal with [`connect-terminal`]. Open files with [`edit`] or your favorite program; buffers with the [`buffer`] command… If you loaded the [modules], [`fzf-files`] and [`fzf-buffers`] (Kakoune commands) -are also available. connect.kak currently has batteries for [fzf], [Rofi] and [lf]. +are also available. connect.kak currently has batteries for [fzf], [Rofi], [lf] +and [Dolphin]. **Note**: [`fzf`] and [`rofi`] modules require [fd] for listing files. @@ -61,6 +62,16 @@ lf **Note**: Not to be confused with [`:lf`][`lf`]. connect.kak pairs with [modules] that you can load with the [`require-module`] command. +Also works great with GUI programs. + +**Example** – **Kakoune** – Open files with [Dolphin]: + +``` kak +connect-shell dolphin +``` + +Or simply [`:dolphin`][`dolphin`] if you have loaded the module. + **Example** – **Kakoune** – Open selected files with [Rofi]: ``` kak @@ -107,6 +118,7 @@ send yank-ring-load-from-file $(find $(get %opt{yank_ring_path}) -type f | sort require-module connect-fzf require-module connect-rofi require-module connect-lf +require-module connect-dolphin map global normal <c-t> ': connect-terminal<ret>' ``` @@ -120,6 +132,7 @@ map global normal <c-t> ': connect-terminal<ret>' - [`rofi-files`] | [`rofi`] - [`rofi-buffers`] - [`lf`] +- [`dolphin`] [`rc`]: rc [modules]: rc/modules @@ -139,6 +152,8 @@ map global normal <c-t> ': connect-terminal<ret>' [`lf`]: rc/modules/lf.kak +[`dolphin`]: rc/modules/dolphin.kak + ## Shell commands - [`edit`] | [`e`] @@ -162,6 +177,7 @@ map global normal <c-t> ': connect-terminal<ret>' [fzf]: https://github.com/junegunn/fzf [Rofi]: https://github.com/davatorium/rofi [lf]: https://github.com/gokcehan/lf +[Dolphin]: https://dolphin.kde.org [fd]: https://github.com/sharkdp/fd [jq]: https://stedolan.github.io/jq/ [yank-ring.kak]: https://github.com/alexherbo2/yank-ring.kak diff --git a/rc/modules/dolphin.kak b/rc/modules/dolphin.kak new file mode 100644 index 0000000..cebe801 --- /dev/null +++ b/rc/modules/dolphin.kak @@ -0,0 +1,8 @@ +provide-module connect-dolphin %{ + require-module connect + define-command dolphin -params .. -file-completion -docstring 'Open files with Dolphin' %{ + connect-shell %{ + dolphin "${@:-.}" + } -- %arg{@} + } +} |
