Custom Columns

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Custom Columns

Post by admin »

SFXAudio wrote:
admin wrote:The Select Property list should show everything available on your system. If Explorer can show that column then it should be listed in that list. No need for scripting.
Unfortunately MSFT, in all their wisdom, removed a bunch of the audio column functionality when going from Win XP to Win 7.

I think that's the reason why I'm not seeing the below parameters listed in the Select Property List.

-Audio Sample Rate
-Audio bit depth (the current "Bit Depth" option doesn't seem to be audio bit depth)
-Audio channels

These params are, however, displayed on the preview pane when clicking a single file, so there's gotta be a way to get them to display in columns...

Is there a custom column script I can use to display them? I'm working with uncompressed PCM .wav's right now.
Hmm, really? Shocking!

XY can extract the info by opening the WAV files (well, that's what the Shell does as well, IF it does it). So, yes I could add means to show that info in the columns.

But, I cannot really believe it. Can anybody here confirm this?

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

Re: Custom Columns

Post by admin »

Well, I think I can confirm that these properties have been removed from Vista and later:
http://answers.microsoft.com/en-us/wind ... 7350b540c3

Interesting quote here:
I'm an audio professional in the games industry and I've just moved over to Windows 7 from XP. Being able to see Sample Rate quickly and easily without having to load up a wave editor really is a fundemental requirement when working with hundreds of audio files at a time. What a monumental c**k up by microsoft once again.

I know the majority of video editors use Windows (hence all the video info options) and most audio engineers us Apple, but removing the option to view basic information about audio files compounds the issue and makes sure it'll always stay this way.

Even with all it's problems, I'm missing XP Pro already. At least I can see the damn SampleRate!

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Custom Columns

Post by TheQwerty »

Sorry in advance... :blackstorm:


It just feels that between Extra Tags, Extra Columns, and Custom Columns there is a ton of room for improvement by tightening their integration.

Looking back with perfect vision...

The configuration for Extra Tags should have never been connected to the columns. It should be a separate dialog, maybe more like Manage UDC or part of Configuration > Tags, because Extra Tags are useful even if they are not displayed in the list, and their configuration has nothing to do with the columns.

Then Extra Columns and Custom Columns would actually be the same thing - Custom Columns, similar to what you just added but with the types Template, Extra Tag, and Script. This would bring Extra Tags into the list without tying their definitions to the columns. Template, as it does today, would allow the user to bring shell properties into the list but it wouldn't exactly encourage them to be used, as you are now.

Really with some smarts the three types could be eliminated here since extra tags could be accessible via variables and templates are just resolved strings. There is no practical difference between "<prop CameraModel>" and "return <prop CameraModel>;".

Shell Columns are a separate feature and could have been introduced before or after the above.



Right now I feel like we're missing out on a lot of synergy! :(

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Custom Columns

Post by kunkel321 »

Pretty darn cool!
Thanks all, for the sample scripts.

Interesting bug in Win 7, with XY...0103:
I add a custom column by right-clicking the Name column in Details View, and putting a checkmark next to one of the custom columns in the droplist. This *does* add the column as expected--but it also has the affect of opening the 'Properties' dialog of every single file in the folder that is shown!
ste(phen|ve) kunkel

LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Custom Columns

Post by LittleBiG »

kunkel321 wrote:Interesting bug in Win 7, with XY...0103:
I add a custom column by right-clicking the Name column in Details View, and putting a checkmark next to one of the custom columns in the droplist. This *does* add the column as expected--but it also has the affect of opening the 'Properties' dialog of every single file in the folder that is shown!
Exactly the same happened here. I quickly opened a fresh one, but I couldn't repro, so I didn't report it. Win7x64

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

Re: Custom Columns

Post by admin »

kunkel321 wrote:Pretty darn cool!
Thanks all, for the sample scripts.

Interesting bug in Win 7, with XY...0103:
I add a custom column by right-clicking the Name column in Details View, and putting a checkmark next to one of the custom columns in the droplist. This *does* add the column as expected--but it also has the affect of opening the 'Properties' dialog of every single file in the folder that is shown!
Yep, fixed it an hour ago. Upload soon...

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

Re: Custom Columns

Post by admin »

SFXAudio wrote:
admin wrote:The Select Property list should show everything available on your system. If Explorer can show that column then it should be listed in that list. No need for scripting.
Unfortunately MSFT, in all their wisdom, removed a bunch of the audio column functionality when going from Win XP to Win 7.

I think that's the reason why I'm not seeing the below parameters listed in the Select Property List.

-Audio Sample Rate
-Audio bit depth (the current "Bit Depth" option doesn't seem to be audio bit depth)
-Audio channels

These params are, however, displayed on the preview pane when clicking a single file, so there's gotta be a way to get them to display in columns...

Is there a custom column script I can use to display them? I'm working with uncompressed PCM .wav's right now.
OK, got it! :beer: Here is a shot to prove it: :biggrin:
2014-03-05_213250.png
2014-03-05_213250.png (63.92 KiB) Viewed 2151 times

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

Re: Custom Columns

Post by admin »

TheQwerty wrote:Sorry in advance... :blackstorm:


It just feels that between Extra Tags, Extra Columns, and Custom Columns there is a ton of room for improvement by tightening their integration.

Looking back with perfect vision...

The configuration for Extra Tags should have never been connected to the columns. It should be a separate dialog, maybe more like Manage UDC or part of Configuration > Tags, because Extra Tags are useful even if they are not displayed in the list, and their configuration has nothing to do with the columns.

Then Extra Columns and Custom Columns would actually be the same thing - Custom Columns, similar to what you just added but with the types Template, Extra Tag, and Script. This would bring Extra Tags into the list without tying their definitions to the columns. Template, as it does today, would allow the user to bring shell properties into the list but it wouldn't exactly encourage them to be used, as you are now.

Really with some smarts the three types could be eliminated here since extra tags could be accessible via variables and templates are just resolved strings. There is no practical difference between "<prop CameraModel>" and "return <prop CameraModel>;".

Shell Columns are a separate feature and could have been introduced before or after the above.



Right now I feel like we're missing out on a lot of synergy! :(
Let me just finish my thing. I'm not able intellectually to change my mind at the moment... When I'm done we can throw it all over... :mrgreen:

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

Re: Custom Columns

Post by admin »

Here is how you config a column to show bit depth:
Attachments
ColumnAudioBitDepth.png
ColumnAudioBitDepth.png (8.35 KiB) Viewed 2147 times

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Custom Columns

Post by kunkel321 »

Multiple thots:

Is it difficult to extract the number of icons in a DLL or ICL file? What would the script for such a thing look like? Or maybe there's already a property for it(?)
---

It seems like it might be a good use of space to "combine" columns under certain circumstances... For example one column that provides the following:
IF file pattern = *.png;*.bmp;*.ico;*.jpg;*.gif;*.tif;*.tga
THEN property = Dimensions.
ELSE IF file pattern = *.dll;*.icl
THEN property = Number-of-icons

(obviously not real XY script ;-) )
---

So many properties to choose from! It would be clever if they could be categorized.. Like if they showed up in the list as
Video/Frame Rate
Video/Frame Width
Camera/Bit Depth
Camera/Orientation
Camera/Saturation
Music/Genre
Music/Bit Depth
Music/Track Number
Music/Length.


I guess some properties would have multiple categories (e.g. modification date).... This would make it easier to use XY's quick filter-as-you-type tool. Not sure if there are Windows limitations that would prevent this feature though.
----

Re file types patterns: why a different format?
.png;.bmp;.ico;.jpg;.gif;.tif;.tga versus *.png;*.bmp;*.ico;*.jpg;*.gif;*.tif;*.tga
Just curious.
----

Also curious: Would there be a performance difference if you use a built-in property (e.g. modification date) versus extracting the same info with a script??
----

Last comment: This is awesome Don--thanks so much for adding the Custom Column feature set! Good stuff. 8)
ste(phen|ve) kunkel

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

Re: Custom Columns

Post by admin »

Is it difficult to extract the number of icons in a DLL or ICL file? What would the script for such a thing look like? Or maybe there's already a property for it(?)
-> you again! :) No property for it, and no script possible AFAIK. Only I could do it, but just for you??? :P


It seems like it might be a good use of space to "combine" columns under certain circumstances
-> planned!

So many properties to choose from! It would be clever if they could be categorized
-> not possible, it's owned by the shell.


Re file types patterns: why a different format?
.png;.bmp;.ico;.jpg;.gif;.tif;.tga versus *.png;*.bmp;*.ico;*.jpg;*.gif;*.tif;*.tga
-> both work, so no problem.

Also curious: Would there be a performance difference if you use a built-in property (e.g. modification date) versus extracting the same info with a script??
-> try it, but script is probably a bit slower.

Last comment: This is awesome Don--thanks so much for adding the Custom Column feature set! Good stuff.
-> yes :)

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Custom Columns

Post by TheQwerty »

admin wrote:Is it difficult to extract the number of icons in a DLL or ICL file? What would the script for such a thing look like? Or maybe there's already a property for it(?)
-> you again! :) No property for it, and no script possible AFAIK. Only I could do it, but just for you??? :P
We could find a way to do it via scripting.

I doubt we could do so quick enough for decent use in a column script, but one that tags a file with the information could work.

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Custom Columns

Post by SkyFrontier »

CC could show pilcrows for CRLFs when previewing text.
It's rather confusing seeing plain text in such a... plain view.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

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

Re: Custom Columns

Post by admin »

SkyFrontier wrote:CC could show pilcrows for CRLFs when previewing text.
It's rather confusing seeing plain text in such a... plain view.
Currently I show " " (2 spaces) in place of CRLF in the file list. IMO it looks better than pilcrow.

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

Re: Custom Columns

Post by admin »

TheQwerty wrote:Sorry in advance... :blackstorm:


It just feels that between Extra Tags, Extra Columns, and Custom Columns there is a ton of room for improvement by tightening their integration.

Looking back with perfect vision...

The configuration for Extra Tags should have never been connected to the columns. It should be a separate dialog, maybe more like Manage UDC or part of Configuration > Tags, because Extra Tags are useful even if they are not displayed in the list, and their configuration has nothing to do with the columns.

Then Extra Columns and Custom Columns would actually be the same thing - Custom Columns, similar to what you just added but with the types Template, Extra Tag, and Script. This would bring Extra Tags into the list without tying their definitions to the columns. Template, as it does today, would allow the user to bring shell properties into the list but it wouldn't exactly encourage them to be used, as you are now.

Really with some smarts the three types could be eliminated here since extra tags could be accessible via variables and templates are just resolved strings. There is no practical difference between "<prop CameraModel>" and "return <prop CameraModel>;".

Shell Columns are a separate feature and could have been introduced before or after the above.



Right now I feel like we're missing out on a lot of synergy! :(
OK, I did a bit of meditation and still fail to see why Extra Tags and Custom Columns should be joined. They are just too different. But it's not that important.

However: It is now time to implement my original plan of Context-Sensitive Columns. And indeed, I will have to write an additional interface for this ( :blackstorm: ) where "Column Definitons" are assigned to Custom Columns. I will allow probably 32 "Column Definitons" for starters, and you can assign as many of them as you want to each of the 5 Custom Columns, and in any order. The Item Filter field in each Column Definiton plays a key role then in the question which Column Definiton is used for the current cell.

I'm still not totally sure how I can design this in a way that is not too clumsy to handle for the user. Needs more meditation... I like how you now can quickly re-define a column by right-click and I don't want to lose this ability. I currently don't see a way how to combine this with Context-Sensitive Columns...

Post Reply