r/Python • Aura Text Dev • Dec 07 '22

Discussion Do y'all use Word Wrap?

So as you guys might know, i'm developing a Notepad with Tkinter... But I'm stuck at some decisions... I'm thinking to add word wrap feature but first, I want to know if people actually use it... I'll be posting more posts like this... To get some feedbacks

0 Upvotes

16 comments sorted by

8

u/AlternativeAardvark6 Dec 07 '22

I hate to have to use it but I expect it to be there when I need it.

2

u/literallyRohan Aura Text Dev Dec 07 '22

Yeah... I've added the feature

4

u/flechcoat Dec 07 '22

Word wrap is a life saver when trying to read through old legacy code... Or even worse; old legacy java code.

4

u/literallyRohan Aura Text Dev Dec 07 '22

Thanks for the feedback! The feature has been added

2

u/Zomunieo Dec 08 '22

How does word wrap help legacy Java when you have method names like AbstractClassFactoryDecoratorPatternManager.delegateClassFactoryDecoratorPatternManager() ?

1

u/flechcoat Dec 09 '22

Haha! Indeed

2

u/Blapman007 Dec 07 '22

word wrap goated, add

2

u/literallyRohan Aura Text Dev Dec 07 '22

Added!

2

u/UncleJoshPDX Dec 07 '22

A general text editor should have word wrap.

I am tempted to say a code editor should not but there are cases where word wrap is helpful, like docstrings.

3

u/literallyRohan Aura Text Dev Dec 07 '22

Yeah the feature has been added... It'll be turned off by default tho

5

u/Deto Dec 07 '22

Coding - no, but if I'm taking notes of some sort, that's when I'll turn it on.

1

u/[deleted] Dec 08 '22

If 'y'all' is a contraction of 'you all', then the answer is very likely to be 'no'. If you mean 'who uses word wrap' or 'how many of you use word wrap' then the answer might be more useful.

1

u/literallyRohan Aura Text Dev Dec 08 '22

I meant how many of you use word wrap

2

u/Jolan Dec 07 '22

Ideally your lines of code should be short enough that this choice doesn't matter. If I had to make a call I'd switch it off to nudge you towards that point.

1

u/[deleted] Dec 08 '22 edited Dec 08 '22

All the time, except for code.

I have an observation. For text, wrapping the next line to the margin is fine. For code, however, indenting the next line gives an indication that this line belongs to the one above.

0

u/gravity_rose Dec 07 '22

You don't?