Middle truncation toggle?

Discuss and share scripts and script files...
Post Reply
Kucera
Posts: 108
Joined: 31 Mar 2008 01:37
Location: Canada
Contact:

Middle truncation toggle?

Post by Kucera »

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

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Middle truncation toggle?

Post by nas8e9 »

Scripting has a

Code: Select all

setting
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.

mazot
Posts: 43
Joined: 20 Apr 2020 23:19

Re: Middle truncation toggle?

Post by mazot »

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.
MidTruncate.xys
(249 Bytes) Downloaded 129 times

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Middle truncation toggle?

Post by admin »

Thanks for the script! :tup:

When the 64-bit version is finished, remind me to add this feature. I like it.

mazot
Posts: 43
Joined: 20 Apr 2020 23:19

Re: Middle truncation toggle?

Post by mazot »

Was interested by viewtopic.php?f=3&t=21944&sid=420b1aba0 ... 12f346d065 found that toggle only works on 'Name' column

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Middle truncation toggle?

Post by admin »

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

Post Reply