diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2021-11-06 21:07:20 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2021-11-06 21:07:20 -0700 |
| commit | 3e5458c95c50c06523de4c3cd8dc425f67d4dea5 (patch) | |
| tree | 4d0d6e8e4c8d41b3b3e1b9072ce9b9503d8cd48f /lf-select | |
initial commit
Diffstat (limited to 'lf-select')
| -rwxr-xr-x | lf-select | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lf-select b/lf-select new file mode 100755 index 0000000..3b2a17a --- /dev/null +++ b/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 |
