Page 1 of 1

Varying the indent

Posted: Thu Aug 22, 2019 8:01 pm
by orsonk
Does anybody know if the CintaNotes associated config. file has a place where I can increase the standard indent? I find myself using two Tabs often because I want more of an indent. But if there's a setting to simply enter a greater indent number as the standard.... that would be great.

Thanks.
Orson

Re: Varying the indent

Posted: Fri Aug 23, 2019 4:17 am
by gunars
There's an "editor.tabwidth" setting set to 8 by default. It appears to change the indent amount, but I'm not sure what units it is in. Try changing it and restart CN.

Re: Varying the indent

Posted: Fri Aug 23, 2019 5:07 am
by CintaNotes Developer
Thanks Gunars. The unit is spaces, obviously.

Re: Varying the indent

Posted: Fri Aug 23, 2019 4:54 pm
by gunars
CintaNotes Developer wrote:Thanks Gunars. The unit is spaces, obviously.


Well, maybe not obvious to me, or maybe I'm misinterpreting where this setting is used. :?

To test, I set the formatting to monospace. With the default "editor.tabwith = 8", I enter a series of "x<tab>x<tab>x". Note that the Xs are about 4 chars apart, but not quite. With a monospace font, they should at least align on a character boundary. Changing to "editor.tabwith = 24" increases the spacing, but not to 24 chars. It's approximately 10 and again, not aligned.

Re: Varying the indent

Posted: Fri Aug 23, 2019 9:29 pm
by orsonk
Gunars (and others), thanks.

Orson

Re: Varying the indent

Posted: Sat Aug 24, 2019 1:32 pm
by CintaNotes Developer
Well, it's a bit different.
It's more like "width in units equal to pixel width of a space character of selected note (not monospace) font".

Re: Varying the indent

Posted: Sat Aug 24, 2019 4:54 pm
by gunars
So it's always using the width of a space char of the note text font, even when in monospace mode? I'd suggest that it should be the width of a space in whatever the current font is (regular or monospace). That would allow you to use aligned tabular info in monospace.

Re: Varying the indent

Posted: Sun Aug 25, 2019 11:54 am
by CintaNotes Developer
The problem is that a line of text can contain both regular and monospace font.
Making tab stops dependent on current font style is possible of course, but I'd say it's too much effort compared to what it brings to the table.

Re: Varying the indent

Posted: Sun Aug 25, 2019 4:59 pm
by gunars
Good point. How about always using the width of a monospace space instead of a proportional space? For regular text and mixed text, you probably won't notice, but for monospaced lines, it gives the possibility of aligning items.

Re: Varying the indent

Posted: Thu Sep 05, 2019 6:44 am
by CintaNotes Developer
Good idea. I will take it into account for CN4. For CN3, we have feature freeze already - no UI-related changes. Otherwise CN4 will never arrive..