Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

功能请求:MarkdownPreviewToggle命令 #49

Closed
serend1p1ty opened this issue Apr 11, 2019 · 3 comments
Closed

功能请求:MarkdownPreviewToggle命令 #49

serend1p1ty opened this issue Apr 11, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@serend1p1ty
Copy link

现在需要定义两个快捷键,一个用来运行MarkdownPreview,一个用来运行MarkdownPreviewStop。
希望有一个MarkdownPreviewToggle命令,这样只需要一个快捷键就行了。

@iamcco iamcco added the enhancement New feature or request label Apr 11, 2019
@cabaalexander
Copy link
Contributor

Hello, @ppnman and @iamcco 👋 Rignt now I'm achieving this behavior with function 👇

image

And I map it to C-p to (p)review (Example below)

image

@iamcco Maybe I can help with a PR if you like the idea. 🙂

@iamcco
Copy link
Owner

iamcco commented Apr 25, 2019

@cabaalexander

It's OK for me, PR is welcome.

And I map it to C-p to (p)review (Example below)

By the way it will be better if it can let user choose what key to map.

@iamcco
Copy link
Owner

iamcco commented Apr 29, 2019

Thanks to @cabaalexander ,can use nmap <C-p> <Plug>MarkdownPreviewToggle now.

@iamcco iamcco closed this as completed Apr 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants