File Display Columns / Appearance : Custom Names

Having some difficulty with evaluator columns. Using the factory evaluator code, but it doesn't calculate the same as the factory folder format columns.

For example, I want to shorten the name of "aspect ratio" to "aspect". I have to use an evaluator column to do it.

This is the factory column:

This is the evaluator column. It doesn't round some of the numbers:

With "Aspect Ratio Group" the problem is the opposite. It does round the numbers, when the factory column didn't:

So instead of having to do evaluator columns, in the File Display Columns / Appearance area, could we get a text field where we can type out a custom name for the column header please.

And could you divide the alignment, so there is a header alignment and also a content alignment. We could align the header to the center and the data to the left, etc.

And please add a checkbox, when enabled makes the sorting arrow bump the column wider so it doesn't truncate the header names please.

Here's another example of the problem. "Created Date" evaluator added the time to it.

Try this.

<?xml version="1.0"?>
<evalcolumn align="0" attrrefresh="no" autorefresh="no" customgrouping="no" foldertype="all" header="Aspect" keyword="Aspect" maxstars="5" namerefresh="no" reversesort="no" title="Aspect Ratio" type="0">x=aspectratio;

Num = RegEx(x, &quot;(.*)(\..{2})&quot;, &quot;\1\2&quot;);
return Num;</evalcolumn>

This is only this first one.
I only truncated the decimal, I didn't round it.
If you would like fractions, that's a bit different.

How would you like to see Created Date displayed ?

Columns are provided to the evaluator in the most logical type, but you can obtain the original text form by appending _text to the name (so e.g. aspectratio_text would return exactly the same string shown for the original column).

1 Like

That did it, thank you.

Just whatever length of words fit better with the length of the content.

I changed "Aspect Ratio" to "Aspect" because when I have only two digits the column header is way too wide. Looks stupid. And changed "Aspect Ratio Group" to "Orientation". That fits nicely with the size of the data.

Couldn't think of a good abbreviation. I was going to go with As Ratio. Cause I like me a good 1.5 as ratio :joy:

I'm glad that it worked out Sir Knight Asunder.

2 Likes

Aye, thank you good citizen.

It's supposed to be just me wearing my sweater hoodie. But the curves are wrong cause I can't draw with my mouse apparently. So it looks like that bandana thing that soldiers wear under a helmet or something. Too lazy to get out the pen tablet that's sitting right infront of me. Can't choose a colour scheme that doesn't look a circus either.

The sword is now too short cause the as ratio doesn't work with a long sword. It makes everything else too small. And now the hilt is too big, the alpha channel corrupts the colours on export... grrrr. I'm going to vectorize my other two logos as well.

If I could get gifs for an avatar pic that would be cherry. I would animate the light and make little sparkly stars. At least I fixed the oogly eyes.

For the weapons of our warfare are not carnal but mighty through God to the pulling down of strongholds.

Please stay on topic.

Another issue with my evaluator columns:

Renamed a rating column to Priority. It's glitching out on me.
Every rating that's higher than a 1 rating shows 5 stars in the column. ?

As in, if I set the rating to 2 it shows as 5. Checked the metadata pane and the file does have a 2 rating. The column is just buggered up.

Well, you're right.

Here's a workaround that isn't as pretty, but takes up less space.

<?xml version="1.0"?>
<evalcolumn align="0" attrrefresh="no" autorefresh="yes" customgrouping="no" foldertype="all" header="Priority" keyword="TJPriority" maxstars="5" namerefresh="no" reversesort="no" title="TJ Priority" type="0">x= rating_text;
return(x);</evalcolumn>

You should start a new thread, this is getting confusing.

Edit Note: The Ratings column allows you to change ratings on the fly with your mouse.
You may find the status column useful, but it won't change your metadata and I don't know if it is possible to make an evaluator column that uses rating metadata and then displays status rating icons.

1 Like

You're right about that not being pretty.
Is the 0 (zero) the star character index? If you could sneak in a Google emoji clock icon or something that would look better.

But I realized my error; that we only have one ratings metadata field to work with. And I want to keep using ratings, so I'm going to go with reading tags if I can. Thanks for the help so far.

Here's the new thread: