Slight change to Edit | Compare

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Slight change to Edit | Compare

Post by serendipity »

Hi Don,
I first thought Edit | Compare | Compare Current File with Previous File did not work, that's because I almost always use selection rectangle to select files. But seems like I have to explicitly click on the two files to make compare work.
Very lo-prio request, but thought I should report it.

admin
Site Admin
Posts: 67229
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Slight change to Edit | Compare

Post by admin »

Well, it's like it is. Selection rectangle does not count as "current item" in XY. And only the "current" item can become the "previous" item.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Slight change to Edit | Compare

Post by serendipity »

OK, thanks for clarifying.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Slight change to Edit | Compare

Post by TheQwerty »

Just to clarify my understanding.. you're attempting to compare two items that you have selected?
Or are you trying to compare the current selection to the previous item?
Or something else entirely?


Because for the former I too find it a bit annoying that you can't make a selection of two items and have XY just compare them to each other.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Slight change to Edit | Compare

Post by serendipity »

TheQwerty wrote:Just to clarify my understanding.. you're attempting to compare two items that you have selected?
Or are you trying to compare the current selection to the previous item?
Or something else entirely?


Because for the former I too find it a bit annoying that you can't make a selection of two items and have XY just compare them to each other.
I thought the same until now because I always used selection rectangle to select items.
Today for whatever reason I selected two items one-by-one using ctrl+click and then "compare current file with previous file" works fine.
I was pleasantly surprised but also annoyed that i did not try this way of selection before.

On a side note, the term "Compare Current File with Previous File" is somewhat unclear. I find Selected File much better.
My choice of words for 3 menu options in Compare would be:
1. Compare two selected files
2. Compare selected file with clipboard file
3. Compare Selected file in both panes

admin
Site Admin
Posts: 67229
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Slight change to Edit | Compare

Post by admin »

No, "Current" is the correct term. Exactly because of the difference between "current" and "selected" which I explained in the other post.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Slight change to Edit | Compare

Post by TheQwerty »

serendipity wrote:I thought the same until now because I always used selection rectangle to select items.
Today for whatever reason I selected two items one-by-one using ctrl+click and then "compare current file with previous file" works fine.
I was pleasantly surprised but also annoyed that i did not try this way of selection before.

On a side note, the term "Compare Current File with Previous File" is somewhat unclear. I find Selected File much better.
My choice of words for 3 menu options in Compare would be:
1. Compare two selected files
2. Compare selected file with clipboard file
3. Compare Selected file in both panes
You have to think of "Current File with Previous File" as "Currently Focused & Selected File with Previously Focused & Selected File".


Don, any reason there isn't the forth option of "Compare Selected Files" only available when 2 items are selected and would thus work for those using the selection rectangle? EDIT: Though really it could just as easily work for more than 2 files.

admin
Site Admin
Posts: 67229
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Slight change to Edit | Compare

Post by admin »

TheQwerty wrote:Don, any reason there isn't the forth option of "Compare Selected Files" only available when 2 items are selected and would thus work for those using the selection rectangle? EDIT: Though really it could just as easily work for more than 2 files.
Nobody ever asked for it :)

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Slight change to Edit | Compare

Post by serendipity »

admin wrote:No, "Current" is the correct term. Exactly because of the difference between "current" and "selected" which I explained in the other post.
OK, got it.
Another thing:
When I rectangle select two files it gives an error (which you explained why), but the second point in the error window says:
(2) Select another file in the file list (need not be in the same folder)
Regarding the need not be in the same folder, it works only if i use tree to navigate to another folder and select another file there.
If i double click a folder in the same list and select a file there, it takes the folder i double-clicked as previous file and gives an error saying its not a file.
Maybe don't make the folder as previous file if I double clicked?

grindax

Re: Slight change to Edit | Compare

Post by grindax »

.
Last edited by grindax on 22 Jan 2016 22:59, edited 1 time in total.

admin
Site Admin
Posts: 67229
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Slight change to Edit | Compare

Post by admin »

grindax wrote:All this talk about comparing files has made me think about what it could be like for XY to have some more sophisticated functionality for comparing file hashes (since that is what it's already doing under the hood but very little is actually shown in the GUI).

I use an excellent, portable program called VisualHash quite frequently, and I think that having that functionality directly in a file manager would be very natural and useful.

I'm aware that certain scripting functions can already be used in XY to do this to a degree (and I've done it in the past), but a more accessible and friendly feature built in to the user interface would be much better. Anyways, just my quick thoughts on this somewhat-related topic. As you were. :wink:
Tell me more. What are you thinking of?

admin
Site Admin
Posts: 67229
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Slight change to Edit | Compare

Post by admin »

serendipity wrote: Regarding the need not be in the same folder, it works only if i use tree to navigate to another folder and select another file there.
If i double click a folder in the same list and select a file there, it takes the folder i double-clicked as previous file and gives an error saying its not a file.
Maybe don't make the folder as previous file if I double clicked?
I see the issue, but this cannot be solved easily. In such cases you can use "Compare Current File with File in Clipboard".

grindax

Re: Slight change to Edit | Compare

Post by grindax »

.
Last edited by grindax on 22 Jan 2016 22:59, edited 1 time in total.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Slight change to Edit | Compare

Post by serendipity »

admin wrote:
serendipity wrote: Regarding the need not be in the same folder, it works only if i use tree to navigate to another folder and select another file there.
If i double click a folder in the same list and select a file there, it takes the folder i double-clicked as previous file and gives an error saying its not a file.
Maybe don't make the folder as previous file if I double clicked?
I see the issue, but this cannot be solved easily. In such cases you can use "Compare Current File with File in Clipboard".
I don't use this often, so no big deal.

admin
Site Admin
Posts: 67229
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Slight change to Edit | Compare

Post by admin »

grindax wrote:I think it would be handy to be able to select a bunch of files and/or folders directly in XY and then get a pop-up window showing a chosen type of hash for those files. With an option at the bottom to copy to clipboard, or even save as a file.
I made an experiment on script level. Next version (v12.50.0006) select some files and try any of these:

Code: Select all

hashlist "md5";
hashlist "sha1";
hashlist "sha256";
hashlist "sha512";
hashlist "crc32";
Okay?

Post Reply