fff icon indicating copy to clipboard operation
fff copied to clipboard

sort downloads directory by time

Open Docbroke opened this issue 3 years ago • 0 comments

example code

	## sort by time in downloads dirs
    IFS=$'\n' 
	if [[ $PWD == ~/Downloads* ]]; then
		dirs=($(stat -c '%Y=%n' "${dirs[@]}" | sort -nr | cut -d '=' -f2))
		files=($(stat -c '%Y=%n' "${files[@]}" | sort -nr | cut -d '=' -f2))
	fi
    unset IFS
    
    list=("${dirs[@]}" "${files[@]}")

pull request https://github.com/dylanaraps/fff/pull/184

Docbroke avatar Aug 16 '21 10:08 Docbroke