Custom Columns

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

Re: Custom Columns

Post by admin »

This would be a lot of work. What's so bad about "00:00:00" ?

Filehero
Posts: 2717
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Custom Columns

Post by Filehero »

admin wrote:This would be a lot of work. What's so bad about "00:00:00" ?
It is simply not providing any relevant information; moreover, it somewhat detracts from the focus.

I hope the following example (work in progress) helps making my wish more reproducable.
track_view.png
track_view.png (38.58 KiB) Viewed 2312 times
But maybe it can already be achieved with the CC options available?


Filehero

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

Re: Custom Columns

Post by admin »

I don't think it's possible now.

Maybe a better way would be to have "Sorting" (Text, Numeric, Date) as an independent parameter in the "Configure Custom Column" dialog. Then you could format the output in a script and let XY sort it as date. But again, a lot of work. No time now.

Filehero
Posts: 2717
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Custom Columns

Post by Filehero »

admin wrote:I don't think it's possible now.

Maybe a better way ... But again, a lot of work. No time now.
Appreciated.

My current workaround is a FVS with Autosize Columns off and a col width showing just dd.mm.yyyy...
Im Hop-ing wrote:I have a dream...that some day...
:wink:


Cheers,
Filehero

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

Re: Custom Columns

Post by TheQwerty »

admin wrote:Maybe a better way would be to have "Sorting" (Text, Numeric, Date) as an independent parameter in the "Configure Custom Column" dialog. Then you could format the output in a script and let XY sort it as date. But again, a lot of work. No time now.
My thought on this was add a new field for date format so the user can specify the format pattern - thus allowing them to make it date or time only.

Which seems like it would be about the same amount of work but might be easier for users and documenting.

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

Re: Custom Columns

Post by admin »

Yes, a little less work, but also less powerful.

When I do CC 2.0 I will look into this again.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Custom Columns

Post by bdeshi »

I've got a different issue regarding CC. Let's discuss in this catchall topic.

I think scripted CustomColumns should not be refreshed if the script doesn't have a return cmd.
Additionally, "Refresh Column" shouldn't refresh click-triggered CCs with no return.
This/these will be a safety net feature.
Please! :(

Here's a basic example: (it IS a legal click-triggered CC!)

Code: Select all

//CC script
 openwith "notepad",, <cc_item>;
If it's used as a click-triggered CC, it's not execed upon every location change. But "Refresh Column" will open all items in notepad windows.
And a slightly illegal case: If it's not click-triggered (though it shouldn't be :whistle: ), "Refresh Column" and Navigation both open notepad, notepad, notepad...

Pleeeease!
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: Custom Columns

Post by admin »

I see the problem. But, "with no return" ... that's the hard part. That would mean smart evaluation of script code. Tricky.

And, at the moment, I'm far away from CC development and have no time to dive into it. So I cannot decide now what to do.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Custom Columns

Post by bdeshi »

Ah, alright. I can wait. Meanwhile I have to remember not Refreshing certain columns.


A manual workaround may be a checkbox in the CC config: "Disable auto refresh" ,hm?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: Custom Columns

Post by admin »

Or maybe "Trigger Column" as additional command for Click-Columns, additional to "Refresh Column" (which would just restore the virgin state)?

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Custom Columns

Post by bdeshi »

That's good enough. :)
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: Custom Columns

Post by admin »

Yes, maybe, needs further thinking. When I do CC 2.0 I will look into this again.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Custom Columns

Post by bdeshi »

Looking forward to that! :D
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: Custom Columns

Post by TheQwerty »

SammaySarkar wrote:I've got a different issue regarding CC. Let's discuss in this catchall topic.

I think scripted CustomColumns should not be refreshed if the script doesn't have a return cmd.
Additionally, "Refresh Column" shouldn't refresh click-triggered CCs with no return.
This/these will be a safety net feature.
Please! :(

Here's a basic example: (it IS a legal click-triggered CC!)

Code: Select all

//CC script
 openwith "notepad",, <cc_item>;
If it's used as a click-triggered CC, it's not execed upon every location change. But "Refresh Column" will open all items in notepad windows.
And a slightly illegal case: If it's not click-triggered (though it shouldn't be :whistle: ), "Refresh Column" and Navigation both open notepad, notepad, notepad...

Pleeeease!
I was trying to handle a similar case with the Repeatable Click suggestion.

One trick I recently learned is that ending the whole stack ends it for all rows, so if you changed your script to:

Code: Select all

openwith "notepad",, <cc_item>;
end true;
Then it will work correctly when click-triggered and only open one item when calling Refresh Column.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Custom Columns

Post by bdeshi »

And of course, you're the one to discover that.
Thanks for the irritation minimizer!
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply