New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement - Address and type columns regarding network #540
Comments
Script for Type Add-on: Run at Setup Type Options ColumnsReplace(te, "{B725F130-47EF-101A-A5F1-02608C9EEBAC} 4", HDF_LEFT, function (FV, pid, s) {
if (!s) {
const path = pid.Path;
if (/^ftp:/i.test(path)) {
return GetTextR("@msieftp.dll,-287");
}
if (/^\\\\\w/i.test(path)) {
return GetTextR("@utildll.dll,-201");
}
}
}); Regards, |
I have added the ability to sort into scripts. $ExtendedTypeProperty = function (FV, pid, s) {
const path = pid.Path;
if (/^ftp:/i.test(path)) {
return GetTextR("@msieftp.dll,-287");
}
if (/^\\\\[^\\]+$|^\\\\[^\\]+\\[^\\]+$/i.test(path)) {
return GetTextR("@utildll.dll,-201");
}
}
ColumnsReplace(te, "{B725F130-47EF-101A-A5F1-02608C9EEBAC} 4", HDF_LEFT, $ExtendedTypeProperty);
AddEvent("ColumnClick", function (Ctrl, iItem) {
const cColumns = api.CommandLineToArgv(Ctrl.Columns(2));
if (cColumns[iItem * 2] == "{B725F130-47EF-101A-A5F1-02608C9EEBAC} 4") {
Ctrl.SortColumn = Ctrl.GetSortColumn(1) == "System.ItemTypeText" ? "-System.ItemTypeText" : "System.ItemTypeText";
return S_OK;
}
});
AddEvent("Sorting", function (Ctrl, Name) {
if (/^\-?System\.ItemTypeText$/i.test(Name) && api.ILIsEqual(FV.FolderItem.Alt, ssfRESULTSFOLDER)) {
CustomSort(Ctrl, 'System.ItemTypeText', /^\-/.test(Name),
function (pid, FV) {
return pid.ExtendedProperty("{B725F130-47EF-101A-A5F1-02608C9EEBAC} 4") || $ExtendedTypeProperty(FV, pid) || "";
},
function (a, b) {
return api.StrCmpLogical(b[1], a[1]);
}
);
return true;
}
}); Regards, |
I have tried TE 22.1.21, the context menu problem is solved. I tried the above script but sorting did not work correctly, due to the type override. I amended the function to make it work:
|
I have tried "Path column" add-on focusing on 5 useful columns. This is a summary of the test results: "Path column" 1.02 has some problems in "Type" column. Besides, "Folder path" column should be "System.ItemFolderPathDisplay", NOT "System.ItemFolderPathDisplayNarrow". This is the result of my patched version of "Path column" 1.02. "Type" column is now correct. Please help to update "Path column" add-on based on my patch.
Regards, |
If a network path is entered for navigation, some address and type columns will be empty for
Please enhance TE so that these columns are available for sorting and column filtering (blue text below), especially in result lists. Thanks.
Please note that if the same path is navigated through a "Network Shortcut", the columns will be available and can be retained.
The text was updated successfully, but these errors were encountered: