dail8859 / ElasticTabstops

Elastic Tabstops plugin for Notepad++
GNU General Public License v2.0
76 stars 16 forks source link

Indentation tabs don't respect tab size specified in Notepad++ settings #8

Closed ExE-Boss closed 7 years ago

ExE-Boss commented 7 years ago

The size of indentation tabs should be what is defined in: Settings > Preferences > Language > Tab Settings > Tab size

dail8859 commented 7 years ago

Can you provide more details (e.g. screenshots, versions, etc)? It works fine for me.

4


8

ExE-Boss commented 7 years ago

It seems to only happen when I change fonts. Plugin version: 1.1 Notepad++ version: 7.3.3

Before:

before switching to a different font

After:

after switching to a different font

dail8859 commented 7 years ago

Can you tell me what you changed exactly and to which font so I can try to reproduce it?

ExE-Boss commented 7 years ago

It happens when changing to any font where there is a visible difference in the space width (the ones in the screenshots are Consolas and Input respectively).

The setting is Settings > Style Configurator > Global Styles > Default Style > Font Note that I have been able to reproduce this only sometimes.

dail8859 commented 7 years ago

This should fix it but I'd like you to verify it works. Download the zip below and extract. Copy the ElasticTabstops.dll file over the current one you have, most likely located in C:\Program Files (x86)\Notepad++\plugins

ElasticTabstops.zip

ExE-Boss commented 7 years ago

It still doesn't work (it only changes the indentation tab size when changing the open document)

dail8859 commented 7 years ago

Would it be possible to zip up a small example text file and the exact font you are using (as it might be a customized version if Input)? I'm not sure if it is just any non-monospaced font or something specific to the Input font.

ExE-Boss commented 7 years ago

It happens with every arbitrary font for me (not just Input)

dail8859 commented 7 years ago

It happens with every arbitrary font for me

Ok good to know. Using the DLL file from above...I set my default font to Times New Roman and this is what it looks like for a tab width of 8

capture

Also to be clear I should state that if you make any changes to the style settings or tab sizes you should switch to another file and then switch back to it so it forces a recalculation of the tabstops. (Notepad++ doesn't notify plugins of those types of changes to style settings.)

ExE-Boss commented 7 years ago

Notepad++ doesn't notify plugins of those types of changes to style settings.

Looks like it's time to file a bug for Notepad++ to add that feature.

I discovered that it is needed to switch between open files on my own in a previous comment.

dail8859 commented 7 years ago

So does that mean it is working (aside from the N++ issue) for you or is there still something I'm missing?

ExE-Boss commented 7 years ago

It is working now, minus the need to switch between open files when changing fonts or tab size.

dail8859 commented 7 years ago

Ok, great. Thanks for the report.