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?
-
Kucera
- Posts: 108
- Joined: 31 Mar 2008 01:37
- Location: Canada
- Contact:
-
nas8e9
- Posts: 2232
- Joined: 21 Jun 2008 14:50
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
settingThere is no command ID for this setting, unfortunately.
-
mazot
- Posts: 48
- Joined: 20 Apr 2020 23:19
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.
To see the attached files, you need to log into the forum.
-
admin
- Site Admin
- Posts: 66254
- 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 X
-
mazot
- Posts: 48
- Joined: 20 Apr 2020 23:19
Re: Middle truncation toggle?
Was interested by viewtopic.php?f=3&t=21944&sid=420b1aba0 ... 12f346d065 found that toggle only works on 'Name' column
-
admin
- Site Admin
- Posts: 66254
- 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 X
XYplorer Beta Club