Menu

1 / 2

i just broke my entire flow for maybe weeks

DEV Community·§dei§·6 months ago
#M16P2BYQ
#shell#linux#yazi#warning#folders
Reading 0:00
15s threshold

It turns out I forgot the command to go back in Yazi and accidentally pressed one that unleashed this beast.

# { on = "<C-p>", run = "shell --confirm 'if [ -n \"$fx\" ]; then for dir in $fx; do cd \"$dir\" && find . -mindepth 2 -type f -exec mv -n -t . {} + && find . -type d -empty -delete && cd - >/dev/null; done; else find . -mindepth 2 -type f -exec mv -n -t . {} + && find . -type d -empty -delete; fi'", desc = "Aplanar carpetas hijas" }

Enter fullscreen mode

Exit fullscreen mode

Yisus...

now i have

59403 Files to restore :D

it's a real chaos because i was in a folder with many code projects maybe around 30 or more and each one with his node_modules folder....

so...…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.