New Columns

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: New Columns

Post by LittleBiG »

admin wrote:Changed my mind. :)
I see :-) However, shouldn't be the caption also centered in the checkbox column? Would be more uniform.

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

Re: New Columns

Post by admin »

Agreed.

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

Re: New Columns

Post by TheQwerty »

admin wrote:Enjoy the weekend! :beer:
It was a good one.. I'm all rested and ready to cause more havoc. :twisted:

TagItems is fantastic, except for one tricky issue related to the checkbox type and using a number for field. From a fresh XY run the following:

Code: Select all

::$c =1;ExtraTag($c,'Check|3|0|0|||||');Sel 2;Echo TagItems($c,1);Echo TagItems($c);
The second echo dialog should show '1' but it is blank.

If you repeat it with a different value for $c it should work properly - as it does if you change the TagItems to use 'ex$c' or 'ex:Check'. I'm not entirely sure what's going on there. :veryconfused:



Unrelated to TagItems, except that it revealed the issue to me, do you really want the Pop-Up List type to be case sensitive? In normal use it's slightly more difficult to add items to the list but with scripting it's not difficult to use 'awesome' when your list contains 'Awesome'. That shouldn't cause any real problems but it means the context-menu list doesn't show a bullet next to 'Awesome' which is slightly less-so.

EDIT: A curious user who deletes any lines from their "Extra Tags:" section of tag.dat might be dismayed to learn that XY will treat the tagged items under data as their extra tags. Then again that might be what they deserved. :whistle:

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

Re: New Columns

Post by admin »

Thanks, that was a curious bug (classic case of copy + paste negligence). Fix comes.

And, yes, I'll add a safety belt (although it would be exactly what they deserved).

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

Re: New Columns

Post by admin »

TheQwerty wrote:Unrelated to TagItems, except that it revealed the issue to me, do you really want the Pop-Up List type to be case sensitive? In normal use it's slightly more difficult to add items to the list but with scripting it's not difficult to use 'awesome' when your list contains 'Awesome'. That shouldn't cause any real problems but it means the context-menu list doesn't show a bullet next to 'Awesome' which is slightly less-so.
Yep, agreed.

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

Re: New Columns

Post by admin »

While Permanent Custom Sort Order is still on my list and will come one day, I just saw that something very similar is now pretty easily achievable.

Create a column of type number called "Sort", and write a script that fills the "Sort" column with the current line numbers.

Then do your manual sorting, then use your script. Voila, the Permanent Custom Sort Order is always at hand by sorting the folder by the Sort column. Hey, you could even create 5 Sort columns for 5 different sort orders. :)

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

Re: New Columns

Post by TheQwerty »

Within the CEC dialog, neither column caption nor pop-up list protect against the user entering '|'.
This isn't problematic until the next time the user starts XY and discovers that their definition has been blown away.

This is also partially true for ExtraTag if the user gives a full definition:

Code: Select all

::ExtraTag(ex1, 'Column||5|0|0|A;B;C;D;E|||||');
Note the extra '|' between 'Column' and '5'.

Post Reply