Compare folders

Any wishes
Post Reply
w201
Posts: 8
Joined: Mon Mar 13, 2017 7:38 pm

Compare folders

Post by w201 » Mon Oct 23, 2017 5:58 pm

Maybe I just can't find this future but if it not present please add "compare folders" with some options. As always good example as it done in total commander.
Thank you.

d0ublezer0
Posts: 90
Joined: Tue Jun 28, 2016 6:17 pm
Location: NN, Russia

Re: Compare folders

Post by d0ublezer0 » Fri Mar 23, 2018 7:30 pm

vote for it

also need compare files by content

Sticky
Posts: 6
Joined: Sun Feb 17, 2019 8:31 pm

Re: Compare folders

Post by Sticky » Thu May 02, 2019 3:58 pm

I see this has been requested a couple of times in the past. It would be really great to have compare folder options.

If that's not possible for some reason, would it at least be possible to set up an easy way to run diff in the terminal feeding it the current folders in the left and right panel??

Thanks!

User avatar
mike
Posts: 807
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Compare folders

Post by mike » Fri May 03, 2019 7:45 am

Sure thing, you can run a custom tool with a feed from current panels.
Just set an application to /usr/bin/diff and parameters to, for instance, %LF %-LF.

Sticky
Posts: 6
Joined: Sun Feb 17, 2019 8:31 pm

Re: Compare folders

Post by Sticky » Fri May 03, 2019 3:29 pm

Sorry, I didn't quite understand that. Can you walk me through it? Or point me to a link that describes the process?

It would be way better to have NC do it automatically, but a decent workaround is using the terminal command "diff" if you can feed the full paths of both panels easily. But I'm not quite sure how to do that. Thanks

User avatar
mike
Posts: 807
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Compare folders

Post by mike » Sun May 05, 2019 8:29 pm

Sure, what you need is "Tools"(external tools):
Go to Preferences->Tools->Hit the Plus button;
Choose what you want to start in "Application", probably it's "/usr/bin/diff";
Pick what NC data you want to feed to the app, in this case it can be "%LF" (source filenames in a text file) and "%-LF" (target filenames in a text file).
Once an external tool is configured, you can fire it up via Command->Tools or via an assigned hotkey.

Post Reply