Hello,
middle truncation comes extremely handy to me, but to make it even more useful, would like to have Custom Toolbar Button, to be able to quickly switch to and from the truncation. Is there a #xxx command that I could use to (hopefully) make me one, or would anyone have a script solution?
Regards Emil
Middle truncation toggle?
Re: Middle truncation toggle?
Scripting has a command which supports a subset of XYplorer's settings, but not Truncate filenames in the middle.
There is no command ID for this setting, unfortunately.
Code: Select all
setting
There is no command ID for this setting, unfortunately.
Re: Middle truncation toggle?
Here is a little script which maybe what you are looking for.
Only drawback it has to do a restart ,on my m/c takes approx 5 secs.
Only drawback it has to do a restart ,on my m/c takes approx 5 secs.
-
- Site Admin
- Posts: 63451
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Middle truncation toggle?
Thanks for the script!
When the 64-bit version is finished, remind me to add this feature. I like it.

When the 64-bit version is finished, remind me to add this feature. I like it.
FAQ | XY News RSS | XY Bluesky
Re: Middle truncation toggle?
Was interested by viewtopic.php?f=3&t=21944&sid=420b1aba0 ... 12f346d065 found that toggle only works on 'Name' column
-
- Site Admin
- Posts: 63451
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Middle truncation toggle?
Next version:
Code: Select all
+ Scripting got a new command.
Name: MiddleTruncation
Action: Sets middle truncation in the Name column of the file list.
Syntax: middletruncation [value]
value 0 = turn off
1 = turn on
missing or empty: toggle
Remarks: Corresponds to the setting Configuration | Colors and Styles |
Styles | Truncate filenames in the middle.
Examples:
middletruncation; //toggle
middletruncation 0; //off
middletruncation 1; //on
FAQ | XY News RSS | XY Bluesky