iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.67k stars 277 forks source link

preview multi files support #326

Closed durd07 closed 11 months ago

durd07 commented 3 years ago

when I open markdown-preview, it shows the preview in http://127.0.0.1:8929/page/1 then I open another file, it shows in another chrome tab like http://127.0.0.1:8929/page/3,

Is it possible to preview always in one chrome tab and auto refresh it when I open another file?

like what does https://github.com/euclio/vim-markdown-composer works?

durd07 commented 3 years ago

like what does https://github.com/euclio/vim-markdown-composer works?

RocketMaDev commented 11 months ago

@iamcco great plugin, so plz add this function! I scrolled between files today and sadly found that I have to adjust the browser tabs every time. A cup of milktea has sent to you, hope that could stir up your ethusiasm to improve this repo!😉

iamcco commented 11 months ago
" combine preview window
" default: 0
" if enable it will reuse previous opened preview window when you preview markdown file.
" ensure to set let g:mkdp_auto_close = 0 if you have enable this option
let g:mkdp_combine_preview = 0
RocketMaDev commented 11 months ago

It seems that i need to switch on mkdp auto start in order to have a fluent experience.

iamcco commented 11 months ago

I have add g:mkdp_combine_preview_auto_refresh option which default is 1.

RocketMaDev commented 11 months ago

非常好改进,爱来自火箭😉