"Sticky" file selection.

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Gandolf

"Sticky" file selection.

Post by Gandolf »

Three tabs open, no tree. Folder "A" open in tabs one and two and a sub-folder of folder "A" open in tab three. Tab one is sorted by name ascending; tabs two and three by name descending. Each tab has a different filter applied to the list.

The file at the top of the list is focused in each tab.

Tab one is initially the visible tab and the top file is opened in a graphics application and processed. This results in two files being saved in folder "A" and one file in sub-folder of "A". The original file is then deleted from folder "A".

Because of the naming of the created files and the filters applied to the tabs, they appear at the top of the list in tabs two and three. The focused file in tab two is now the third file, in tab three the second file.

If I select another file in either tabs two or three the third (in tab two) or second (in tab three) file remains selected (hence two files are selected in tabs two or three). If I select the "sticky" file then afterwards everything works normally, i.e only one file is selected at a time. The problem is that by clicking on the "sticky" file the rename mode is enabled. Hence I have to click yet another file to clear the rename mode.

I think the "sticky" selection is cleared in both tabs when I clear it in either one of them.

Auto-refresh on file system changes is on.

Confused? I am!!

It's more annoying than anything else so it would be good if it can be solved.

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

Re: "Sticky" file selection.

Post by admin »

I read it three times, but sorry... you lost me. Try again.

Gandolf

Post by Gandolf »

O.K. I thought it might be something in the way I was working but I've found it is simpler (I hope!)

Two tabs. Tab 1 is folder 1, tab 2 is folder 2.

Both folders contain files but it's only folder 2 that matters.

Viewing tab 2 (folder 2) select one of it's files.

Switch to tab 1.

Write some files into folder 2, it doesn't matter if you copy with XY or save from an external program. I just did it by dragging from folder 1 (tab 1) to folder 2 in the tree. Copy not move, but that may not matter either.

Switch to tab 2.

The file in folder 2 that was selected when you switched to tab 1 is still selected but if you click on any other file in folder 2 you then have two files selected. Just as if the Ctrl key had been held down.

I hope that makes it clearer. It doesn't have anything to do with the sequence I was using. It appears to be caused by writing files into the folder in a tab that is not selected, but which had a file selected before switching away from the tab.

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

Post by admin »

Ok, that helped. It was indeed a bug. Here is my analysis:

Code: Select all

    ! Sticky file selection: when re-opening a tab with exactly one 
      selected-but-not-focused file this selection got "sticky", i.e. you 
      could select a second file by a simple mousedown without holding 
      Ctrl. Fixed.
So, your way to produce it was just one of many imaginable ways. A nice example for the difficulty in the analysis of causal relations from phenomenal observation (without access to the source code).

Gandolf

Post by Gandolf »

admin wrote:

Code: Select all

    ! Sticky file selection: when re-opening a tab with exactly one 
      selected-but-not-focused file this selection got "sticky", i.e. you 
      could select a second file by a simple mousedown without holding 
      Ctrl. Fixed.
I didn't think of checking something so basic since I assumed that would have shown up before. Now all is fine with my "complex" setup.

Post Reply