Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.
0 votes
in vifm by

Opening two directories and perform :compare to find duplicate files.
Left view is the one where I want to delete duplicate files.
I observe that most files have regular light gray color, but some are green and some are red.
Is there a way to select all files found to be duplicates in left view and delete them (move to thrash) ? I have probably thousands of duplicates and some I would like to keep in the left pane and I want to keep all in right pane.

--
Svenn

1 Answer

0 votes
by
 
Best answer

Only red highlighting has special meaning: two files with identical relative paths in two subtrees differ in their content.

You seem to be looking for:

:compare listdups

It will list only duplicates in both directories and you can then delete all files in the left view.

by

Excellent.
Now I have a few files left in the left view which are unique.
How do I move between the unique files in the left pane?
using j and k only is taking a lot of time.

by

There is no such motion, but you can do :compare listunique and have them listed (this time two views will be independent each containing files that are unique to corresponding subtree).

...