File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ file_editor="${MDT_EDITOR:-${EDITOR}}"
15
15
# ###############################################
16
16
17
17
me=" ${0##*/ } "
18
- mdt_version=" 1.2.0 "
18
+ mdt_version=" 1.2.1 "
19
19
20
20
print_help ()
21
21
{
@@ -96,11 +96,11 @@ get_file_with_checkboxes() {
96
96
_checkbox_pattern=" ^[[:space:]]*- \[${_checkbox_type} \]"
97
97
98
98
if [ " ${isPWD} " ]; then
99
- _files=" $( ls -1 --sort=time -- * .md | tr " \n" " \0" \
99
+ _files=" $( ls -1 -t -- * .md | tr " \n" " \0" \
100
100
| xargs -0 grep -l " ${_checkbox_pattern} " ) "
101
101
else
102
102
_files=" $( find * -name ' *.md' -not -path ' */.*' \
103
- -exec ls -1 --sort=time {} + | tr " \n" " \0" \
103
+ -exec ls -1 -t -- {} + | tr " \n" " \0" \
104
104
| xargs -0 grep -l " ${_checkbox_pattern} " ) "
105
105
fi
106
106
You can’t perform that action at this time.
0 commit comments