Is there a way to force character width to be consistent on filenames?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
human_robot
Posts: 9
Joined: 03 Dec 2019 11:43

Is there a way to force character width to be consistent on filenames?

Post by human_robot »

fit.PNG
fit.PNG (9.94 KiB) Viewed 2785 times
Is there a way to make sure that filenames with the same numbers of characters are aligned? In my example the 'W' on the highlighted line is what make it appear longer, as if I had made a typo in this reference and added an extra character by mistake. Would be nice to be able to spot this kind of thing visually (ie if a filename is longer than the rest there is an extra character). It's probably only the W character that could cause an issue.

Make sense?
I realize it's a feature probably no one but me would use but it's worth asking nevertheless.

RalphM
Posts: 2051
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Is there a way to force character width to be consistent on filenames?

Post by RalphM »

Easy, set XY to use a monospaced font in general - unfortunately this can only be done for the whole interface, not just the name column.
Ralph :)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)

jupe
Posts: 3308
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Is there a way to force character width to be consistent on filenames?

Post by jupe »

You can change the List Pane font to a fixed width font here (eg. Consolas):

Configuration | Colors and Styles | Fonts | Main Contents

Although if your main aim was just to be able to quickly check the count of chars is the same for each item, alternatively you could just add a column like "Len" to the list instead, sorting by this column would allow easily spotting any variances, or maybe use Instant Color FIlters to highlight any differences.

human_robot
Posts: 9
Joined: 03 Dec 2019 11:43

Re: Is there a way to force character width to be consistent on filenames?

Post by human_robot »

Consolas did the trick for me, thank you !

'Len' column would be more useful for me if it counted the length of the filename rather than the full path, even though in that instance it would do the trick too so thank you for bringing it up.

Linkaday
Posts: 387
Joined: 06 Aug 2007 14:40
Location: Hamburg, Germany - Win 11 Home v24H2 x64 1920x1080 (100%)

Re: Is there a way to force character width to be consistent on filenames?

Post by Linkaday »

Use "LenT" instead - that's why Jupe wrote "like "Len"" :wink:

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

Re: Is there a way to force character width to be consistent on filenames?

Post by admin »

Well, there is no column "LenT" but one can make one (called it "Name Length" below to make clear what it does):
Attachments
XYCCNameLength.png
XYCCNameLength.png (9.38 KiB) Viewed 2672 times

Post Reply