From 68095db20f5e53a73e8f284f6a3c529a98d39e00 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 3 Jun 2020 23:40:44 -0700 Subject: Misc fixes and tweaks --- scripts/bbbindkeys | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts/bbbindkeys') diff --git a/scripts/bbbindkeys b/scripts/bbbindkeys index 8ffadc0..b89bb16 100755 --- a/scripts/bbbindkeys +++ b/scripts/bbbindkeys @@ -39,7 +39,7 @@ bbcmd cd:.. if [ -d "$BBCURSOR" ]; then bbcmd cd:"$BBCURSOR"; fi ## Ctrl-f: Search for file -file="$(find $BBGLOB -mindepth 1 -printf '%P\0' | bbpick "Find: ")" +file="$(find . -mindepth 1 -printf '%P\0' | bbpick "Find: ")" bbcmd goto:"$file" ## /: Pick a file @@ -115,6 +115,10 @@ bbcmd select: $patt patt="$(bbask "Unselect: ")" bbcmd deselect: $patt +## Comma: Save the current settings +bbconfirm "Save the current settings? " +echo "bbcmd glob:'$BBGLOB' sort:'$BBSORT' columns:'$BBCOLUMNS' $BBINTERLEAVE" > "$XDG_DATA_HOME"/bb/settings.sh + ## Ctrl-s: Save the selection [ $# -gt 0 ] savename="$(bbask "Save selection as: ")" @@ -187,10 +191,6 @@ bbcmd deselect refresh for f; do bbcmd sel:"$(basename "$f")"; done ## c: Copy a file -case "$(bbtargets "$BBCURSOR" "$@")" in - cursor) set -- "$BBCURSOR";; - both) set -- "$BBCURSOR" "$@";; -esac [ $# -gt 0 ] printf "\033[1mCopying the following to here:\n\033[33m$(printf ' %s\n' "$@")\033[0m" | bbunscroll | more bbconfirm -- cgit v1.2.3