Text File Preview tabstop

Features wanted...
DennisT
Posts: 21
Joined: 25 Nov 2019 17:43

Text File Preview tabstop

Post by DennisT »

I deal with a lot of code files and they're all written with tabstop=4 instead of the traditional 8. It would be nice if I could set the tabstop to 4. Tabstop as in a tab appears as 8 characters(current preview) or 4 characters (wish). EG in vim - set tabstop=4

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

Re: Text File Preview tabstop

Post by jupe »

Configuration | Preview | Preview | Text preview | Display Tabs as spaces

DennisT
Posts: 21
Joined: 25 Nov 2019 17:43

Re: Text File Preview tabstop

Post by DennisT »

Thanks, but I already tried that. It doesn't work the same.

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

Re: Text File Preview tabstop

Post by admin »

Configuration | Preview | Preview | Text preview | Display Tabs as spaces should work! Where exactly does it not work?

DennisT
Posts: 21
Joined: 25 Nov 2019 17:43

Re: Text File Preview tabstop

Post by DennisT »

Screenshots (:
Default XYP preview:
XY_Default.jpg
XYP w/tabs as 4 spaces:
XY_TABas4spaces.jpg
Vim with tabstop=4:
Vim_ts4.jpg
Vim showing actual characters:
Vim_Actual.jpg
* the $ at the end of each line indicates the end of the line (usually CR+LF), ^I = tab.
You do not have the required permissions to view the files attached to this post.
Last edited by DennisT on 09 Jun 2022 20:15, edited 1 time in total.

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

Re: Text File Preview tabstop

Post by admin »

See image
You do not have the required permissions to view the files attached to this post.

DennisT
Posts: 21
Joined: 25 Nov 2019 17:43

Re: Text File Preview tabstop

Post by DennisT »

Thanks. post corrected.

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

Re: Text File Preview tabstop

Post by admin »

Can you send me that file?

DennisT
Posts: 21
Joined: 25 Nov 2019 17:43

Re: Text File Preview tabstop

Post by DennisT »

How would I do that? I tried in your PM system but it only takes a few weird file formats, not txt.

Horst
Posts: 1374
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Text File Preview tabstop

Post by Horst »

The board accepts drag and drop of zip files for example.
Windows 11 Home, Version 25H2 (OS Build 26200.8457)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1412b (x64), Everything Toolbar 2.3.0, Listary Pro 6.3.6.99

DennisT
Posts: 21
Joined: 25 Nov 2019 17:43

Re: Text File Preview tabstop

Post by DennisT »

zip of text file attached.
You do not have the required permissions to view the files attached to this post.

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

Re: Text File Preview tabstop

Post by admin »

These columns can only be displayed properly aligned if the file is interpreted as a CSV file (commas matter here!). XY can't, and in my opinion it's asking too much of a file manager.

BTW, also File Explorer (Win8.1 at least) cannot do it right.

Horst
Posts: 1374
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Text File Preview tabstop

Post by Horst »

You can use a free Tool like Universal Viewer which displays your file fine.
It also allows you to use all Total Commander Lister plugins.
http://www.uvviewsoft.com/uviewer/download.htm
Windows 11 Home, Version 25H2 (OS Build 26200.8457)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1412b (x64), Everything Toolbar 2.3.0, Listary Pro 6.3.6.99

DennisT
Posts: 21
Joined: 25 Nov 2019 17:43

Re: Text File Preview tabstop

Post by DennisT »

admin wrote: 10 Jun 2022 09:18 These columns can only be displayed properly aligned if the file is interpreted as a CSV file (commas matter here!). XY can't, and in my opinion it's asking too much of a file manager.

BTW, also File Explorer (Win8.1 at least) cannot do it right.
I'm confused. It is a text file with a txt extension. Are you saying XYP interprets it as a CSV because it happens to have tabs and commas in it?

I'd forgotten about Win File Explorer. My workstation is a Win 10. Here's what it shows:
WinExpl_Default.jpg
You do not have the required permissions to view the files attached to this post.

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

Re: Text File Preview tabstop

Post by admin »

No, I'm saying the tabs aren't enough for what you want, actually they're irrelevant. It's the commas that define the columns. XY does not support this kind of view.

Post Reply