"Back" after clicking on an search result directory doesn't go back to the search

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
rclkrtrzckr
Posts: 65
Joined: 03 Jan 2017 13:10
Location: Zurich, Switzerland

"Back" after clicking on an search result directory doesn't go back to the search

Post by rclkrtrzckr »

Hi all

Happy new year!

I'm a heavy user of saved searches, like

Code: Select all

This PC?p:100:* & t:weekly /T
This brings up all items I need for a specific task. I have tagged both files and directories, but there's an issue with the latter. Well, actually there are two.

1. After opening a directory and working in it, I'd like to go back to the search using ALT-Left. This doesn't work, XYP goes back to This PC only.

2. Because 1 was pretty annoying, I tried to find a way to quickly open the folder in a background tab. This can be done using the context menu, but I can't find this entry in the keyboard customization screen.

Any hint appreciated.

Cheers

André

highend
Posts: 15004
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: "Back" after clicking on an search result directory doesn't go back to the search

Post by highend »

2. Miscellaneous - Go To - Open Containing Folder in New Background Tab?
One of my scripts helped you out? Please donate via Paypal

rclkrtrzckr
Posts: 65
Joined: 03 Jan 2017 13:10
Location: Zurich, Switzerland

Re: "Back" after clicking on an search result directory doesn't go back to the search

Post by rclkrtrzckr »

highend wrote:2. Miscellaneous - Go To - Open Containing Folder in New Background Tab?
Tried that, but that's not what I need.
20180103_121150_XYplorer.png
These 3 commands can't be found in the "list of all commands":
20180103_121425_XYplorer.png
"Open in other pane" would be nice, too, even better than in a background tab.

Cheers

André
To see the attached files, you need to log into the forum.

highend
Posts: 15004
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: "Back" after clicking on an search result directory doesn't go back to the search

Post by highend »

Then write a script, use it in an UDC and assign a keyboard shortcut to it
One of my scripts helped you out? Please donate via Paypal

rclkrtrzckr
Posts: 65
Joined: 03 Jan 2017 13:10
Location: Zurich, Switzerland

Re: "Back" after clicking on an search result directory doesn't go back to the search

Post by rclkrtrzckr »

highend wrote:Then write a script, use it in an UDC and assign a keyboard shortcut to it
Well, I think these entries would have to be there. It's an incomplete list of all commands, IMHO.

highend
Posts: 15004
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: "Back" after clicking on an search result directory doesn't go back to the search

Post by highend »

These items are part of a context menu. E.g. "Open in other pane" isn't available as a global
command either. These items don't react in the same way as e.g. a normal context menu click
(try that with two selected folders, only the first one will be handled by the command).
One of my scripts helped you out? Please donate via Paypal

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

Re: "Back" after clicking on an search result directory doesn't go back to the search

Post by jupe »

And the script command you need to accomplish what you want seems pretty straightforward, you could start with something like this,

Code: Select all

if (exists(<curitem>) == 2) {tab("newb", <curitem>);} //OPEN IN BACKGROUND
or if you wanted it to open in the inactive pane

Code: Select all

  if (exists(<curitem>) == 2) {
		$loc = <curitem>;
		#802;
		tab("new", $loc);
		#802;
	}
of course you would have to modify these if you wanted to open multiple locations at once.

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

Re: "Back" after clicking on an search result directory doesn't go back to the search

Post by admin »

Quick Searches are not part of history (which is just a history of browsed locations).

But there is the command Edit | Repeat Last Quick Search (Shift+F3). Should work for you.

rclkrtrzckr
Posts: 65
Joined: 03 Jan 2017 13:10
Location: Zurich, Switzerland

Re: "Back" after clicking on an search result directory doesn't go back to the search

Post by rclkrtrzckr »

admin wrote:Quick Searches are not part of history (which is just a history of browsed locations).

But there is the command Edit | Repeat Last Quick Search (Shift+F3). Should work for you.
Thanks! I'll try to remember that one ;-)

Wouldn't it make sense to add quick searches to the history, too?

rclkrtrzckr
Posts: 65
Joined: 03 Jan 2017 13:10
Location: Zurich, Switzerland

Re: "Back" after clicking on an search result directory doesn't go back to the search

Post by rclkrtrzckr »

jupe wrote:And the script command you need to accomplish what you want seems pretty straightforward, you could start with something like this,

Code: Select all

if (exists(<curitem>) == 2) {tab("newb", <curitem>);} //OPEN IN BACKGROUND
or if you wanted it to open in the inactive pane

Code: Select all

  if (exists(<curitem>) == 2) {
		$loc = <curitem>;
		#802;
		tab("new", $loc);
		#802;
	}
of course you would have to modify these if you wanted to open multiple locations at once.
Thanks, I'll give it a try!

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

Re: "Back" after clicking on an search result directory doesn't go back to the search

Post by admin »

rclkrtrzckr wrote:Wouldn't it make sense to add quick searches to the history, too?
At the moment I prefer to keep history a collection of places. Changing this would have epic consequences...

Post Reply