lborgman / easy-cap-ed

For the captions editor EasyCapEd
0 stars 0 forks source link

Request for improvement to Ctrl+Enter handling in Captions editor #117

Open MikeRidgway opened 6 years ago

MikeRidgway commented 6 years ago

When Ctrl+Enter is pressed on the very first word of the document, please execute a proper case on that word. When it is pressed on a word that is at the beginning of any line other than the first line, please upper case the current word and append a period to the previous word. Same for Ctrl+Shift+Enter (?) and Ctrl+Shift+1 (!).

lborgman commented 6 years ago

Hi @MikeRidgway , I have been thinking a bit about this. I can fix it, but I do have another suggestion:

I suggest that the commands for punctuation works by adding the separator after the current word and capitalizes the next word. That feels much more intuitiv to me. What do you think?

MikeRidgway commented 6 years ago

Perhaps. In DIY Captions, your cursor typically moves to the beginning of each word when one does word by word navigation. Conceptually, it's not so much a question of which word one is on as it is a question of where the caret is. If the caret is at the end of word N or at the beginning of word N+1, my editor makes no distinction. the punctuation mark is inserted a the end of word N and the first character in word N+1 is capitalized. In your editor, currently, the shortcuts work whether there is editing focus or not and no matter where in a word the caret is. Perhaps a better way of approaching this would be to only fire the functions bound with a shortcut when the caret is at the end of a word or at the beginning of a word or somewhere in between, in the case of multiple intervening spaces.

On Sun, Jan 28, 2018 at 8:13 PM, lborgman notifications@github.com wrote:

Hi @MikeRidgway https://github.com/mikeridgway , I have been thinking a bit about this. I can fix it, but I do have another suggestion:

I suggest that the commands for punctuation works by adding the separator after the current word and capitalizes the next word. That feels much more intuitiv to me. What do you think?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lborgman/easy-cap-ed/issues/117#issuecomment-361121573, or mute the thread https://github.com/notifications/unsubscribe-auth/AED-sTpiR3uNmdIoiLvVZXtV714_pW45ks5tPSkygaJpZM4Rkvfg .

lborgman commented 6 years ago

In the caption part I think the way I handle it now is ok.

In the transcript part I suggest that I make a slight change:

After inserting a punctuation the caret is positioned immediately after the punctuation character. (This should be the case right now.)

What do you think?