bragefuglseth / keypunch

Practice your typing skills
GNU General Public License v3.0
85 stars 13 forks source link

[Suggestion]: Automatic skipping of whitespaces (and tabs) at the beginning of a new line #20

Closed sfiedler0 closed 1 month ago

sfiedler0 commented 1 month ago

Is your suggestion related to a problem? Please describe. I just tried out this app and used a custom text, which was some code. The only problem is that the text editors of today will auto-indent the new lines we type in, but the whitespaces at the beginning of the line aren't skipped.
So if you train yourself on code, you have to spam the spacebar until you can continue with writing the code.

Describe the solution you'd like The solution would be to skip any whitespaces or tabs at the beginning of a new line, as those are probably indentation in programs.

Describe alternatives you've considered Nothing.

Additional context Nothing.

bragefuglseth commented 1 month ago

Thanks for the suggestion! I understand how this can be frustrating, especially considering that the app doesn't highlight leading/trailing whitespace. The simplest solution is to automatically trim each line of the custom text before it's applied anywhere. I'll look into doing that.