Integration of Everything [voidtools]

Discuss and share scripts and script files...
Post Reply
highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Integration of Everything [voidtools]

Post by highend »

My version of how Everything can be integrated into XY's workflow...
https://www.voidtools.com

This script makes use of Everthings ability to index the content of files so I recommend to use the current v1.5 (alpha) version
https://www.voidtools.com/forum/viewtop ... =12&t=9787

All credits go to Marco, who created the original implementation of it:
viewtopic.php?f=7&t=12054

My version supports a few "internal" switches (which get expanded to the ones that Everything uses):

Code: Select all

Type your search query as you would in Everything!

Additional (internal) switches and their expansions:
d:  = Only directories               => folder:
f:  = Only files                     => file:
c:  = Search content                 => content:
l:  = Search only in current path    => path:"<curpath>"
w:  = Search in Windows search index => systemindex:

Use a switch only as a prefix, e.g.: d:<folder name>

BEWARE: Drives need a trailing "\", e.g.: C:\, D:\, etc.
Screenshot from v0.9.2 (with ShowMacros=true):
1.png
1.png (12.37 KiB) Viewed 10248 times
Additionally:
- It should support unicode (or better: UTF-8) searches
- All settings are stored in an .ini file (same folder and base name of the script)
- Allows to configure:

Code: Select all

- Name of the paper folder
- The name and order of the columns to display in the paper folder
- The primary and secondary sort order of up to two columns
- If column autosizing should be used
- If the internal notes should be displayed
- Stores the last used query
Download current version:
Everything_v0.9.5.xys
(18.91 KiB) Downloaded 692 times
Download older version(s):
Everything_v0.9.4.xys
(17.96 KiB) Downloaded 242 times
Everything_v0.9.2.xys
(17.61 KiB) Downloaded 273 times
Everything_v0.9.1.xys
(16.14 KiB) Downloaded 243 times
Everything_v0.9.xys
(12.89 KiB) Downloaded 229 times
Everything_v0.8.xys
(10.41 KiB) Downloaded 236 times
Old version download counter: 77
One of my scripts helped you out? Please donate via Paypal

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

Re: Integration of Everything [voidtools]

Post by Horst »

I like this new version but I have small wish.
The script sets the columns and their sizes in the Paper folder as requested.
Unfortunately this setting is then the default for any other folder I open.
Can this column layout be restricted to the current Paper folder only ?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Integration of Everything [voidtools]

Post by highend »

That's not possible within the script, scripting for "folder view setting" isn't implemented.

Either define a default folder view setting that you want (and XY will use that once you open a new tab (that is NOT a clone of the current one, created by Everything)) or

Disable:
Configuration | Colors and Styles | Styles | [ ] Apply list styles globally

and Enable:
Configuration | Colors and Styles | Styles | [x] Remember list settings per tab
and under "Apply to..."
[x] Column layout (positions, widths, visibility)

OR use v0.5 and add this part to your .ini file manually (as all other settings under [General]):

Code: Select all

; En- or disable the setting of column layout and sort order
; Default: true (to disable this, use: false)
SetupColumns=false
One of my scripts helped you out? Please donate via Paypal

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Integration of Everything [voidtools]

Post by highend »

v0.5 uploaded

It has a new setting for the .ini file

Code: Select all

; En- or disable the setting of column layout and sort order
; Default: true (to disable this, use: false)
SetupColumns=true
If you have already an existing .ini file, you need to add this part to it manually
For new setups it's part of the default

If set to true, it will apply the settings for

Code: Select all

ColumnLayout=
ColumnSortOder=
One of my scripts helped you out? Please donate via Paypal

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

Re: Integration of Everything [voidtools]

Post by Horst »

I like to have setup the columns
so I followed your configuration advice.
Works fine now for me :D
Thanks
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

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

Re: Integration of Everything [voidtools]

Post by Horst »

I edited my copy of your script
from
$query = trim(input("Everything", $notes, ($lastQuery) ? $lastQuery : "<query>", "s"));
to
$query = trim(input("Everything", $notes, ($lastQuery) ? $lastQuery : "<query>", "e"));

With the actual beta the notes are then aligned and looking much better.

Is there any way to get a larger font for the Query input line ?
I tried to make the Edit text font larger but this doesn't help.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Integration of Everything [voidtools]

Post by highend »

v0.6 is online

Implements the "e" style switch for input() to better align the notes section (v22.00.0006 or later is required for this)
Even older versions accept "e" without throwing an error so it's hardcoded from now on.
One of my scripts helped you out? Please donate via Paypal

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

Re: Integration of Everything [voidtools]

Post by admin »

Horst wrote: 05 Jul 2021 11:54 Is there any way to get a larger font for the Query input line ?
I tried to make the Edit text font larger but this doesn't help.
The font/size of the input box is controlled by Configuration | Colors and Styles | Fonts | Buttons and Labels.

TryingOutXYplorer
Posts: 3
Joined: 15 Aug 2021 18:09

Re: Integration of Everything [voidtools]

Post by TryingOutXYplorer »

I need a little help to get this to work, please.

I have loaded the copied Everything_v0.6.xys into the script folder and also put the portable Everything64.exe (version 1.5) into the same folder.

I get an error as attached. I have a folder named Everything_64 (with the portable version). (Should the portable everything be a different folder?)

Thanks for any help.
Attachments
Screenshot 2021-08-15 171933.png
Screenshot 2021-08-15 171933.png (4.99 KiB) Viewed 10460 times

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Integration of Everything [voidtools]

Post by highend »

The created .ini file has an entry for EverythingPath=
Enter the full path to your existing Everything_x64 folder there?
One of my scripts helped you out? Please donate via Paypal

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

Re: Integration of Everything [voidtools]

Post by Horst »

TryingOutXYplorer wrote: 15 Aug 2021 18:23 I need a little help to get this to work, please.

I have loaded the copied Everything_v0.6.xys into the script folder and also put the portable Everything64.exe (version 1.5) into the same folder.

I get an error as attached. I have a folder named Everything_64 (with the portable version). (Should the portable everything be a different folder?)

Thanks for any help.
You don't need the Everything64.exe
You have to download the command line tool es.exe from Everything and put it into the Everything folder.
https://www.voidtools.com/downloads/
The path to it is configured in the script.
Everything itself must be configured and running as usual before es.exe can be used by the script.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

TryingOutXYplorer
Posts: 3
Joined: 15 Aug 2021 18:09

Re: Integration of Everything [voidtools]

Post by TryingOutXYplorer »

Thanks very much for the for response. I am still getting an error and I attached the ini, perhaps you can help me further?

I have Everything in the path D:\00 - Downloads\00 - Portable Programs\Everything\Everything_64.exe
D:\00 - Downloads\00 - Portable Programs\XYplorer\Data\Scripts\Everything_v0.6.xys

"[General]
; Where does the "es.exe" file reside
; Default: <xypath>\..\Everything_x64
EverythingPath=D:\00 - Downloads\00 - Portable Programs\Everything\Everything_x64

; The base paper folder name (without .txt extension)
; Default: Everything
PaperFolderName=Everything

; En- or disable the setting of column layout and sort order
; Default: true (to disable this, use: false)
SetupColumns=true

; The columns that the paper folder will show
; Default: Name,Path,Size,Modified,Created
ColumnLayout=Name,Path,Size,Modified,Created

; Primary and secondary sort order columns
; Default: Name,Path
ColumnSortOder=Name,Path

; Automatically resize the paper folder columns
; Default: true (to disable this, use: false)
AutosizeColumns=true

; Display internal notes (switch explanations)
; Default: true (to disable this, use: false)
DisplayNotes=true

; The last query you've used
LastQuery="

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Integration of Everything [voidtools]

Post by highend »

You need es.exe in that path^^

Your real path is
D:\00 - Downloads\00 - Portable Programs\Everything

but you're using
D:\00 - Downloads\00 - Portable Programs\Everything\Everything_x64
in the .ini

Do you really think that makes any sense?
One of my scripts helped you out? Please donate via Paypal

TryingOutXYplorer
Posts: 3
Joined: 15 Aug 2021 18:09

Re: Integration of Everything [voidtools]

Post by TryingOutXYplorer »

Thanks very much, now very clear

jaywalker32
Posts: 205
Joined: 27 May 2014 05:24

Re: Integration of Everything [voidtools]

Post by jaywalker32 »

Is there a way to call the Everything.exe ui via a script and get the search results on exit, and use THAT to create the paper folder?
Since on the UI you can modify the search query and fine tune the result set in real time.

Is there any plans for implementing an indexed search feature similar to Everything natively in XY?

Post Reply