MichaelMure / mdr

MarkDown Renderer for the terminal
MIT License
434 stars 19 forks source link

Add some kyebinding #5

Open skanehira opened 4 years ago

MichaelMure commented 4 years ago

Could you explain why you choose those keys ?

skanehira commented 4 years ago

@MichaelMure Added keys just like a Vim keybinding. I think this is a useful keybinding for many Vim users :)

MichaelMure commented 4 years ago

I'm a bit confused.

https://hea-www.harvard.edu/~fine/Tech/vi.html say that:

@afranke what do you think ?

afranke commented 4 years ago

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.

MichaelMure commented 4 years ago

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.