aboutsummaryrefslogtreecommitdiff
path: root/scripts/bbtargets
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2023-10-15 02:04:48 -0400
committerBruce Hill <bruce@bruce-hill.com>2023-10-15 02:04:48 -0400
commit03f0c2ad987c6971a546a4617c7d976d92e79d80 (patch)
tree7995ea7429892282f7a11318b8f9044400966c00 /scripts/bbtargets
parentf3938061b90c0cdd2ce14f606dcc7abd04e7a457 (diff)
Tweaks to actions
Diffstat (limited to 'scripts/bbtargets')
-rwxr-xr-xscripts/bbtargets25
1 files changed, 0 insertions, 25 deletions
diff --git a/scripts/bbtargets b/scripts/bbtargets
deleted file mode 100755
index 3b47cc7..0000000
--- a/scripts/bbtargets
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-# If the user is doing something ambiguous, like selecting a bunch of files,
-# moving the cursor off of those files, then doing an action, this will ask
-# what they mean to target, then output either 'cursor' or 'selected'.
-# Usage: targets "$BB" "$@"
-cursor="$1"
-shift
-if [ $# -gt 0 ]; then
- for f in "$@"; do
- if [ "$f" = "$cursor" ]; then
- intended='Selected files'
- break
- fi
- done
-else
- intended='Cursor file'
-fi
-
-[ -z "$intended" ] && intended="$(printf '%s\0' 'Cursor file' 'Selected files' 'Both' | bbpick 'Which do you mean? ')"
-
-case "$intended" in
- Cursor*) echo cursor ;;
- Selected*) echo selected ;;
- Both) echo both ;;
-esac