Quicksearch new tab via scripting behavior

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

: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: Use Your Profile Or Signature
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: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
jupe
Posts: 3570
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Quicksearch new tab via scripting behavior

Post by jupe »

I am not sure you would call this a bug, or just expected behavior, but I have found it irritating for a long time, and wanted to see what you think. In my main profile I have this setting disabled:

Configuration | Find and Filter | Find Files & Branch View | Find Files | Show quick search results in current tab

and it suits me fine for day to day use, but sometimes when writing scripts I want to guarantee that results are in a new tab, so normally I would use something like this: tab("new", "<xypath>?/n"); but with the setting above disabled that results in 2 new tabs opening, a clone and the QS results, now you might say, I could just use a new+goto instead, which would work to an extent, but if I run said script in a different XY or a fresh (which has the above setting enabled by default) then I wouldn't have the same guaranteed outcome, now there are various ways to mitigate this behavior, but they all involve multiple lines of scripting, to me when a quicksearch is called for in a new tab explicitly via scripting, then that is what should happen regardless of the above setting, but maybe it is hard in the code to differentiate, so understand if you want to leave it as is.

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

Re: Quicksearch new tab via scripting behavior

Post by admin »

Tricky. I'm not totally sure if I do the right thing here, but in the next beta when the search is called by a script:

1) The setting of Configuration | Find and Filter | Find Files & Branch View | Find Files | Show quick search results in current tab is ignored and internally treated as being ticked.
2) The setting of Configuration | Find and Filter | Find Files & Branch View | Find Files | Show search results in is ignored and internally treated being "Current tab".

jupe
Posts: 3570
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Quicksearch new tab via scripting behavior

Post by jupe »

I have tested quite a bit, and so far everything seems good to me now, hopefully the change doesn't negatively effect anyone else, and has no downsides I haven't encountered, so you don't have to rollback. Thanks.

Post Reply