Page 1 of 3
Text File Preview tabstop
Posted: 08 Jun 2022 20:03
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
Re: Text File Preview tabstop
Posted: 09 Jun 2022 02:25
by jupe
Configuration | Preview | Preview | Text preview | Display Tabs as spaces
Re: Text File Preview tabstop
Posted: 09 Jun 2022 03:23
by DennisT
Thanks, but I already tried that. It doesn't work the same.
Re: Text File Preview tabstop
Posted: 09 Jun 2022 09:41
by admin
Configuration | Preview | Preview | Text preview | Display Tabs as spaces should work! Where exactly does it not work?
Re: Text File Preview tabstop
Posted: 09 Jun 2022 16:47
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.
Re: Text File Preview tabstop
Posted: 09 Jun 2022 20:07
by admin
See image
Re: Text File Preview tabstop
Posted: 09 Jun 2022 20:16
by DennisT
Thanks. post corrected.
Re: Text File Preview tabstop
Posted: 09 Jun 2022 21:23
by admin
Can you send me that file?
Re: Text File Preview tabstop
Posted: 09 Jun 2022 21:48
by DennisT
How would I do that? I tried in your PM system but it only takes a few weird file formats, not txt.
Re: Text File Preview tabstop
Posted: 09 Jun 2022 21:53
by Horst
The board accepts drag and drop of zip files for example.
Re: Text File Preview tabstop
Posted: 09 Jun 2022 22:14
by DennisT
zip of text file attached.
Re: Text File Preview tabstop
Posted: 10 Jun 2022 09:18
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.
Re: Text File Preview tabstop
Posted: 10 Jun 2022 12:24
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
Re: Text File Preview tabstop
Posted: 10 Jun 2022 16:28
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
Re: Text File Preview tabstop
Posted: 10 Jun 2022 17:11
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.