From 70bb582aca55c69bd900901bd1455d8c37a8eea1 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Mon, 3 Jun 2024 01:17:00 -0300 Subject: [PATCH] radio: files: lf: Use bulkrename when renaming files --- home-environments/radio/files/.config/lf/lfrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home-environments/radio/files/.config/lf/lfrc b/home-environments/radio/files/.config/lf/lfrc index 91f8342..13d6894 100644 --- a/home-environments/radio/files/.config/lf/lfrc +++ b/home-environments/radio/files/.config/lf/lfrc @@ -61,7 +61,9 @@ cmd config $$EDITOR "$ZERO/home-environments/radio/files/.config/lf/lfrc" cmd mkdir %mkdir -- "$@" # rename file -cmd rename %mv "$f" $(echo "$@" | sed 's/ /\ /g') +cmd rename ${{ + bulkrename $(for f in $fx; do basename $f; done) +}} # Open editor cmd edit ${{ @@ -164,7 +166,6 @@ map e! $doas $EDITOR "$f" map b &setsid -f $BROWSER "$f" # Basic functions -mao l cd "$f" map c copy && echo "$fx" | wl-copy map d delete map x cut