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

Feature request: configuration "profiles" #3

Open
tonypapousek opened this issue Sep 23, 2020 · 0 comments
Open

Feature request: configuration "profiles" #3

tonypapousek opened this issue Sep 23, 2020 · 0 comments
Assignees
Labels

Comments

@tonypapousek
Copy link

tonypapousek commented Sep 23, 2020

I author and render out documents for multiple clients. Each client uses a different branded docx template (i.e. ~/path/to/client1/docs/template.docx and ~/path/to/client2/docs/template.docx). Currently, switching between clients requires editing the vscode config every time and is prone to typos.

I'd like to define different "profiles" to simplify this process that can be selected when running the extension (i.e. Pandoc Render -> Select Client -> Output Format).

As far as configuration goes, adding a profiles object could facilitate this while keeping the current keys as a default profile. For example:

"pandoc.profiles" = {
   "client1": {
       "docxOptString" : "~/path/to/client1/docs/template.docx"
    },
   "client2": {
       "docxOptString" : "~/path/to/client2/docs/template.docx"
    }
}

"pandoc.defaultProfile" = "client1" // Fall back to current keys if this doesn't exist.

Parsing logic:

If pandoc.profiles.client1 doesn't exist, fall back to pandoc.docxOptString as default.

If pandoc.profiles doesn't exist (or Object.keys(pandoc.profiles) is empty), use the current extension behavior and don't list profiles.

Btw, thanks for maintaining this extension!

@ChrisChinchilla ChrisChinchilla self-assigned this Sep 28, 2020
@ChrisChinchilla ChrisChinchilla added the enhancement New feature or request label Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants