MichaelMure / mdr

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

Feature Request: Enable cursor and a hotkey to open an editor and jump to the current cursor position #13

Closed sgon00 closed 4 years ago

sgon00 commented 4 years ago

Hi, this is really a great tool. But it can only view the doc. If it can work by calling an editor such as vim, it will be great and very powerful.

Something like, enable cursor, so I can navigate by the cursor with UP/DOWN/LEFT/RIGHT/PageUp/PageDown to move the cursor in readonly mode.

When I want to edit the doc at the cursor postion, I press some hotkey to call vim and vim will be launched at the exact position.

Thanks a lot.

MichaelMure commented 4 years ago

I think you would be interested by https://github.com/skanehira/preview-markdown.vim

I personally have no plan of morphing mdr into an actual editor. It's simply go-term-markdown, the markdown rendering engine that I'm writing for the need of https://github.com/MichaelMure/git-bug.

sgon00 commented 4 years ago

Thanks a lot for the reply and preview-markdown.vim recommendation. I think my feature request is not making mdir to an actual editor. Just adding cursor support and system calling an actual editor. I am not asking to edit inside mdr itself. I checked preview-markdown.vim, it's not quite what I want to achieve. Btw, mdr is really a cool tool. Thanks.