I see :-) However, shouldn't be the caption also centered in the checkbox column? Would be more uniform.admin wrote:Changed my mind.
New Columns
-
LittleBiG
- Posts: 1848
- Joined: 08 Apr 2011 12:57
- Location: Win10x64
Re: New Columns
-
admin
- Site Admin
- Posts: 66351
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: New Columns
It was a good one.. I'm all rested and ready to cause more havoc.admin wrote:Enjoy the weekend!
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);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.
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.
-
admin
- Site Admin
- Posts: 66351
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: New Columns
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).
And, yes, I'll add a safety belt (although it would be exactly what they deserved).
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66351
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: New Columns
Yep, agreed.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.
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66351
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: New Columns
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.
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.
FAQ | XY News RSS | XY X
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: New Columns
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:Note the extra '|' between 'Column' and '5'.
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|||||');
XYplorer Beta Club