Skip to content

Commit 6ee92de

Browse files
committed
kamp-files: inline $*
1 parent e0128bb commit 6ee92de

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/kamp-files

+4-5
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,22 @@ shift $((OPTIND - 1))
2929

3030
case "$backend" in
3131
fd)
32-
backend_cmd="fd --strip-cwd-prefix --type file"
32+
backend_cmd="fd --strip-cwd-prefix --type file $*"
3333
;;
3434
rg)
35-
backend_cmd="rg --color never --files"
35+
backend_cmd="rg --color never --files $*"
3636
;;
3737
find)
38-
backend_cmd="find . -type f"
38+
backend_cmd="find . -type f $*"
3939
;;
4040
git)
41-
backend_cmd="git ls-files"
41+
backend_cmd="git ls-files $*"
4242
;;
4343
*)
4444
usage
4545
;;
4646
esac
4747

48-
backend_cmd="$backend_cmd $*"
4948
preview_cmd='bat --color=always --line-range=:500 {}'
5049

5150
eval "$backend_cmd" |

0 commit comments

Comments
 (0)