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...…