Skip to content

Commit

Permalink
[scripts] ,bm: add leading 0 for single digit counts
Browse files Browse the repository at this point in the history
  • Loading branch information
meain committed Feb 2, 2024
1 parent 929d76e commit b47fde2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/.local/bin/random/,bm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

set -e

VIEW_FORMAT='{print "["$NF"]",$2,"("$1")"}'
VIEW_FORMAT='{printf "[%02d] %s (%s)\n", $NF, $2, $1}'
QUERY="SELECT url, name, count FROM bookmarks ORDER BY count DESC, date DESC;"
BM_FILE="${BM_FILE:-$HOME/.local/share/bm.db}"
OPERATION="${1:-pick}"
Expand Down

0 comments on commit b47fde2

Please sign in to comment.