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

add argument to pandoc.render to allow for skipping popup #12

Open
classabbyamp opened this issue Sep 30, 2021 · 0 comments
Open

add argument to pandoc.render to allow for skipping popup #12

classabbyamp opened this issue Sep 30, 2021 · 0 comments

Comments

@classabbyamp
Copy link

This kind of ties into #8, but it would be nice to be able to specify a keybind to render without getting the popup window every time.

You can do something like

{
    "key": "f5",
    "command": "pandoc.render",
    "args": {"outputType": "pdf"},
    "when": "editorTextFocus && editorLangId == 'markdown'"
}

in keybindings.json and I believe the value of args will get passed to the command, like this:

-     var disposable = vscode.commands.registerCommand('pandoc.render', () => {
+     var disposable = vscode.commands.registerCommand('pandoc.render', (outputType: string) => {

and then some popup-skipping logic could be added or something.

Not 100% sure the details are right, this is just from my investigations into setting up a way to easily trigger a re-render.

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

No branches or pull requests

1 participant