Add some kyebinding
Could you explain why you choose those keys ?
@MichaelMure Added keys just like a Vim keybinding. I think this is a useful keybinding for many Vim users :)
I'm a bit confused.
https://hea-www.harvard.edu/~fine/Tech/vi.html say that:
- Ctrl+U and Ctrl+D are going up and down half a screen, not go to beginning or end
- g is not used by default
- G is going to a specified line, which make more sense to me, even though the concept of line is a bit blurry here (source line ? rendered line ?)
@afranke what do you think ?
For page up/down in vim I do ctrl+f/ctrl+b. I never use the u/d ones. I use gg to go back to beginning of file all the time, and G to go to end of file. These should map well to mdr.
Of course I also use 42G to go to line 42. What that should do in mdr is show the output that matches the 42nd line from the source file in the middle of the screen, I reckon.
Of course I also use 42G to go to line 42. What that should do in mdr is show the output that matches the 42nd line from the source file in the middle of the screen, I reckon.
The mapping from source line to output line is entirely lost when going through the parser.