From 93a8f4479e0e61a153239dc15fe8b0e42979870c Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 10 Jan 2018 17:31:15 +0100 Subject: Sort references by time --- bin/bin/references | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/bin/references b/bin/bin/references index 209c9f9..93ef5f4 100755 --- a/bin/bin/references +++ b/bin/bin/references @@ -1,5 +1,5 @@ #!/bin/bash REF_DIR="$HOME/phd/references" -PDF=$(find $REF_DIR -regex ".*.\(pdf\|djvu\|PDF\|ps\)" -printf "%P\n") +PDF=$(find $REF_DIR -regex ".*.\(pdf\|djvu\|PDF\|ps\)" -printf "%C@ %P\n" | sort | tac | cut -d' ' -f2-) TARGET=$(echo "${PDF//"$REF_DIR/"/}" | dmenu -i -p "Open File:") [[ -n $TARGET ]] && exec zathura "$REF_DIR/$TARGET" -- cgit v1.2.3