From 99a7f917c3aad3cfa942af0ef47e41e2434086bb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 23 Feb 2020 20:22:19 -0800 Subject: API tweaks and documentation updates. --- API.md | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) (limited to 'API.md') diff --git a/API.md b/API.md index 2d4af06..ec10f88 100644 --- a/API.md +++ b/API.md @@ -29,33 +29,33 @@ environment variables: - `$@` (the list of arguments): the full paths of the selected files - `$BBCURSOR`: the full path of the file under the cursor -- `$BBDOTFILES`: "1" if files beginning with "." are visible in bb, otherwise "" -- `$BB_DEPTH`: the number of `bb` instances deep (in case you want to run a +- `$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) +- `$BBGLOB`: the glob pattern `bb` is using to determine which files to show ## BB Internal State Commands In order to modify bb's internal state, you can call `bbcmd `, where "cmd" is one of the following commands (or a unique prefix of one): -- `.:[01]` Whether to show "." in each directory -- `..:[01]` Whether to show ".." in each directory +- `bind::