-
Notifications
You must be signed in to change notification settings - Fork 66
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
Repeat Argument Doesn't Seem to Work with Play Macro #178
Comments
As an aside, I have never been able to get sublime macros to work the way I like. At least defining a keyboard macro is a hopeless proposition, probably because you can’t really get notifications of any kind for self-inserting text.
However, I could probably make a fix that would make executing a macro repeat. It might be quite simple and if you want to try it out you can edit this line in jove.py
# repeatable commands
repeatable_cmds = set(['move', 'left_delete', 'right_delete', 'undo', 'redo'])
and just add the name of the command that executes a macro to the list. It might just work …
|
I'll see if I can't get something like that to work. I have SBP installed as a *.sublime-package but maybe I can get it to work if I extract it and remove it from the Package Control list. For that matter, |
I know this is an old ticket, but I wanted to mention that adding What are the possibilities of getting repeat applied to normal typing? For example, pressing I am used to using the repeat command in emacs like so: |
Sorry - I have been so busy I haven't been able to do any work on this plugin. I have changes I like but am unsure about that I haven't released yet. In fact, I am not sure I remember how to make a release! Regarding your desire to insert multiple characters with the numeric arg, the only way to do that would be to create a command which prompts for a character to insert. It's a real drag. There is no way to create a keyboard binding for all the insertable keys. I'd literally have to create a binding for each character and that would just be a real drag. |
That's fine, I figured that was the case. And honestly, I rarely need to repeat a character like that, and if I did, I already texted that if I just stick that character in a macro, I can use the above to repeat the macro however many times and it works fine. It isn't 100% parity with emacs, but in the end, the functionality is the same, so I am happy. |
I'm not entirely sure how this ought to work, but it seems to be working differently in different situations. So you can issue
meta-2
meta-3
ctrl-f
and the cursor will move forward 23 spaces.However, I defined a macro that would insert a space, move the point down, and move the point back (just spacing text over.) I tried
meta-5
ctrl-x e
and it doesn't seem to repeat a macro 5 times.The text was updated successfully, but these errors were encountered: