From 9091599124242e2f41328f713eaeada7aa3f34f0 Mon Sep 17 00:00:00 2001 From: NiseVoid Date: Fri, 15 May 2020 16:15:40 +0200 Subject: [PATCH] Improve song search --- bin/song | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/song b/bin/song index 6a7c703..3ec0e45 100755 --- a/bin/song +++ b/bin/song @@ -1,10 +1,10 @@ #!/bin/bash -song=$(mpc --format "%position%\t%artist%\t%title%" playlist | sort | column -s" " -t | fzf) +song=$(mpc --format "%artist%\t%title%\t%position%" playlist | sort | column -s" " -t | fzf --no-hscroll) if [ "$song" == "" ] then exit fi -mpc play $(echo $song | awk '{print $1}') +mpc play $(echo $song | awk '{print $NF}')