diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-11-11 12:29:40 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-11-11 12:29:40 -0800 |
| commit | b7ad0e93a243da19e39fc750054afcfa3c6bb9b0 (patch) | |
| tree | 33295fb95c09d02e9d3afed9e68ef28c3a415107 /README.md | |
| parent | af3f6421500dfeb58b8ac251edf639552e48b762 (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.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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). |
