Lister: Tabs in text files
Moderators: Hacker, petermad, Stefan2, white
Lister: Tabs in text files
Tabs in text files are always accounted for a with of 8. It would be great if this could be configured!
A bug occurs with line length for wrapping - here, tabs are accounted for 1 char, which leads to problems if the line end shall be shown. The visible area is calculated wrongly.
(So this is actually a bug and a feature request!)
A bug occurs with line length for wrapping - here, tabs are accounted for 1 char, which leads to problems if the line end shall be shown. The visible area is calculated wrongly.
(So this is actually a bug and a feature request!)
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Unfortunately TC would have to read the entire file to find out the length of the longest line. Therefore it isn't done.A bug occurs with line length for wrapping - here, tabs are accounted for 1 char, which leads to problems if the line end shall be shown. The visible area is calculated wrongly.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Good question indeed. I didn't know there was an ini option for it (and i automatically assumed there wasn't - my mistake). It should be in the Options.Valentino wrote:2JFierce7
From help:What I don't understand is why it's not in the Options (it should be configured manually in the INI file)[Lister]
TabWidth Width of tabstops (default: 8 )
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Lister's Options dialog is quite small (and too dense in my opinion) so it can be easily increased to hold several additional settings that are currently set via INI file only.
BTW, "Load bitmaps as graphics at startup" (BmpStartup) also enables/disables plugins at startup. I think it should be mentioned both on dialog and in Help. E.g. "Show bitmaps or activate plugins at startup".
BTW, "Load bitmaps as graphics at startup" (BmpStartup) also enables/disables plugins at startup. I think it should be mentioned both on dialog and in Help. E.g. "Show bitmaps or activate plugins at startup".
So it's actually because Lister doesn't care that a Tab is a Tab in this context?ghisler(Author) wrote:Unfortunately TC would have to read the entire file to find out the length of the longest line. Therefore it isn't done.
Okay, however, what I don't understand is, that you need to know the Tabs for displaying the lines. Couldn't this information be used then in wrapping? Only the line lengths in the visible buffer are needed, aren't they?