Page 1 of 1

comparing files with TABs

Posted: 2009-06-26, 18:26 UTC
by uffe_K
When I compare files by content and there are TABs in them, each TAB is expanded to 8 spaces. With multiple TABs that mean all the actual text is way off the screen to the right. Could this be changed to TAB = 1 or 2 spaces? Or turn it into a setting?

YEP !

Posted: 2009-06-26, 19:23 UTC
by Clo
2uffe_K

:) Again… …

I support as an INI entry prior, like I showed in your OTHER THREAD.
- It seems it's too late for a GUI option, because it needs translations,
moreover the dialogue-box is full to bursting, it should need a redesign…

:mrgreen: KR
Claude
Clo

Re: comparing files with TABs

Posted: 2009-06-26, 20:05 UTC
by HolgerK
uffe_K wrote:When I compare files by content and there are TABs in them, each TAB is expanded to 8 spaces. With multiple TABs that mean all the actual text is way off the screen to the right. Could this be changed to TAB = 1 or 2 spaces? Or turn it into a setting?
:roll: Strange, works fine here since years with:
Wincmd.ini wrote:[Lister]
TabWidth=4
for both "Lister" and "Compare content".

Regards
Holger

Kaputt

Posted: 2009-06-26, 20:28 UTC
by Clo
2HolgerK

:) Hello !

• I checked here with 5 as the TAB width in Lister, that doesn't work, i.e. I've 10 pixels
(8 default+2 as normal letters spacing) while I would get 7 pixels…
- I made a screen-shot >> Blown up ×16 with a 1-pixel grid mesh…
- Same in Lister and Compare with 7.5 ß-6
:?:

:mrgreen: VG
Claude
Clo

Posted: 2009-06-26, 20:34 UTC
by uffe_K
Indeed it works now. Perhaps I didn't restart TCMD properly when I tested before.

Posted: 2009-06-26, 21:00 UTC
by HolgerK
2Clo
I checked here with 5 as the TAB width in Lister, that doesn't work...
Do you use a variable or a fixed width font?
I guess you can't control the tab width correctly for variable fonts by counting pixels and comparing them with average character distances.

Regards
Holger

Dina

Posted: 2009-06-26, 22:55 UTC
by Clo
2HolgerK


:) Again…

• The font used in my tests is Dina, so a fixed font…
- Please, see THIS IMAGE (×16) where the blue "5 pixels" are the setting for one tab,
while the spacing is at least too wide by 1 pixel (red¦cream hatched).

:mrgreen: VG
Claude
Clo

Posted: 2009-06-26, 23:48 UTC
by HolgerK
Hello Clo,

May i point you to the fact that the twiggy f is the owner of the pixel :wink:

Regards
Holger

Re: comparing files with TABs

Posted: 2020-02-08, 11:50 UTC
by browny
After so many years Lister's parameter TabWidth could not make it into Options dialog.
But help file easily could mention that this same setting also affects "Compare by Content" tool.
Currently help line in [Lister] section tells only this:

Code: Select all

TabWidth=8 Width of tabstops (default: 8)