Sort camera images by mtime
This commit is contained in:
parent
0ebd7c228c
commit
bee2b54c31
1 changed files with 1 additions and 1 deletions
2
q-cam
2
q-cam
|
@ -9,7 +9,7 @@ elif [[ "$1" == "--hint" ]]; then
|
|||
elif [[ "$1" == "--complete" ]]; then
|
||||
shift
|
||||
if [[ -d "$CAMERA_DIR" ]]; then
|
||||
ls "$CAMERA_DIR" | awk '{print $1 " cam " $1}'
|
||||
find ~/Camera -type f -not -path '*/\.*' -printf "%T@ %P\n" -type f | sort -n -r | cut -d " " -f 2 | awk '{print $1 " cam " $1}'
|
||||
fi
|
||||
elif [[ "$1" == "--preview" ]]; then
|
||||
shift
|
||||
|
|
Loading…
Reference in a new issue