This PR adds a new feature to the Meld tool that allows comparing files or directories with different names while comparing directories. This feature enhances the flexibility of the directory comparison functionality.
Summary of Changes
Added a new method select_left_file_to_compare in the DirDiff class to store the selected file or directory path on the left side.
Added a new method select_right_file_to_compare in the DirDiff class to store the selected file or directory path on the right side.
Modified the on_button_press_event method in the DirDiff class to add two new options in the context menu: "Select left file/dir to compare" and "Compare to 'filename'". These options allow the user to select the left file or directory to compare and the right file or directory with a different name to compare.
Modified the compare_selected_files method in the DirDiff class to compare the files or directories stored in the class variables when the "Compare to 'filename'" option is selected.
Please review and merge this PR to incorporate the requested feature.
Fixes #2.
đ Latest improvements to Sweep:
Sweep can now passively improve your repository! Check out Rules to learn more.
đĄ To get Sweep to edit this pull request, you can:
Comment below, and Sweep can edit the entire PR
Comment on a file, Sweep will only modify the commented file
Edit the original issue to get Sweep to recreate the PR from scratch
PR Feedback (click)
Description
This PR adds a new feature to the Meld tool that allows comparing files or directories with different names while comparing directories. This feature enhances the flexibility of the directory comparison functionality.
Summary of Changes
select_left_file_to_compare
in theDirDiff
class to store the selected file or directory path on the left side.select_right_file_to_compare
in theDirDiff
class to store the selected file or directory path on the right side.on_button_press_event
method in theDirDiff
class to add two new options in the context menu: "Select left file/dir to compare" and "Compare to 'filename'". These options allow the user to select the left file or directory to compare and the right file or directory with a different name to compare.compare_selected_files
method in theDirDiff
class to compare the files or directories stored in the class variables when the "Compare to 'filename'" option is selected.Please review and merge this PR to incorporate the requested feature.
Fixes #2.
đ Latest improvements to Sweep:
đĄ To get Sweep to edit this pull request, you can: