About compatibility to software "everything"

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
CloudJack
Posts: 8
Joined: 30 Jun 2021 11:46

About compatibility to software "everything"

Post by CloudJack »

Hi everyone,

I am looking for setting to auto-select the search item opened from everything.

I searched around other website to get setting of script on "everything" that is

Method 1: To use double click on "everything" search item (for folder item only)
$exec("Path\XYPlorer\XYplorer.exe" "%1")

And

Method 2: To use right click "open path" on "everything" search item (for item other than folder, eg pdf, excel, work etc.)
$exec("Path\XYPlorer\XYplorer.exe" "$parent(%1)")

Above both method work to use Xyplorer to open items.

However, for method 2, it cannot auto-select the search item when it is opened from everything.

Then, I resume the default setting of everything and change the system default file manager to Xyplorer.

It is same result as using method 2.

Would anyone can help? (maybe the solution is pending for "Everything" to update their software to get more support on the command script and compatible to other file manager.)

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

Re: About compatibility to software "everything"

Post by highend »

Code: Select all

$exec("Path\XYPlorer\XYplorer.exe" /feed="::goto '%1'; sel '+0'; focus;")
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1090
Joined: 24 Jan 2021 12:27
Location: Germany

Re: About compatibility to software "everything"

Post by Horst »

I use the following for Explore path in Everything
$exec("C:\Tools\XYplorer\XYplorer.exe" "%1")
This also selects the item if used on a file in the Everything results.

But my normal usage is to search from inside of XYplorer and get the results in a Paper folder.
This script can search for names left mouse or content right mouse on a user defined button with (using the Everything 1.5 for content).
Everything.xys
(1.23 KiB) Downloaded 50 times
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73

CloudJack
Posts: 8
Joined: 30 Jun 2021 11:46

Re: About compatibility to software "everything"

Post by CloudJack »

highend wrote: 30 Jun 2021 12:40

Code: Select all

$exec("Path\XYPlorer\XYplorer.exe" /feed="::goto '%1'; sel '+0'; focus;")
Is it possible to open the search item in new tab?

Also, where can I get reference to write those script /feed="::goto '%1'; sel '+0'; focus;"

Anyway, this script work!! Thank you :biggrin:
Last edited by CloudJack on 30 Jun 2021 13:19, edited 1 time in total.

CloudJack
Posts: 8
Joined: 30 Jun 2021 11:46

Re: About compatibility to software "everything"

Post by CloudJack »

Horst wrote: 30 Jun 2021 12:46 I use the following for Explore path in Everything
$exec("C:\Tools\XYplorer\XYplorer.exe" "%1")
This also selects the item if used on a file in the Everything results.

But my normal usage is to search from inside of XYplorer and get the results in a Paper folder.
This script can search for names left mouse or content right mouse on a user defined button with (using the Everything 1.5 for content).
Everything.xys
I am not sure how to use script file on XYplorer. When I load the script and input search file name, nothing is on paper folder. (using Everything 1.4.1.1009)

Seem my step is wrong.

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

Re: About compatibility to software "everything"

Post by highend »

Is it possible to open the search item in new tab?
Menu - Go - Go to Application Data Folder
Switch into the "Scripts" subfolder there

Download the .xys attachment and place it there as

Code: Select all

Open path via Everything.xys
Open path via Everything.xys
(152 Bytes) Downloaded 45 times
Use this for Everything:

Code: Select all

$exec("C:\Tools\XYplorer\XYplorer.exe" /feed="::perm $$P_EVERYTHING_FILE = '%1'; load 'Open path via Everything.xys';")
Also, where can I get reference to write those script /feed="::goto '%1'; sel '+0'; focus;"
Menu - Help - Contents and Index
Advanced Topics
Scripting, Scripting Commands Reference, Variables...
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1090
Joined: 24 Jan 2021 12:27
Location: Germany

Re: About compatibility to software "everything"

Post by Horst »

CloudJack wrote: 30 Jun 2021 13:13
Horst wrote: 30 Jun 2021 12:46 I use the following for Explore path in Everything
$exec("C:\Tools\XYplorer\XYplorer.exe" "%1")
This also selects the item if used on a file in the Everything results.

But my normal usage is to search from inside of XYplorer and get the results in a Paper folder.
This script can search for names left mouse or content right mouse on a user defined button with (using the Everything 1.5 for content).
Everything.xys
I am not sure how to use script file on XYplorer. When I load the script and input search file name, nothing is on paper folder. (using Everything 1.4.1.1009)

Seem my step is wrong.
I guess you didn't customize the script for your Environment (Path to the Everything dir).
Also you must have the Everything Command-line Interface tool (es.exe) from Everything in the Everything folder
Download it from
https://www.voidtools.com/downloads/.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73

CloudJack
Posts: 8
Joined: 30 Jun 2021 11:46

Re: About compatibility to software "everything"

Post by CloudJack »

highend wrote: 30 Jun 2021 13:49
Is it possible to open the search item in new tab?
Menu - Go - Go to Application Data Folder
Switch into the "Scripts" subfolder there

Download the .xys attachment and place it there as

Code: Select all

Open path via Everything.xys
Open path via Everything.xys

Use this for Everything:

Code: Select all

$exec("C:\Tools\XYplorer\XYplorer.exe" /feed="::perm $$P_EVERYTHING_FILE = '%1'; load 'Open path via Everything.xys';")
Also, where can I get reference to write those script /feed="::goto '%1'; sel '+0'; focus;"
Menu - Help - Contents and Index
Advanced Topics
Scripting, Scripting Commands Reference, Variables...
Thank you again!

I modified the script into this:
Open path via Everything.xys
(345 Bytes) Downloaded 32 times

Code: Select all

    perm $P_EVERYTHING_FILE;

    tab("new", gpc($P_EVERYTHING_FILE, "path"));
	foreach($item, $P_EVERYTHING_FILE, <crlf>, , "No files selected!") {
	  if(getpathcomponent($item, "ext",,4)) {
		goto $item;
	  }
	  else {
		selectitems $item;
		selfilter getpathcomponent($item, "name"),4:=1;
	  }
	  
	}
    unset $P_EVERYTHING_FILE;
It works for auto-select multiple search item and scroll it into view on each tab.

CloudJack
Posts: 8
Joined: 30 Jun 2021 11:46

Re: About compatibility to software "everything"

Post by CloudJack »

I found error if path contain character '

It cannot pass the path into XYplorer for running script.

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

Re: About compatibility to software "everything"

Post by highend »

Then do it this way

Code: Select all

$exec("C:\Tools\XYplorer\XYplorer.exe" /feed=|::perm $$P_EVERYTHING_FILE = "%1"; load "Open path via Everything.xys";|)
Why are you using a foreach loop?

Everything does not store all selected items in that permanent variable, it does send each selected item one by one via that $exec() call...
One of my scripts helped you out? Please donate via Paypal

CloudJack
Posts: 8
Joined: 30 Jun 2021 11:46

Re: About compatibility to software "everything"

Post by CloudJack »

highend wrote: 30 Jun 2021 18:49 Then do it this way

Code: Select all

$exec("C:\Tools\XYplorer\XYplorer.exe" /feed=|::perm $$P_EVERYTHING_FILE = "%1"; load "Open path via Everything.xys";|)
It works perfect :D .
Why are you using a foreach loop?

Everything does not store all selected items in that permanent variable, it does send each selected item one by one via that $exec() call...
Oh...I am not sure how Everything works so that I assume all selected items stored in one variable.

CloudJack
Posts: 8
Joined: 30 Jun 2021 11:46

Re: About compatibility to software "everything"

Post by CloudJack »

Horst wrote: 30 Jun 2021 14:33
CloudJack wrote: 30 Jun 2021 13:13
Horst wrote: 30 Jun 2021 12:46 I use the following for Explore path in Everything
$exec("C:\Tools\XYplorer\XYplorer.exe" "%1")
This also selects the item if used on a file in the Everything results.

But my normal usage is to search from inside of XYplorer and get the results in a Paper folder.
This script can search for names left mouse or content right mouse on a user defined button with (using the Everything 1.5 for content).
Everything.xys
I am not sure how to use script file on XYplorer. When I load the script and input search file name, nothing is on paper folder. (using Everything 1.4.1.1009)

Seem my step is wrong.
I guess you didn't customize the script for your Environment (Path to the Everything dir).
Also you must have the Everything Command-line Interface tool (es.exe) from Everything in the Everything folder
Download it from
https://www.voidtools.com/downloads/.
I figure it out and it works to search file in XYplorer with everything ES.exe

But it seem this method not supporting Chinese character in searching result.

For example, a pdf file is named 一二三.pdf.

I search ".pdf" on the script. The result cannot show the pdf file.

Then, I search "一二三" instead. The result shows the pdf file. However, the result type is "PDF" but "PDF document"

To more explain, if pdf file is named "abc.pdf". The result type will show "PDF document".

Horst
Posts: 1090
Joined: 24 Jan 2021 12:27
Location: Germany

Re: About compatibility to software "everything"

Post by Horst »

CloudJack wrote: 01 Jul 2021 20:02
Horst wrote: 30 Jun 2021 14:33
CloudJack wrote: 30 Jun 2021 13:13
Horst wrote: 30 Jun 2021 12:46 I use the following for Explore path in Everything
$exec("C:\Tools\XYplorer\XYplorer.exe" "%1")
This also selects the item if used on a file in the Everything results.

But my normal usage is to search from inside of XYplorer and get the results in a Paper folder.
This script can search for names left mouse or content right mouse on a user defined button with (using the Everything 1.5 for content).
Everything.xys
I am not sure how to use script file on XYplorer. When I load the script and input search file name, nothing is on paper folder. (using Everything 1.4.1.1009)

Seem my step is wrong.
I guess you didn't customize the script for your Environment (Path to the Everything dir).
Also you must have the Everything Command-line Interface tool (es.exe) from Everything in the Everything folder
Download it from
https://www.voidtools.com/downloads/.
I figure it out and it works to search file in XYplorer with everything ES.exe

But it seem this method not supporting Chinese character in searching result.

For example, a pdf file is named 一二三.pdf.

I search ".pdf" on the script. The result cannot show the pdf file.

Then, I search "一二三" instead. The result shows the pdf file. However, the result type is "PDF" but "PDF document"

To more explain, if pdf file is named "abc.pdf". The result type will show "PDF document".
My script is a stripped down version of much better scripts which also handle unicode.
Have a look on this thread
viewtopic.php?f=7&t=12054
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73

RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: About compatibility to software "everything"

Post by RalphM »

Is there anything to be gained by fully quoting the last post in a thread?
No, it's just a waste of space!
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

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

Re: About compatibility to software "everything"

Post by highend »

Try my current (personal!) version...

On my system it finds files with e.g. "漢字" in it just fine...

It has a few additional switches as well (things that I use very often):

Code: Select all

        d: = Only directories
        f: = Only files
        c: = content:<search term>
        l: = Search only in current XY's path
Everything_v0.3.xys
(4.19 KiB) Downloaded 44 times
One of my scripts helped you out? Please donate via Paypal

Post Reply