GNOME Bugzilla – Bug 763014
Intelligent drag-and-drop detection
Last modified: 2017-12-13 19:16:33 UTC
If I open Meld then at first I have to select what I want to compare - Files - Directories - having a version control view If I select File comparison or Directory comparison then I can drag and drop files or directories, respectively, from another programs, for example from Double Commander. This works fine. However, it would be good if Meld could detect what I drop into Meld. If I drop one file then the File Comparison should be selected automatically while if I drop a directory the Directory comparison should be selected. This would spare one step in the everyday use. Thanks.
Yeah, I'm not against this. It should be possible to implement something like this in a drag-data-received handler on the NewDiffTab class. I'd be a little wary of how it feels to the user and whether it's obvious what's happened, especially since a drop of either a file or folder can just as well be a version control comparison as a file or folder comparison. It's worth mentioning that if you drag and drop onto the window (i.e., not the file selectors) then we'll try to open up a comparison tab for whatever you dropped. However, this often won't do what you want, because it will assume you meant to open a version control comparison if given only one file.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/meld/issues/103.