Text File Preview tabstop

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

Re: Text File Preview tabstop

Post by DennisT »

If I remove the commas it behaves exactly the same.

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

Re: Text File Preview tabstop

Post by admin »

No way. Count the tabs and the spaces, it cannot work.

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

Re: Text File Preview tabstop

Post by DennisT »

??? There are no spaces in the file. I can generate all the screenshots + text file without the commas if that'll help.

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

Re: Text File Preview tabstop

Post by admin »

I meant the spaces after the tabs are converted to spaces. It just does not work that way.

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

Re: Text File Preview tabstop

Post by Horst »

The Universal Viewer together with the CudaLister TC Plugin show it like this:
Screenshot - 10.06.2022 , 19_39_25.png
To see the attached files, you need to log into the forum.
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 »

Horst wrote: 10 Jun 2022 12:24 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
Can this be used as the viewer in XYP?

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Text File Preview tabstop

Post by highend »

Only as an external viewer but ofc you could use it via a CFA (custom file association)
One of my scripts helped you out? Please donate via Paypal

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

Re: Text File Preview tabstop

Post by Horst »

DennisT wrote: 10 Jun 2022 19:55
Horst wrote: 10 Jun 2022 12:24 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
Can this be used as the viewer in XYP?
Only by making a button to start it with the current file like a floating preview
or by making a context menu entry for it.
While you are viewing one file it provides buttons for next and previous file in the current dir.
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

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

Re: Text File Preview tabstop

Post by admin »

If File Explorer can show it alright on your system, you might just add (and check) the txt extension to Office Files in Configuration | Preview | Previewed Formats | Categories. Then don't forget uncheck txt in the Text Files category right above Office Files. Then the preview should just work.
To see the attached files, you need to log into the forum.

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Text File Preview tabstop

Post by PeterH »

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.
Hello Don,
it seems there are 2 ways how tabs *can* be interpreted:
1) a tab represents just a defined number of blanc chars
2) a tab inserts blancs up to the next column being a multiple of the tab amount.
(Last is nearest to old typewriters: a tab defines a column, not an amount of space.)

All programs (i.e. editors) I know use the form 2), while you seem to use 1).

I use tabs also for .xys-files - the editors show it as I expect, while XY-preview shows it misaligned.
So I, and it seems others too, would like it in form 2).
Is there a reason for you to use form 1)?

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

Re: Text File Preview tabstop

Post by admin »

I still don't understand 2). Can you explain the logic in more detail?

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Text File Preview tabstop

Post by PeterH »

For Tabs = 4:
if current column (i.e. the col the tab is in) is 1 to 4, a tab moves to col 5
if curr is 5 to 8, a tab moves to col 9
and so on.

I see: I wasn't exact in prev post: each tab moves the current pos to the next column with number n*tab+1 (Leftmost col = 1)

edit: define "current column"

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

Re: Text File Preview tabstop

Post by admin »

Okay, but that would require line-by-line parsing. Even my Editors EmEditor and Notepad++ don't do it. Too much for a file manager.

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

Re: Text File Preview tabstop

Post by admin »

I changed my mind about it. Next beta it will work as expected. Was fun to write it. :beer:

PS: I was wrong about the commas. :ninja:

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Text File Preview tabstop

Post by PeterH »

Very fine :tup:

Thanks!

Post Reply