diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-02-23 20:22:19 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-02-23 20:22:19 -0800 |
| commit | 99a7f917c3aad3cfa942af0ef47e41e2434086bb (patch) | |
| tree | 0ea1dcdfd3e9a37fa04c2457445facea62905f8a /bindings.bb | |
| parent | 8888c23cadbcf0b958519fcaf8dd1869eb399449 (diff) | |
API tweaks and documentation updates.
Diffstat (limited to 'bindings.bb')
| -rw-r--r-- | bindings.bb | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/bindings.bb b/bindings.bb index fa38614..5e3a232 100644 --- a/bindings.bb +++ b/bindings.bb @@ -23,14 +23,14 @@ l,Right: # Enter directory if [ -d "$BBCURSOR" ]; then bbcmd cd:"$BBCURSOR"; fi Ctrl-f: # Search for file file="$( - find $BBGLOBS -mindepth 1 -printf '%P\0' | pick "Find: " + find $BBGLOB -mindepth 1 -printf '%P\0' | pick "Find: " )" && bbcmd goto:"$file" /: # Pick a file - file="$(printf "%s\0" $BBGLOBS | pick "Pick: ")" || exit + file="$(printf "%s\0" $BBGLOB | pick "Pick: ")" || exit bbcmd goto:"$file" *: # Set the glob - ask BBGLOBS "Show files matching: " - bbcmd glob:"$BBGLOBS" + ask BBGLOB "Show files matching: " + bbcmd glob:"$BBGLOB" Ctrl-g: # Go to directory ask goto "Go to directory: " && bbcmd cd:"$goto" m: # Mark this directory @@ -66,11 +66,11 @@ Mouse wheel up: # Scroll up Section: File Selection v,V,Space: # Toggle selection at cursor - bbcmd toggle + bbcmd toggle:"$BBCURSOR" Escape: # Clear selection bbcmd deselect S: # Select pattern - ask patt "Select: " && eval bbcmd select: "$patt" + ask patt "Select: " && bbcmd select: $patt U: # Unselect pattern ask patt "Unselect: " && eval bbcmd deselect: "$patt" Ctrl-s: # Save the selection @@ -197,7 +197,11 @@ s: # Sort by... ask columns "Set columns (*)selected (a)ccessed (c)reated (m)odified (n)ame (p)ermissions (r)andom (s)ize: " && bbcmd col:"$columns" .: # Toggle dotfile visibility - bbcmd dotfiles + if [ "$BBGLOB" = ".* *" ]; then + bbcmd glob:"*" + else + bbcmd glob:".* *" + fi i: # Toggle interleaving files and directories bbcmd interleave F5,Ctrl-l: # Refresh view |
