Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-correct for common tpyos... #4173

Open
Stevefb opened this issue Jul 11, 2018 · 3 comments
Open

Auto-correct for common tpyos... #4173

Stevefb opened this issue Jul 11, 2018 · 3 comments
Labels
enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope. feature-autocomplete feature-autocorrect AC issues specific to the "autocorrect" handler

Comments

@Stevefb
Copy link

Stevefb commented Jul 11, 2018

Loving the new auto correct feature - hats off.

Sometimes I accidentally type: If true them when I really mean: If true then. Anyway, I just thought I had one of those moments and thought I saw Rubberduck auto-magically change them to Then when I pressed enter.

But Rubberduck didn't change anything so apparently I didn't make a typo (screen flicker?) but, all the same I thought it would be a nice addition :-)

Not sure how realistic this is, but thought it might be worth mentioning. Some of my common typos:

  • Them instead of Then
  • End It instead of End If
  • Dowhile instead of Do While
  • selecion instead of Selection

Or, perhaps a custom typo dictionary could be added... hmmm...

@Vogel612 Vogel612 added feature-autocomplete enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope. labels Jul 11, 2018
@daFreeMan
Copy link
Contributor

I have symptoms of selective lysdexia and often type VyBal instead of ByVal...

I believe that there are discussions of code snippets/short-cuts that could be repurposed for this if one were allowed to define ones own snippets.

@Stevefb
Copy link
Author

Stevefb commented Jul 12, 2018

@daFreeMan Agreed. I've been using MZ Tools Code Library with expansion shortcut it works well - when I remember to use it. Was also trying to learn C# so played in VS for a while and thought I'd gone bat s..t crazy when I returned to VBA to discover auto-correct... Hopefully RD could bring something similar but without having to press the expansion shortcut... (just pressing SPACE &/or ENTER would be awesome).

@retailcoder retailcoder added the feature-autocorrect AC issues specific to the "autocorrect" handler label Oct 26, 2018
@retailcoder
Copy link
Member

The AC behavior I'm thinking of for this will be the same as for block completion: the handler will select the entire "trigger word", and capture the next keypress - if it's {TAB} or {ENTER} (as per preferences/settings), autocorrect takes over; if it's any other key, selection is repositioned immediately after the "trigger word", and the keypress goes through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope. feature-autocomplete feature-autocorrect AC issues specific to the "autocorrect" handler
Projects
None yet
Development

No branches or pull requests

4 participants