summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2020-08-31 10:33:33 +0200
committerAlex Leferry 2 <alexherbo2@gmail.com>2020-08-31 10:33:33 +0200
commit603191d15152ae9090c747cf3214006ba2dd68e4 (patch)
tree5296aba4c8a2c64208c50625e76b5747b11e0269 /rc
parent679cab70a74f894c72d73c411ee17853931fe03c (diff)
Add a fifo module
Diffstat (limited to 'rc')
-rw-r--r--rc/modules/fifo.kak7
1 files changed, 7 insertions, 0 deletions
diff --git a/rc/modules/fifo.kak b/rc/modules/fifo.kak
new file mode 100644
index 0000000..a1b6433
--- /dev/null
+++ b/rc/modules/fifo.kak
@@ -0,0 +1,7 @@
+provide-module connect-fifo %{
+ require-module connect
+
+ define-command fifo -params 1.. -shell-completion -docstring 'Run command in a fifo buffer' %{
+ $ %("$@" | :fifo) -- %arg{@}
+ }
+}