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.

selecting duplicate files after :compare for move to thrash

0 votes
asked Jul 25, 2018 in vifm by Svenn

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.


1 Answer

0 votes
answered Jul 25, 2018 by xaizek
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.

commented Jul 25, 2018 by Svenn

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.

commented Jul 25, 2018 by xaizek

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

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.