asciidoctor-vscode icon indicating copy to clipboard operation
asciidoctor-vscode copied to clipboard

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

Open dreamcat4 opened this issue 1 year ago • 1 comments
trafficstars

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 🖤

dreamcat4 avatar Apr 14 '24 17:04 dreamcat4