Page 8 of 8

Re: New Columns

Posted: 15 Feb 2014 17:48
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.

Re: New Columns

Posted: 16 Feb 2014 08:41
by admin
Agreed.

Re: New Columns

Posted: 17 Feb 2014 14:32
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:

Re: New Columns

Posted: 17 Feb 2014 19:27
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).

Re: New Columns

Posted: 17 Feb 2014 20:52
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.

Re: New Columns

Posted: 17 Feb 2014 21:58
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. :)

Re: New Columns

Posted: 17 Feb 2014 22:27
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'.