From b7ad0e93a243da19e39fc750054afcfa3c6bb9b0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 11 Nov 2019 12:29:40 -0800 Subject: 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. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') 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 +` 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 ` 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). -- cgit v1.2.3