Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

i just broke my entire flow for maybe weeks

DEV Community·§dei§·27 days ago
#M16P2BYQ
#shell#linux#yazi#warning#folders#type
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... it's really a chaos. this command was an complete error without warnings and modal prevents... so it's super usefull only when you really know wtf are you doing How do I plan to address this problem? I plan to group all files by type into folders.…

Continue reading — create a free account

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

Read More