I use "Type" as primary sort and "Name" as secondary sort and I have configured the Folder Format accordingly. Now I want to remove the Type column to free some space but I want to keep the sort by Type as primary sort. Is it possible to do so? Thanks in advance.
There’s no way to sort by a column that isn’t shown, other than grouping by it.
But the Name column has a special mode where it first sorts by extension. Hold shift while clicking the Name column header to access it and cycle through the modes.
(Try Ctrl if Shift doesn’t work. I’m not at my PC and writing from memory.)
You could use a modified Name column that employs its own sort order:
XML
<?xml version="1.0"?>
<evalcolumn align="0" attrrefresh="no" autorefresh="no" customgrouping="no" foldertype="all" keyword="name+" maxstars="5" namerefresh="no" reversesort="no" title="name+" type="0">operation == "sort" ? type + name : name</evalcolumn>
Thanks @lxp . You never run out of ideas. Unfortunately, I am facing two problems when I try your suggested method. Firstly it is not possible to remove the "Name" column, although I overcame it by specifying its width at 1 pix. Secondly and most importantly the evaluator Name column doesn't show the files and folder icons.
Instead of deleting the Name column, I added the evaluator "Name+" column and set its width 1 pixel. Now it works as I wanted. Thanks @lxp once again.
Ixp.. I have one request, please give some short explanation to whatever code you provide. This way we can also learn the logic behind your code and hopefully new users like me will also be able to do some simple coding in future.