Unexpected-Keyboard icon indicating copy to clipboard operation
Unexpected-Keyboard copied to clipboard

Auto capitalize on a new line?

Open ironfish1000 opened this issue 1 year ago • 8 comments

Hi, if I have auto-capitalization turned on, and I type a new line (ie press the Enter/Return key), then the first letter on a new line is not capitalized.

I do see in Settings that it says to press shift on a new sentence.

I am just wondering why auto-capitalization is not enabled for new lines?

ironfish1000 avatar Jul 14 '24 13:07 ironfish1000

I agree. No amount of white space (spaces/separators) should reset auto-capitalization.

(OP, it says to [auto-]press shift at the beginning of a new sentence—which is what we're talking about, new lines or not.)

Spike-from-NH avatar Jul 14 '24 15:07 Spike-from-NH

@Spike-from-NH Thanks for pointing that out - I edited my original post to be more accurate.

I am still wondering why auto-capitalization is not enabled for new lines? Is there a way to do this?

ironfish1000 avatar Jul 14 '24 18:07 ironfish1000

There is currently no way to adjust the definition of auto-capitalization. I believe we don't need user options but instead for the implementation to be made more useful, based on reactions such as yours.

Spike-from-NH avatar Jul 15 '24 01:07 Spike-from-NH

@Julow If I am not misunderstanding anything, please consider auto-capitalization for a new line. Thanks

ironfish1000 avatar Jul 15 '24 12:07 ironfish1000

Auto-capitalization is implemented here if anyone has time to work on it.

Julow avatar Jul 15 '24 16:07 Julow

Unfortunately I am not coder so I cant help out with this.....

ironfish1000 avatar Jul 15 '24 16:07 ironfish1000

In is_trigger_character(), line 155 seems to define space as the only trigger character. It should also include Enter and perhaps others. This is not a change I can make by imitation.

There is an additional oddity: Typing a second trigger character disables autocap, typing a third one re-enables it, and so on. We who learned on a typewriter to type two spaces at the end of a sentence are screwed.

Spike-from-NH avatar Jul 15 '24 21:07 Spike-from-NH

It does work, just not properly.

  • a new line does not detect as a new line
  • type any letter, then delete it, and it will recognize as a new line

fix: not sure. Seems like it should be possible to debug

related bug introduced by this feature

  • autocapital enables the shift button
  • the shift button interferes with ctrl + a/c/x etc

fix: pressing Ctrl should disable autoshift

nahuhh avatar Jul 18 '24 22:07 nahuhh