Renamed bbbindkeys -> bbkeys

This commit is contained in:
Bruce Hill 2021-01-28 22:32:42 -08:00
parent 000329d941
commit 8842891a7c
4 changed files with 5 additions and 5 deletions

4
API.md
View File

@ -15,9 +15,9 @@ environment variable at runtime. `~/.config/bb/` is also added to the `$PATH`
with higher priority, so you can override any of these scripts by putting your
own version there.
- `bbstartup`: The script run when `bb` first launches. It calls `bbbindkeys` by
- `bbstartup`: The script run when `bb` first launches. It calls `bbkeys` by
default and sets up some configuration settings like which columns to display.
- `bbbindkeys`: The script called by `bb` to create all of `bb`'s key bindings.
- `bbkeys`: The script called by `bb` to create all of `bb`'s key bindings.
It's currently very hacky, but it amounts to a bunch of calls to `bbcmd
bind:<key>:<script>`
- `bbshutdown`: The script run when `bb` exits. The default implementation saves

View File

@ -51,7 +51,7 @@ The core idea behind `bb` is that `bb` is a file **browser**, not a file
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/bbbindkeys`. For example, `D` is bound to a script that prints a
`~/.config/bb/bbkeys`. For example, `D` is bound to a script that prints a
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
@ -63,7 +63,7 @@ When `bb` launches, it first updates `bb`'s `$PATH` environment variable to
include, in order, `~/.config/bb` and `/etc/xdg/bb`. Then, `bb` will run the
command `bbstartup` (the default implementation is found at
[scripts/bbstartup](scripts/bbstartup), along with other default `bb` commands).
`bbstartup` will call `bbbindkeys` and may also set up configuration options like
`bbstartup` will call `bbkeys` and may also set up configuration options like
which columns to display and what sort order to use. All of these behaviors can
be customized by creating custom local versions of these files in `~/.config/bb/`.
The default versions can be found in `/etc/xdg/bb/`.

View File

@ -10,7 +10,7 @@ mv "$BBCMD" "$tmpfile"
[ ! -d "$XDG_DATA_HOME/bb" ] && mkdir -p "$XDG_DATA_HOME/bb"
# Load key bindings
bbbindkeys
bbkeys
# Reload settings
[ -e "$XDG_DATA_HOME/bb/settings.sh" ] && . "$XDG_DATA_HOME/bb/settings.sh"