Text File Preview tabstop
-
DennisT
- Posts: 21
- Joined: 25 Nov 2019 17:43
Re: Text File Preview tabstop
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
No way. Count the tabs and the spaces, it cannot work.
FAQ | XY News RSS | XY X
-
DennisT
- Posts: 21
- Joined: 25 Nov 2019 17:43
Re: Text File Preview tabstop
??? 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
I meant the spaces after the tabs are converted to spaces. It just does not work that way.
FAQ | XY News RSS | XY X
-
Horst
- Posts: 1374
- Joined: 24 Jan 2021 12:27
- Location: Germany
Re: Text File Preview tabstop
The Universal Viewer together with the CudaLister TC Plugin show it like this:
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
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
Can this be used as the viewer in XYP?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
-
highend
- Posts: 14925
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Text File Preview tabstop
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
Only by making a button to start it with the current file like a floating previewDennisT wrote: ↑10 Jun 2022 19:55Can this be used as the viewer in XYP?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
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
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
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.
FAQ | XY News RSS | XY X
-
PeterH
- Posts: 2827
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Text File Preview tabstop
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
I still don't understand 2). Can you explain the logic in more detail?
FAQ | XY News RSS | XY X
-
PeterH
- Posts: 2827
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Text File Preview tabstop
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"
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
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.
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66097
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Text File Preview tabstop
I changed my mind about it. Next beta it will work as expected. Was fun to write it. 
PS: I was wrong about the commas.
PS: I was wrong about the commas.
FAQ | XY News RSS | XY X
-
PeterH
- Posts: 2827
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Text File Preview tabstop
Very fine 
Thanks!
Thanks!
XYplorer Beta Club