Highlighted Inverted Selection

I want to mark all unmarked files and delete all marked files at the same time. How to do it?

Say I have a directory with * .png and other formats. I want to filter only PNG. Say I did: % d .png and now I want to select the rest, but not PNG?

+6
source share
2 answers

If you used % d to select files ( dired-flag-file-deletion ), they are considered checked, not checked . You can use % m ( dired-mark ) to tag files. The t command toggles marked files ( dired-toggle-marks ); this was mentioned in the event_jr post. To convert files marked with marked use the command * c d * ( dired-change-marks ).

It seems that the only command that works with flag files is x , which removes them ( dired-do-flagged-delete ). The same can be achieved for marked files using d ( dired-do-delete ), and you can do much more for marked files, such as R ( dired-do-rename ). Thus, apparently, the only advantage of marking is the convenient β€œgarbage file” flag commands that you can use and then convert flags to tags anyway.

+5
source

t .................................... to switch

+4
source

Source: https://habr.com/ru/post/947212/


All Articles