aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-11-11 12:29:40 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-11-11 12:29:40 -0800
commitb7ad0e93a243da19e39fc750054afcfa3c6bb9b0 (patch)
tree33295fb95c09d02e9d3afed9e68ef28c3a415107 /README.md
parentaf3f6421500dfeb58b8ac251edf639552e48b762 (diff)
Refactored `bb +...` to `bbcmd ...` within bb bindings. This makes
things a lot less ambiguous. Also removed the default marks created in bbstartup.sh and ensured that `$XDG_DATA_HOME` and `$XDG_CONFIG_HOME` always get set as environment variables.
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 672ca97..6224d95 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ to the filesystem (passing selected files as arguments), rather than
reinventing the wheel by hard-coding operations like `rm`, `mv`, `cp`, `touch`,
and so on. Shell scripts can be bound to keypresses in
`~/.config/bb/bindings.bb`. For example, `D` is bound to a script that prints a
-confirmation message, then runs `rm -rf "$@" && bb +deselect +refresh`,
+confirmation message, then runs `rm -rf "$@" && bbcmd deselect refresh`,
which means selecting `file1` and `file2`, then pressing `D` will cause `bb` to
run the shell command `rm -rf file1 file2` and then tell `bb` to deselect all
(now deleted) files and refresh.
@@ -74,8 +74,8 @@ up an easy way to repeat some custom workflow).
### API
`bb` also exposes an API that allows shell scripts to modify `bb`'s internal
-state. To do this, call `bb +<your command>` from within `bb`. For example, by
-default, `j` is bound to `bb +move:+1`, which has the effect of moving `bb`'s
+state. To do this, call `bbcmd <your command>` from within `bb`. For example, by
+default, `j` is bound to `bbcmd move:+1`, which has the effect of moving `bb`'s
cursor down one item. More details about the API can be found in [the API
documentation](API.md).