@@ -5,7 +5,8 @@ find_w0_leaf_directories (){
# NOTE: list all leaf directories in current working dir tree
# excluding ts directories or links
find . \
- \( -type l -o -type d \) -wholename './????????_??????_?????????' -prune -o -type d "${find_name[@]}" \( \
+ \( -type l -o -type d \) -wholename './????????_??????_?????????' -prune \
+ -o -type d "$@" \( \
-links 2 \
-o \( \
-links 1 -exec bash -c '! [ "$(find "$1" -mindepth 1 -type d)" ]' find-bash {} \; \
@@ -187,7 +187,7 @@ then
fi
(
cd "$LOG_ROOT"
- find_w0_leaf_directories \
+ find_w0_leaf_directories "${find_name[@]}"\
| sort_rw0 "$sort_opt" \
| head -zn "${NUM:--0}" \
| fzf_rw0_inplace_preview "2" \