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

nRepeat fixed on 16 digits #207

Open
njpates opened this issue Dec 9, 2021 · 3 comments
Open

nRepeat fixed on 16 digits #207

njpates opened this issue Dec 9, 2021 · 3 comments

Comments

@njpates
Copy link

njpates commented Dec 9, 2021

I've had an issue for a few months now. I checked the closed issues to see if there was something that I missed but couldn't find anything about this. I've noticed strange behavior with the nRepeat function. Initially it would print the symbol for a registered trademark (that's the letter "R" with a circle in it) 4 times upon "alt + r" without giving prompt for the number of repeats or the symbol to repeat. I use a Mac so I changed the binding to "alt + cntrl + r" to see if there was something screwy that changed on one of my OS updates. It will �repeat the first character (digit or otherwise) 16 times. For instance, on "cntrl+alt+r" if I type the number "1" it will repeat "1" 16 times. I've also tried reinstalling the emacs package and installing the nRepeat package directly off of gitHub with no luck.

@canoeberry
Copy link
Collaborator

canoeberry commented Dec 9, 2021 via email

@njpates
Copy link
Author

njpates commented Dec 9, 2021

From what I understand it is an operation that's been available in Emacs. In the past, I've been able to execute it with "alt+r" using the "Emacs Pro Essentials" Sublime Package. Again, it's been a few months since I've been able to use it now. After using the command you could type a series of numbers and the next non-numerical keystroke would be executed. For instance if I hit "alt+r" then hit "113" and then typed "^n", it would bring the cursor down 113 lines. Or, you could instead hit the letter "a" and have 113 letter "a"s printed. It was pretty handy for creating a specified number of lines and separate cursors.

@canoeberry
Copy link
Collaborator

I think you should check your binding of alt+r to see what exactly it's bound to.

It's not an emacs pro essentials command by default.

You can type meta-123 ctrl+o to open up 123 lines, because that's a command (open line or ... newline-and-return ... can't remember).

But meta-123 then Enter will enter just one return because Enter is handled automatically by the underlying text widget. This has always bothered me, that the regular characters are not bound to a sublime command but bypass the whole sublime plugin infrastructure. If there were some callback like "I am about to insert this character" that I could intervene with, well that would be cool, but there isn't as far as I know.

So I am not sure how you have been able to insert loads of non-numeric characters but I have to assume it's some other plugin that is perhaps binding all the keys?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants