Page 4 of 16

Re: Custom Columns

Posted: 07 Mar 2014 17:58
by SkyFrontier
I just can't tell the differences among indentation and CRLF.
Pilcrow or anything else.
Please.

Re: Custom Columns

Posted: 07 Mar 2014 18:01
by admin
Don't really understand. It's only one line anyway, isn't it?

Re: Custom Columns

Posted: 07 Mar 2014 18:07
by Marco
Well, the pilcrow is universally recognized as a CRLF pair and you can't type (easily) a pilcrow with a keyboard, ergo they really mean a newline.
A double space can be intentional as a mean, as SkyFrontier says, of indentation, or just a typo, ergo they don't fully convey the sense of newline.

0.02£

Re: Custom Columns

Posted: 07 Mar 2014 18:11
by kunkel321
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
Would you be willing to take payment in the form of a dinosaur picture?
Image
I'm also willing to make a cash contribution--but I can't go over two digits.... And the first digit has to be a "0" or a "1." :wink:
TheQwerty wrote: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.
No need for either of you to burn much time on this... It's low priority for me, and admittedly, I might be the only XY user out here who ever even cares how many icons are in a resource file... :)

Re: Custom Columns

Posted: 07 Mar 2014 18:54
by admin
Oh, I love the dinosaur! You will get your thing, it's just a one-liner for me (but a giant leap for kunkel321)... :biggrin:

Re: Custom Columns

Posted: 07 Mar 2014 21:44
by admin
Done! :cup:

Example definition for a Custom Column of type Template:

Code: Select all

<get counticons "<cc_item>">

Re: Custom Columns

Posted: 07 Mar 2014 22:43
by kunkel321
admin wrote:Done! :cup:
Woo hoo! It works like a charm--many thanks! :biggrin: Let me know if you're ever in the Seattle area... Coffee's on me! :cup: :biggrin:

Re: Custom Columns

Posted: 08 Mar 2014 09:51
by admin
Cool, coffee in Seattle is on my todo list anyway. :)

Re: Custom Columns

Posted: 08 Mar 2014 16:37
by binocular222
Why this not work?
Type:Script

Code: Select all

if(strpos("|doc|docx|xls|xlsx|xlsm|", "|<curext>|") != -1) 
{return property("DocLastAuthor")}
The column shows nothing.
echo property("DocLastAuthor") does show-up values
Tested in ::fresh

Re: Custom Columns

Posted: 08 Mar 2014 17:04
by LittleBiG
I have just tried to enter a folder with 375 images. There is a custom column with a template <prop #12> (<prop #31>). Picture info: Date taken (Dimensions). Entering this folder took about 10-11 seconds. Wouldn't be useful to have an option for not creating all custom column value in one go, but only visible ones, similarly to the thumbnails?

Re: Custom Columns

Posted: 08 Mar 2014 18:04
by admin
LittleBiG wrote:I have just tried to enter a folder with 375 images. There is a custom column with a template <prop #12> (<prop #31>). Picture info: Date taken (Dimensions). Entering this folder took about 10-11 seconds. Wouldn't be useful to have an option for not creating all custom column value in one go, but only visible ones, similarly to the thumbnails?
Probably. Even Explorer itself uses this strategy. The exception is the sorted column where all value have to be created to get the sorting right.

However, I see a better way, at least for your case: Date taken and Dimensions are probably THE two properties that most people will want to see for their picture. Both are easy to retrieve for me (=XY), so I can bypass the slow shell by adding two more special properties (<prop>).

Re: Custom Columns

Posted: 08 Mar 2014 19:56
by LittleBiG
admin wrote:However, I see a better way, at least for your case: Date taken and Dimensions are probably THE two properties that most people will want to see for their picture. Both are easy to retrieve for me (=XY), so I can bypass the slow shell by adding two more special properties (<prop>).
Thanks, I would welcome the new props. And probably you are right, others too.

Re: Custom Columns

Posted: 09 Mar 2014 08:37
by admin
binocular222 wrote:Why this not work?
Type:Script

Code: Select all

if(strpos("|doc|docx|xls|xlsx|xlsm|", "|<curext>|") != -1) 
{return property("DocLastAuthor")}
The column shows nothing.
echo property("DocLastAuthor") does show-up values
Tested in ::fresh
Should work with v13.80.0108, right?

Re: Custom Columns

Posted: 09 Mar 2014 10:09
by binocular222
Not work with 13.80.0108
Besides, there're a lot of other bugs that make Custom Column unusable (i.e reset tree make CC disappear). It's due to my settings (not happens in ::fresh). Therefore, I request user.ini yesterday http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=11216
Please consider this request.

Re: Custom Columns

Posted: 09 Mar 2014 11:28
by admin
admin wrote:
binocular222 wrote:Why this not work?
Type:Script

Code: Select all

if(strpos("|doc|docx|xls|xlsx|xlsm|", "|<curext>|") != -1) 
{return property("DocLastAuthor")}
The column shows nothing.
echo property("DocLastAuthor") does show-up values
Tested in ::fresh
Should work with v13.80.0108, right?
DocLastAuthor? Where in the XY Help is written that this is supported? :P It might work on some systems, but as I said before: keywords here are unreliable due to MS's unexisting documentation. You should use the numeric indices offered in the "Select Property" list.