Set QUICKFILTERCLEAR side effect

Set QUICKFILTERCLEAR appears to have a side effect. I have two buttons on a toolbar, Set QUICKFILTER and Set QUICKFILTERCLEAR and my starting position is at the top of a folder which contains more items than will fit in the display.

Snag_69ebc8

If I click Set QUICKFILTER (QF) and filter on something whose first occurrence is not currently displayed, then when I click Set QUICKFILTERCLEAR (Clear) the display is positioned so that the last item which was filtered by the previous command is at the bottom of the display. In other words, the AFTER display position is not the same as the BEFORE position.

Snag_6aac88

Snag_6b074a

Opus generally aims to keep the file that has focus visible (assuming it still exists; if it doesn't, then another file gets the focus), so this is correct/expected.

You can add a command to give the first file in the folder focus when clearing the filter if that's the aim.

Top of the folder was just an example. I would prefer an option to restore the display as it was to start with.

So if you're in a long folder, you filter the list while you're at the top, then scroll all the way to the bottom and then clear the filter, you'd want it to jump back to the top again?

A typical scenario would be that I am somewhere in the middle of a folder which contains a large number of files. I have a short term need to refer to something so I QUICKFILTER. When I am finished with whatever it was I homed in on I'd usually prefer to go back to where I was.

There's no memory of where you were, only of where you are now.

You could have a script that saves and restores the focused filename using a tab variable. Depending on how you're activating and clearing the filter, that could probably get you what you want.

I'm not sure changing the default behavior would be a good idea in general. It's not uncommon to use filtering to find a file and then want to turn off filtering again to see all files but continue to work on the file you had just found, or some files near it which the filter had been hiding. Having it jump back to where you were, which could have been 10 minutes earlier, and might no longer be relevant to what you're doing now, would probably get in the way of a lot of people's use of filtering.

It's not important, just an observation really.