I assume, that FAR does not support this feature. It would be nice to have customized sorting rules of files/folders in panel. E. g. in Czech languge letter CH is between H and I, but FAR is positioning files/folder beginning with CH between C and D.
Correct sorting in Czech: Adolf, Benedikt, Cyril, Dalibor, Erik, Filip, Gustav, Havel, Chajim, Igor
Incorrect sorting by FAR: Adolf, Benedikt, Chajim, Cyril, Dalibor, Erik, Filip, Gustav, Havel, Igor
Customized sorting of files/folders in panel
Trim x characters on panel from left
Hi all,
I was searching for a method to trim 15 character and hide them from the file name column on far manager panel.
For example I've these folders in a directory:
I need to order these folders by "Name" by excluding the first 15 charatcters that compose the folder name
so the displayed content on "Name" column will display like this without the date - an so can be ordered
corectly by name:
Can be achieved a function like this? In panel layout configuration i've not found a "hide frist x char" modifier to use...
Thanks in advance...
Later
KtW
I was searching for a method to trim 15 character and hide them from the file name column on far manager panel.
For example I've these folders in a directory:
I need to order these folders by "Name" by excluding the first 15 charatcters that compose the folder name
so the displayed content on "Name" column will display like this without the date - an so can be ordered
corectly by name:
Can be achieved a function like this? In panel layout configuration i've not found a "hide frist x char" modifier to use...
Thanks in advance...
Later
KtW
Last edited by KtW on Thu 01 Jan, 1970 01:00, edited 0 times in total.
Reason: [spoiler]
Reason: [spoiler]
-
- Posts: 6820
- Joined: Thu 23 Mar, 2006 21:36
- Location: Israel
- Has thanked: 41 times
- Been thanked: 528 times
Re: Trim x characters on panel from left
As far as I know, there's no option to hide some characters from being displayed.KtW wrote:Can be achieved a function like this? In panel layout configuration i've not found a "hide frist x char" modifier to use...
If all you need is sorting panel entries according to your arbitrary criteria, then it can be achieved, though not easy: one is expected to know LuaJIT FFI programming.
Attached is an example of such custom sorting, corresponding to your criteria (as I understand it). Unpack this file to your
%farprofile%\Macros\scripts
folder and restart Far. Then pressing CtrlShiftF3 will invoke that sorting.
Re: Customized sorting of files/folders in panel
Thanks Shmuel! I'm so happy!
Your script worked like a charm for me with offset 13!
Alone I would not have ever made!