radio: files: lf: Use bulkrename when renaming files

impermanence
Luis Guilherme Coelho 2024-06-03 01:17:00 -03:00
parent 5296bfb859
commit 70bb582aca
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 3 additions and 2 deletions

View File

@ -61,7 +61,9 @@ cmd config $$EDITOR "$ZERO/home-environments/radio/files/.config/lf/lfrc"
cmd mkdir %mkdir -- "$@" cmd mkdir %mkdir -- "$@"
# rename file # rename file
cmd rename %mv "$f" $(echo "$@" | sed 's/ /\ /g') cmd rename ${{
bulkrename $(for f in $fx; do basename $f; done)
}}
# Open editor # Open editor
cmd edit ${{ cmd edit ${{
@ -164,7 +166,6 @@ map e! $doas $EDITOR "$f"
map b &setsid -f $BROWSER "$f" map b &setsid -f $BROWSER "$f"
# Basic functions # Basic functions
mao l cd "$f"
map c copy && echo "$fx" | wl-copy map c copy && echo "$fx" | wl-copy
map d delete map d delete
map x cut map x cut