admin wrote:I'd rather remove that command. Who needs it anyway?
I don't but removing it entirely seems a bit drastic. Maybe just remove it from the UI and demote the ID to Miscellaneous?
Would a ListColumns SC also be too difficult and out of the question?
I was thinking something similar to Toolbar():
Code: Select all
+ Scripting got a new function.
Name: listcolumns
Action: Customizes the list's columns.
Syntax: listcolumns([columns], [action=0], [flags=0])
columns: [optional] comma-separated list of column names.
May optionally include the column width (in pixels) as 'Name.Width'.
"*" = All columns.
"" = Default columns.
Omitted = Make no changes - only return current columns.
action: [optional]
0 = [Default] Set the displayed column(s) to those specified,
replacing existing configuration.
1 = Add the specified column(s) to the right of current.
Note some columns are anchored to the left of the list (#, Thumbs).
2 = Hide the specified column(s).
flags: [optional]
0 = Strip column widths. [Default]
1 = Append column widths to names, separated by a period.
return: the currently (old) displayed columns.
Examples:
// displays the currently displayed columns:
text listcolumns();
// displays the currently displayed columns and their widths:
text listcolumns(,,1);
// shows only the name column
listcolumns("Name");
// adds the size column with a width of 75 pixels.
listcolumns("Size.75", 1);
// removes the size column.
listcolumns("Size", 2);
// resets columns to default
listcolumns("", 0);
Remarks:
With a little simple scripting you can now write your own
Column Sets Manager and have as many different custom column sets as
you like, selectable e.g. from a popup menu.
I would think some of the users that love details view would find this extremely useful to quickly change between different sets of columns - and it would make it relatively easy to replace the "Show All Columns" with a short-term toggle.