From 7daa148e946d234de88c185dcf5e75000d73fdb8 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 28 Jan 2021 22:17:15 -0800 Subject: Renamed $BBCURSOR -> $BB for concision --- API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'API.md') diff --git a/API.md b/API.md index 71bbd1b..ea2e9f2 100644 --- a/API.md +++ b/API.md @@ -30,7 +30,7 @@ own version there. failure if the user does not press 'y'. - `bbpause`: Display a "press any key to continue" message and wait for a keypress. - `bbpick [prompt]`: Select one of `NULL`-delimited multiple inputs and print it. -- `bbtargets "$BBCMD" "$@"`: If `$BBCURSOR` is not currently among `$@` (the +- `bbtargets "$BBCMD" "$@"`: If `$BB` is not currently among `$@` (the selected files), this script prompts the user to ask whether they want to perform an action on the selected files, or on the cursor. The result is printed as `cursor` or `selected`. @@ -41,7 +41,7 @@ own version there. When `bb` runs scripts, following values are provided as environment variables: - `$@` (the list of arguments): the full paths of the selected files -- `$BBCURSOR`: the full path of the file under the cursor +- `$BB`: the full path of the file under the cursor - `$BBDEPTH`: the number of `bb` instances deep (in case you want to run a shell and have that shell print something special in the prompt) - `$BBCMD`: a file to which `bb` commands can be written (used internally) -- cgit v1.2.3