Sublime Forum

Markdown preview package create a shortCut

#1

Hello i installed the package mardkown preview and i would to know how can i put shortcut key for launch with github api ?

0 Likes

#2

Create it with

{
    "keys": ["whatever_you_like"],
    "command": "markdown_preview",
    "args": {
        "target": "browser",
        "parser": "github",
    },
}

may work.

The built-in panel actually runs another command after selecting.

1 Like

#3

hello

I add your code in Preferences -> Package setting -> markdown preview -> MarkdownPreview.sublime-setting – User windows and it’s don’t work.

{
    "keys": ["ctrl+alt+g"],
    "command": "markdown_preview",
    "args": {
        "target": "browser",
        "parser": "github",
    }
}
0 Likes

#4

just like what you asked. obviously it’s st’s keybinding, not setting. you should put it in st’s keybindings.

Preferences > Keybindings

1 Like

#5

hello,
thank for your help.

0 Likes