From e58b11950348cf7ed020aae38f113518e1c89a92 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sat, 27 Aug 2016 04:28:00 +0200 Subject: [PATCH] make buku_run work with column from bsd-utils --- buku_run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buku_run b/buku_run index 9a0da4b..55f7f76 100755 --- a/buku_run +++ b/buku_run @@ -22,7 +22,7 @@ main () { HELP="Welcome to Buku. Use ${new_bookmark} to add a new Bookmark Use ${switch_view} to switch View. ${actions} for actions" if [[ $mode == "bookmarks" ]]; then - content=$(buku -p -f 2 | awk 'NF == 2 { $0 = $0 "NOTAG" }; { $2 = substr($2,0,80); print $1"\t"$2"\t"$3 }' | column -t -s $'\t' -o $'\t') + content=$(buku -p -f 2 | awk 'NF == 2 { $0 = $0 "NOTAG" }; { $2 = substr($2,0,80); print $1"\t"$2"\t"$3 }' | column -t -s $'\t') menu=$(echo "${content}" | _rofi -p '> ' -filter "${filter}" -mesg "${HELP}" -kb-custom-1 "${new_bookmark}" -kb-custom-2 "${switch_view}" -kb-custom-3 "${actions}") elif [[ $mode == "tags" ]]; then menu=$(buku --st | awk '{ print substr($0, index($0,$2)) }' | _rofi -p '> ' -mesg "${HELP}" -kb-custom-1 "${new_bookmark}" -kb-custom-2 "${switch_view}" -kb-custom-3 "${actions}") @@ -44,7 +44,7 @@ Use ${switch_view} to switch View.