Add feature to compare files with different names while comparing directories #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: