diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-10-03 13:21:21 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-10-03 13:21:21 -0700 |
| commit | 3de5a5108f7784b5a8190d7a98417c3a54b6db41 (patch) | |
| tree | 107412f5781d9fec3dce0615e582d34b90dcc18f | |
| parent | 2be2c575b274eec5bcdef1993bf481ba73a481c7 (diff) | |
Fix for deletion not working properly with <selection>
| -rw-r--r-- | bindings.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings.bb b/bindings.bb index b98021f..36b868e 100644 --- a/bindings.bb +++ b/bindings.bb @@ -91,10 +91,10 @@ e: # Edit file in $EDITOR $EDITOR "$BBCURSOR" || pause d: # Delete a file printf "\033[1mDeleting \033[33m$BBCURSOR\033[0;1m...\033[0m " && confirm && - rm -rf "$BBCURSOR" && bb +refresh && bb +deselect:"$BBCURSOR" + rm -rf "$BBCURSOR" && bb +deselect:"$BBCURSOR" && bb +refresh D: # Delete all selected files [ $# -gt 0 ] && printf "\033[1mDeleting the following:\n \033[33m$(printf ' %s\n' "$@")\033[0m" | more && - confirm && rm -rf "$@" && bb +refresh && bb +deselect: "$@" + confirm && rm -rf "$@" && bb +deselect: "$@" && bb +refresh Ctrl-v: # Move files here printf "\033[1mMoving the following to here:\n \033[33m$(printf ' %s\n' "$@")\033[0m" | more && confirm && spin mv -i "$@" . && bb +refresh && bb +deselect:"$@" && |
