Support for several custom columns in one ADS file

Discussion related to "Everything" 1.5 Alpha.
Post Reply
err_24546
Posts: 42
Joined: Wed Oct 11, 2023 1:47 am

Support for several custom columns in one ADS file

Post by err_24546 »

Currently, columns of this type can be added by EV, but only one value per stream.
I wonder if it wouldn’t be better for performance to add support for reading a stream in JSON format containing multiple columns, with the following data: name, label (column header), value, type (so EV knows how to handle the value).
I believe the intention to add support had already been discussed.
Is still in the roadmap?
void
Developer
Posts: 17299
Joined: Fri Oct 16, 2009 11:31 pm

Re: Support for several custom columns in one ADS file

Post by void »

It's on my TODO list.



For now, to pull values out of multi-line text/plain alternate data streams with regex:

add-column:1 regex:alternate-data-stream-text-plain*:\bkey=.*




For DWORDs, please try the following:

add-column:a a-label:ADS-DWORD a:=HEX2DEC($alternate-data-stream-hex:)




What type of data are you storing in your ADS?
err_24546
Posts: 42
Joined: Wed Oct 11, 2023 1:47 am

Re: Support for several custom columns in one ADS file

Post by err_24546 »

In fact, it is a small utility for Directory Opus that allows users to define fields where to read and save data in an ADS.
These values can be text, integers, doubles, dates, etc.
Then is stored in JSON format in the ADS.
E.g. with 2 fields named "customstr" and "customint"

Code: Select all

{
"customstr": {
"value" : "some important value",
"label" : "My custom string value",
"type" : "string"
}
"customint": {
"value" : 3,
"label" : "My custom rating",
"type" : "int"
}
}
It includes some data that may be useful for other programs when reading it, like the column's label or the value's type. By other programs I mean EV only at least for the moment, and I would like to make it compatible so that Everything can read such data.
So your feedback on the format or the values it contains is more than welcome.

Thanks and happy new year btw!
void
Developer
Posts: 17299
Joined: Fri Oct 16, 2009 11:31 pm

Re: Support for several custom columns in one ADS file

Post by void »

I will consider support for JSON data in alternate data streams.

Thank you for the suggestion.

Happy New Year!
Post Reply