Don't copy files if none are selected.
This commit is contained in:
parent
52a2b30692
commit
fed64cc4aa
@ -195,7 +195,8 @@ binding_t bindings[] = {
|
||||
{{'D'}, SPIN("rm -rf \"$@\"")" && bb +refresh && bb +deselect: \"$@\" ||" PAUSE, B("Delete")" files (without confirmation)"},
|
||||
{{'M'}, SPIN("mv -i \"$@\" . && bb +refresh && bb +deselect: \"$@\" && for f; do bb \"+sel:$(basename \"$f\")\"; done")" || "PAUSE,
|
||||
B("Move")" files to current directory"},
|
||||
{{'c'}, SPIN("cp -ri \"$@\" .")" && bb +r || "PAUSE, B("Copy")" files to current directory"},
|
||||
{{'c'}, "if test $BBSELECTED; then " SPIN("cp -ri \"$@\" .")" && bb +r || "PAUSE "; fi",
|
||||
B("Copy")" files to current directory"},
|
||||
{{'C'}, "for f; do "SPIN("cp -ri \"$f\" \"$f.copy\"")"; done && bb +r || "PAUSE,
|
||||
B("Clone")" files"},
|
||||
{{'n'}, ASK("name", "New file: ", "")" && touch \"$name\" && bb \"+goto:$name\" +r || "PAUSE, B("New file")},
|
||||
|
Loading…
Reference in New Issue
Block a user