Export multiple formats with one option

Discussion related to "Everything" 1.5.
Post Reply
Herkules97
Posts: 216
Joined: Tue Oct 08, 2019 6:42 am

Export multiple formats with one option

Post by Herkules97 »

Another one that I've had on my mind..Only for maybe a month for this one.
Could a custom export option be made to export multiple formats with that one option?
I used to export efu, csv, json and html.
I then switched to efu and csv only and regretted it, now I do efu, csv and html. Json might be pointless, Idk. Maybe I should do all formats for general exports just cause. Not like they take a lot especially when compressing.
With my latest message where I opened an html to highlight paths, I found out that the search is inside the html export as the title. I already liked that the full timestamps are readable normally, efu and csv contains the unreadable version I have to convert first.
So I have more reason to keep the html exporting going now. If I ever wonder what search I used for the efu and csv versions I can then find them in the html versions.

I guess if it were to be implemented it could be a custom setting which could both have which formats to save and in which order to save them.
I save efu, csv then html. Efu for compatibility, csv because it contains all columns I think and html for the above points and should also contain all columns.
It could either be a toggle next to the only-selection one or as its own format like efu, csv, htm, json and m3u8. Then when you select the multi-export one, a button for options shows up underneath. This is how it works in something like..irfanview I think? Or/and XnViewMP.
Speaking of the toggle, is there a way to keep it? It's easier to toggle it on for 3 exports then toggle it off until whenever I want it again than to toggle it 3 times. Whenever I export, I always de-select files if I want to export the full lists anyway(so if I forget the toggle on, it shouldn't matter for me as it would presumably fall back to exporting the entire lists if nothing is selected). Maybe v1.4x exported selection-only automatically if files were selected, otherwise Idk why I started doing it.
void
Developer
Posts: 19793
Joined: Fri Oct 16, 2009 11:31 pm

Re: Export multiple formats with one option

Post by void »

To export to multiple formats, please check out the /export search command.

Enable all search commands.

Setup a bookmark to call multiple /export search commands

For example:

Code: Select all

/export c:\myexports\myexport.efu -efu 
/export c:\myexports\myexport.csv -csv
/export c:\myexports\myexport.json -json
/export c:\myexports\myexport.html -html
Optionally add
-selection-only
or
-no-selection-only



is there a way to keep it?
There's no option to remember the selection only setting.
I will consider an option to remember the selection only setting.
Herkules97
Posts: 216
Joined: Tue Oct 08, 2019 6:42 am

Re: Export multiple formats with one option

Post by Herkules97 »

void wrote: Fri Mar 13, 2026 3:22 am To export to multiple formats, please check out the /export search command.

Enable all search commands.

Setup a bookmark to call multiple /export search commands

For example:

Code: Select all

/export c:\myexports\myexport.efu -efu 
/export c:\myexports\myexport.csv -csv
/export c:\myexports\myexport.json -json
/export c:\myexports\myexport.html -html
Optionally add
-selection-only
or
-no-selection-only
How would I use this in a way that's faster than exporting each format manually as I have?
Each list I want to export gets a name for that list, so I'd have to apply the name to every line for every list I want to export in the bookmark.
This would probably add more tedium and possibly time than the current method..Maybe I'll have to stick with it then?
void
Developer
Posts: 19793
Joined: Fri Oct 16, 2009 11:31 pm

Re: Export multiple formats with one option

Post by void »

The filename can be generated with the preprocessor.
Maybe it's easier to just hit this bookmark once, then rename externally?

Another option is to use ES.
You would have to setup the desired search with ES.

If you are selecting multiple items by hand and only exporting the selection, then stick with doing it manually in Everything.
Herkules97
Posts: 216
Joined: Tue Oct 08, 2019 6:42 am

Re: Export multiple formats with one option

Post by Herkules97 »

void wrote: Fri Mar 13, 2026 4:25 am The filename can be generated with the preprocessor.
Maybe it's easier to just hit this bookmark once, then rename externally?
Yeah Idk what I'm looking at with the preprocessor stuff.

Does it have to be a bookmark or does it work in normal search?
Because then couldn't I have a replacement name for all of them?
In yt-dlp when I want to download pages, the URL section is just "DOWNLOADLINK" and then I replace within the quotes with a video page or an account page. If it works like that and I don't have to open the bookmark menu every time maybe it would be faster. It might be faster anyway, but bookmark menu stuff can take a lot longer usually. Up to freezing the window for a second or two when opening the editing menu.
I'm too lazy to do the bookmark way even if saving manually is slower.
void
Developer
Posts: 19793
Joined: Fri Oct 16, 2009 11:31 pm

Re: Export multiple formats with one option

Post by void »

Your best option is going to be manually exporting to CSV, EFU and html.


Does it have to be a bookmark or does it work in normal search?
Either will work.



Example usage:

Type in the following search and press ENTER:
/define:myexportname=example
Then reference this variable from your bookmark search, eg:
/export -efu <myexportname:>.efu
<myexportname:> is replaced with example

This doesn't really help though, as you'll have to type this into the search box and you'll lose your results and selection.



/copy is another idea, not sure if it's helpful.
It copies the current selection to the clipboard.
You can specify which properties are copied.


efu and csv contains the unreadable version I have to convert first.
Stick with what you have and convert, but I'll leave the options here..

Check your Tools -> Options -> Advanced -> csv_type setting.
Set to 0 for Name and Path and formatted dates. (default)
Set to 1 for Filename and detailed dates.

Check your Tools -> Options -> Advanced -> efu_filetime setting.
0 = FILETIME as Decimal. (default)
1 = ISO 8601 (converted to UTC).
2 = ISO 8601 (with time zone offset).
therube
Posts: 5693
Joined: Thu Sep 03, 2009 6:48 pm

Re: Export multiple formats with one option

Post by therube »

Example ES variety:

Code: Select all

@echo off
SET XES=%*
es.ex2  -instance 15  -name  -highlight  distinct:  video:  %*  -p   !I: !H:   -no-result-error
:: pause
:: echo %*
:: pause
:: es.ex2  -instance 15                     distinct:  video:  %*  -p   -double-quote -n 1 > c:\out\sssGO.TXT


:: if no results found, no need to do anything more, duh!
@if NOT %errorlevel% EQU 0 goto end:


@es.ex2 -instance 15                                        %*  -p   -export-efu  c:\out\sssGO.efu  !\Windows\Recent  file:
@es.ex2 -instance 15                                        %*  -p   -export-m3u8 c:\out\sssGO.m3u8 !\Windows\Recent  file: distinct:name video:   !I: !H:

:: WRONG
:: in order for "unicode chars" to be recognized (correctly, i.e., played)
:: in mplayer/mpv.net, you have to include a "BOM" mark(er) in the file !!
:: WRONG
:: @es.ex2 -instance 15                                        %*  -p   -export-m3u8 c:\out\sssGO.m3u8 !\Windows\Recent  file: distinct:name video:  -utf8-bom
pause

:: cat c:/out/sssGO.TXT
pause

goto end:


for /f "tokens=*" %%i in (c:\out\sssgo.txt) do cmd /c start C:\WLIB\PLAYERS\MPlayer\MPUI.exe %%i
pause


:end
void
Developer
Posts: 19793
Joined: Fri Oct 16, 2009 11:31 pm

Re: Export multiple formats with one option

Post by void »

Everything 1.5.0.1408a adds the option to remember the last selection only option.

To set Everything to remember the last selection only setting:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    home
  • Select: home_export_selection_only
  • Set the value to: (Use last value)
  • Click OK.


The selection only option is now only shown when there is a selection.
Post Reply