mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
22 lines
405 B
Bash
Executable File
22 lines
405 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# daily_finder for telekasten.nvim
|
|
#
|
|
# actually, this is now the standard finder in telekasten
|
|
|
|
if [ "$1" == "check" ] ; then
|
|
echo OK
|
|
exit 0
|
|
fi
|
|
|
|
# if called by the plugin, no args are provided, and the current working
|
|
# directory is set instead
|
|
if [ "$1" == "" ] ; then
|
|
the_dir=$(pwd)
|
|
else
|
|
the_dir=$1
|
|
fi
|
|
|
|
# sort reversed numerical
|
|
find $the_dir -type f | sort -rn
|