Page 1 of 2
Everything for xyplorer
Posted: 19 Feb 2020 11:31
by abma
Hello everyone! This is a very simple but practical script I wrote myself,
Introduction:
This script calls Everything's command-line ES to import search results, is extremely fast, and supports Everything's syntax commands. If you don't have Everything installed, please go to the official website to download and install it.
Make sure everything is started
[url
https://www.voidtools.com/[/url]
//==========================================================//
installation
Drag and drop the "EV FOR XY" folder in the archive to Scripts
//==========================================================//
Run script
You can set a shortcut for this script:
Use-Manage Commands ...-Run Scripts-New
You can fill in the relative path of the script:
<xyscripts> \ EV FOR XY \ EverythingXYplorer.xys
//==========================================================//
Custom short name search
You can modify it yourself here

//==========================================================//
Examples:
size:>1mb .pdf =PDF files larger than 1MB
!c:\ size:>1mb .pdf =PDF files larger than 1MB but without C drive
dm:today =File modified today
size:3mb-4mb
You can also use the short name defined by the script
zip: =zip,rar,cab,7z file type
//==========================================================//good luck
Re: Everything for xyplorer
Posted: 24 Feb 2020 06:11
by Millzey
Thanks for this. I routinely search roughly 200k file/folder names and after XYP goes without a search for some minutes, the search takes forever. I assume a cache of sorts has gone stale.
I also have a fearsome bug when rich moving a bunch of selections from search results, where it wont remove all or some of the source files, so I end up with duplicates all over the place. I'm hoping using a paper will be a workaround
Re: Everything for xyplorer
Posted: 25 Feb 2020 10:11
by admin
If a search does not return immediately then it is no cached search. There is no other caching involved in a search. So, what kind of search is that? 200K is not such a big number...
Re: Everything for xyplorer
Posted: 27 Feb 2020 18:41
by GalebG4M
Still, thanks for the script, I'll give it a try and will give my feedback as I use it!
Re: Everything for xyplorer
Posted: 27 Feb 2020 21:20
by Filehero
Hi abma,
thanks a lot for your script.
Have you noticed that there already is a
adapter script for Everything? If yes, is there a major difference in terms of function?
I don't want to sound disrespectful, I'm just trying to spot the difference before spending time for setup.
Thanks & cheers,
Filehero
Re: Everything for xyplorer
Posted: 29 Oct 2020 11:17
by rpnfan
admin wrote: ↑25 Feb 2020 10:11
If a search does not return immediately then it is no cached search. There is no other caching involved in a search.
So, what kind of search is that? 200K is not such a big number...
A related question. XY does not use the search-technology from Everything for itself, right? That would be great and could speed things up drastically for functions like "Show folder sizes", which I would love to have always on, but it just slows down XY so much. :-(
Re: Everything for xyplorer
Posted: 29 Oct 2020 11:51
by highend
XY does not use the search-technology from Everything for itself, right?
It doesn't. XY does not build indexes for drives / anything else.
Re: Everything for xyplorer
Posted: 01 Oct 2021 13:35
by rpnfan
highend wrote: ↑29 Oct 2020 11:51
XY does not use the search-technology from Everything for itself, right?
It doesn't. XY does not build indexes for drives / anything else.
That's a pity. XY just could access the cache from Everything -- which in computer terms speaking is practically almost "free" without notable speed, memory or HD usage costs.
Re: Everything for xyplorer
Posted: 01 Oct 2021 13:59
by Horst
I use Highend's Everything script in XY.
That gives you the full search functions of Everything and stores the results in a Paper folder.
Have a look at this
viewtopic.php?f=7&t=23224
Re: Everything for xyplorer
Posted: 02 Feb 2022 19:37
by Norn
Re: Everything for xyplorer
Posted: 02 Feb 2022 23:24
by RalphM
@Norn: It might help if you also enlighten us with what changed in that last script to make it different/better than the previous ones.
Re: Everything for xyplorer
Posted: 03 Feb 2022 00:58
by Norn
Tips:
abma's script use paper folder in UTF-8 or ANSI format.
Save the result to a file and open it as a paper folder (Paper folders support Unicode).
Change:
Replace & History...
goto ">cmt:$text"; //Highlight search keywords;Turn on Instant Color Filters
$delete = "!$ !@ !`% !# !\$Recycle.Bin"; //Exclude system invalid files It takes a few seconds.
Drag and drop the "EV FOR XY" folder in the archive to Scripts folder.
Script:
Code: Select all
/*
***************************************************************************************************
@Author : https://www.xyplorer.com/xyfc/viewtopic.php?p=195781#p195781
@Created : 2020-02-19
@Modified: 2023-08-09
@Function: Everything For XY
@Version : v3.7
@Change :
2023-08-09: Support adding quotes "" exact search
2022-11-04: Replace & History
***************************************************************************************************
*/
// Handle .ini file
$iniFile = "<xydata>" . "\" . "INI" . "\" . "EverythingForXY_LastQuery" . ".ini";
// Write .ini file if missing
if (exists($iniFile) != 1) {
$iniContent = <<<'>>>'
// Cannot use <.> (.) etc as a separator
[EverythingForXY]
Query=Query1¶Query2¶Query3¶Query4¶Query5¶Query6¶Query7¶Query8¶Query9¶Query10
>>>;
writefile($iniFile, $iniContent, , "tu"); // Save as Unicode
}
// Get .ini file entries
$lastQuery = getkey("Query", "EverythingForXY", $iniFile);
// Get the first value, the separator is ¶
$lastQuery1 = gettoken($lastQuery, 1, '¶', "t");
// Replace ¶ to |
$lastQuery =regexreplace($lastQuery, "¶", "|");
// Scripting
// ================================= settings =================================
// -----------------search text process---------------
$es = """<xyscripts>\EV FOR XY\es.exe"""; // es.exe path
$name = now("yyyy-mm-dd-hhnnss"); // Paper name
$paper = "%temp%\EverythingForXYplorer\$name.txt"; // Paper path
//$delete = "!$ !@ !`% !# !\$Recycle.Bin"; // It takes a few seconds
$notes = "";
$notes = <<<'>>>'
Tips : Support everything syntax.
PDF greater than 1mb: size:>1mb .pdf
Empty folder : empty:
The left side automatically converts to the right
d: = Search directories => folder:
f: = Search file => file:
c: = Search content => content:
p: = Search in current path => path:<curpath >
p:c:Last => path:D:\TXT content:Last
>>>;
$text = input("Everything for XYplorer", "$notes", "$lastQuery1", "s/e", "cancel", "510", "500", "$lastQuery", ":qns");
if $text == "cancel" {end 1==1;}
// Replace
$text=replace($text, "wjj:", "folder:");
$text=replace($text, "wj:", "file:");
$text=replace($text, "nr:", "content:");
$text=replace($text, "lj:", "path:");
$text=replace($text, "dq:", "path:<curpath>\ ");
// ---------------------Short name--------------------- // Custom search short name,Users can modify it by themselves
if $text == "office:" {$text = "*.doc|*.docx|*.ppt|*.pptx|*.mpaa|*.xlsx|*.xls";}
elseif $text == "pic:" {$text = "*.bmp|*.jpg|*.jpeg|*.png|*.tif|*.gif|*.pcx|*.tga|*.svg|*.psd|*.cdr|*.pcd|*.dxf|*.ufo|*.eps|*.ai|*.raw|*.WMF|*.webp"}
elseif $text == "video:" {$text = "*.avi|*.flv|*.mkv|*.mp4|*.mpe|*.mpeg|*.mpg|*.mov|*.rmvb|*.wm|*.wmv"}
elseif $text == "zip:" {$text = "*.zip|*.rar|*.7z|*.cab"}
// -------------Special characters working-------------
//$text2 = replacelist("$text", '< > & | ^ "', '^< ^> ^& ^| ^^ \"', " "); //ES special characters need to be prefixed with "^"
$text2 = replacelist("$text", '< > & | ^', '^< ^> ^& ^| ^^', " "); //ES special characters need to be prefixed with "^"
// ================================= script =======================
// -----------------------search--------------------
if $text != "*" and $text != "file:" and $text != "folder:" and $text != ""
{
// Make sure the path exists
if(!exists("%temp%\EverythingForXYplorer")) {new("%temp%\EverythingForXYplorer", "dir")}
//runret ("cmd /c chcp 65001 & $es $text2 >$paper"); // Run cmd, use UTF8 format save to TXT file
//runret ("cmd /c $es $text2 -export-txt $paper");
run "$es $text2 -export-txt $paper",, 2, 0; // Run cmd, Make the results of the search save to the $paper file
//tab("newb", "This PC"); // New background tab
$size = report("{Size B}", $paper); // Get file size
if(!$size) {
msg "No match found!"; // Popup "No match found!"
//tab("close",, tab("get", "index")+1);
} else {
//seltab +;
tab("new");
paperfolder($paper, , , "l"); // Open a file as paperfolder
//goto ">cmt:$text"; // Highlight search keywords;Turn on Instant Color Filters
status "Query: $text"; //Status query
}
// Save last query to INI file
$newLastQuery = "";
$count = "0";
// Foreach $lastQuery
foreach($value, "$lastQuery", "|", "e") {
if($value != $text) {$newLastQuery .= "$value" . "¶";} // if $value != $text, stack each item with the separator ¶
$count++; // $count + 1 each time
if $count == "10" {break}
}
if($text) { // Merges input values with old values, the separator is ¶
$newLastQuery = "$text" . "¶" . "$newLastQuery";
setkey $newLastQuery, "Query", "EverythingForXY", $iniFile;
}
} else {
msg "The range of keywords you entered is too large. Please try another keyword";
}
// ================================== END ===================================
Re: Everything for xyplorer
Posted: 25 Apr 2022 09:34
by wf2zxp
搜所带间隔号的关键字比如"インモラル・イリュージョン"就会在结果中显示"インモラル?イリュージョン"

- 2022-04-25_153117.png (11.12 KiB) Viewed 4717 times
所有间隔号都显示“?”点带“?”的结果就会显示“位置当前不可用”
Re: Everything for xyplorer
Posted: 25 Apr 2022 12:02
by Norn
I don't know more...
Open %temp%\EverythingForXYplorer
Open the .txt file with the same name as the paper folder
Replace "?" to "・"
Save as "UTF-8 with BOM" format to replace .txt file.
Refresh paper folder.
Re: Everything for xyplorer
Posted: 26 Apr 2022 01:37
by wf2zxp
这种方法只是临时性的,下次搜索带间隔号的文件还会显示为问号……用论坛里的其它EVERYTING脚本倒是显示正常但会报各种奇葩的错误,用这个不报错但会发生这种显示错误,也是醉了,不知哪里的问题,可能是简中系统的问题吧……还是用回Everything本体算了
