summaryrefslogtreecommitdiff
path: root/.local/bin/lf-select
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/lf-select')
-rwxr-xr-x.local/bin/lf-select9
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/lf-select b/.local/bin/lf-select
new file mode 100755
index 0000000..3b2a17a
--- /dev/null
+++ b/.local/bin/lf-select
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# Reads file names from stdin and selects them in lf.
+
+while read -r file; do
+ [ -z "$file" ] && continue
+ lf -remote "send select \"$file\""
+ lf -remote "send toggle"
+done