Page 1 of 1

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

Posted: 03 Jan 2018 11:07
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é

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

Posted: 03 Jan 2018 11:21
by highend
2. Miscellaneous - Go To - Open Containing Folder in New Background Tab?

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

Posted: 03 Jan 2018 12:16
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é

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

Posted: 03 Jan 2018 12:19
by highend
Then write a script, use it in an UDC and assign a keyboard shortcut to it

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

Posted: 03 Jan 2018 12:22
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.

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

Posted: 03 Jan 2018 12:30
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).

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

Posted: 03 Jan 2018 12:45
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.

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

Posted: 03 Jan 2018 17:50
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.

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

Posted: 04 Jan 2018 12:22
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?

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

Posted: 04 Jan 2018 12:22
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!

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

Posted: 04 Jan 2018 12:55
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...