Skip to content
New issue

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

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

Already on GitHub? # to your account

Keyboard shortcut for toggling preview? #62

Open
ghost opened this issue Nov 16, 2014 · 3 comments
Open

Keyboard shortcut for toggling preview? #62

ghost opened this issue Nov 16, 2014 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 16, 2014

Hi,

is there a way to add shortcut to toggle preview? If not, then this is a feature request :)

Thanks!

@Dexyne
Copy link

Dexyne commented May 21, 2015

As I don't know if there is any shortcut already set, I agree with that idea! 👍

@teddyorkie
Copy link

Shortcut can be set inside the keymap.json file (from Debug/Open User Key Map). Add the following line inside the overrides (or whatever shortcut you want):
"Ctrl-Alt-M": "toggleMarkdownPreview"

@gruehle: I'd like to put this your code (would be my first PR), just add a
previewShortcut = { key: "Ctrl-Alt-M" } variable and add it inside addMenuItem command.

Also, I think the command id should be changed to something like gruehle.view.toggleMarkdownPreview to avoid collision as recommended by the guideline.

@gruehle
Copy link
Owner

gruehle commented May 22, 2017

@teddyorkie Good suggestions! Yes, please submit a pull request for both.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants