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

Asciidoc: Export Document as PDF --> prompts user every time #868

Open
dreamcat4 opened this issue Apr 14, 2024 · 1 comment
Open

Asciidoc: Export Document as PDF --> prompts user every time #868

dreamcat4 opened this issue Apr 14, 2024 · 1 comment
Labels

Comments

@dreamcat4
Copy link

What is the purpose?

  • repeatedly save / generate / update pdf in a tighter iteration cycle
  • to add a way to just forcibly overwrite the same exact output pdf file
  • when overwriting onto same existing output file
  • Without having VSCode bring up the popup dialog box

How the extension might better handle this

  • add new user config setting
  • if the setting is enabled, then the pdf output file is not prompted
  • which is enough to close this issue. however:
Optional: (for future considerations)

optional 1)

  • if the pdf output filename or path is not the default
  • default is: .pdf of filename that is same name as the .adoc
  • an asciidoc pdf attribute to optionally specify that?

optional 2)

  • if there is any wider livereload / autoreload feature within vscode
  • that an appropriate hook can be documented to trigger and invoke the pdf file regeneration
  • i.e. to automatically re-trigger every so-often (eg 30s) the action Asciidoc: Export Document as PDF

just all depends how you feel about it. many thanks 🖤

@SjoerdV
Copy link

SjoerdV commented May 13, 2024

My idea would be to have a setting that takes a full path, or a path/folder relative to the current workspace (without leading /).

The full pdf output path would concatenate that setting value with the relative path of the current adoc file (mkdir -p) effectively mimicking the original adoc file folder structure.

All without prompting anything to the user of course and automatic overwrite

I think this would work the same as one of the markdown extensions' pdf export

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

3 participants