martinbaillie / evil-motion-trainer

Make Emacs drop lazily repeated "hjkl"-based motions after a configurable threshold
https://martin.baillie.id/wrote/evil-motion-training-for-emacs/
49 stars 0 forks source link

new mode #4

Open smallstepman opened 3 years ago

smallstepman commented 3 years ago

to continue discussion on https://github.com/martinbaillie/evil-motion-trainer/issues/3 - however this one is a little bit far fetched

it would be super awesome, to have additional mode, something like monkeytype but for editing. The user would load a training layout, e.g. 3 buffers with some code in it

+---------+-------+
|         |    2  |
|    1    +-------|
|         |    3  |
|         |       |
+-------------------

and there would be a script/instructions to follow:

go to window 3, edit line 33, replace print with debug go to window 1, change brackets surrounding lines 30-25, from {} to [] copy text from window 1 line 12 to window 2 line 13 delete text/lines from window 3 lines 32 place cursor in window 2 line 32 col 4

the script would be displayed either in a separate buffer, or ideally, visual indicators would be placed directly into the training layout buffers

User could race against time, or against amount of keypresses (lower=better). Stats would be written to .org file. Training layouts & script/instructions would also come in .org format - easy to share, modify and load. People could measure and compare their emacs usage speed, and tweak configs accordingly.

I'd happily do that as a daily routine :)