Closed ggrossetie closed 2 years ago
@danyill do you think we should do it as part of the next major version 3.0.0?
I like this proposal. I think the groupings are much clearer.
@danyill do you think we should do it as part of the next major version 3.0.0?
I guess a new major version is the right time to make a compatibility change.
I'm working on asciidoc.pdf.wkhtmltopdfCommand
but I can't find a simple way to implement it. I think it would be better to have two settings, one for the binary path and one for the command line arguments.
Otherwise, it quickly gets complicated if the path contains spaces:
./dir\ with\ spaces/wkhtmltopdf --arg "foo bar"
"./dir with spaces/wkhtmltopdf" --arg "foo bar"
Arguably, we could rely on the PATH
but I guess some users cannot modify the PATH
on their corporate machine/laptop.
I also think we should simplify the default value to be either wkhtmltopdf
(Linux, macOS) or wkhtmltopdf.exe
.
And as mentioned in another thread, we should remove the download feature and instead ask users to download the latest version from https://wkhtmltopdf.org/downloads.html.
So:
asciidoc.pdf.wkhtmltopdfCommandPath
asciidoc.pdf.wkhtmltopdfCommandArgs
asciidoc.pdf.asciidoctorPdfCommandPath
asciidoc.pdf.asciidoctorPdfCommandArgs
Currently, setting keys are inconsistent. We are using both camelCase and
_
as a separator. Given that the key is used to construct a title, I think we should use a strict convention.Official documentation
https://code.visualstudio.com/api/references/contribution-points#contributes.configuration
Present state
asciidoc.asciidoctorpdf_command
asciidoc.previewFrontMatter
asciidoc.preview.style
asciidoc.preview.attributes
asciidoc.preview.breaks
asciidoc.preview.linkify
asciidoc.preview.fontFamily
asciidoc.preview.fontSize
asciidoc.preview.lineHeight
asciidoc.preview.useEditorStyle
asciidoc.preview.refreshInterval
asciidoc.preview.scrollPreviewWithEditor
asciidoc.preview.scrollPreviewWithEditorSelection
asciidoc.preview.markEditorSelection
asciidoc.preview.scrollEditorWithPreview
asciidoc.preview.doubleClickToSwitchToEditor
asciidoc.preview.openAsciiDocLinks
asciidoc.trace
asciidoc.use_asciidoctorpdf
asciidoc.use_kroki
asciidoc.registerAsciidoctorExtensions
asciidoc.wkhtmltopdf_path
asciidoc.forceUnixStyleSeparator
asciidoc.enableErrorDiagnostics
asciidoc.useWorkspaceRoot
Settings in VS code
Proposal
Removed
asciidoc.previewFrontMatter
-> I think we should remove this setting since it's possible to configureskip-front-matter
as an attribute: https://docs.asciidoctor.org/asciidoctor/latest/html-backend/skip-front-matter/asciidoc.preview.scrollPreviewWithEditorSelection
-> Replaced byasciidoc.preview.scrollPreviewWithEditor
(was deprecated)asciidoc.forceUnixStyleSeparator
-> We are not using it??Renamed
asciidoc.asciidoctorpdf_command
->asciidoc.pdf.asciidoctorPdfCommand
: Asciidoc > Pdf > Asciidoctor Pdf Commandasciidoc.wkhtmltopdf_path
->asciidoc.pdf.wkhtmltopdfCommand
: Asciidoc > Pdf > Wkhtmltopdf Commandasciidoc.pdf.asciidoctorPdfCommand
, we should support command line arguments, for instance:/path/to/wkhtmltopdf --enable-local-file-access
asciidoc.use_asciidoctorpdf
->asciidoc.pdf.engine
: Asciidoc > Pdf > Enginewkhtmltopdf
orasciidoctor-pdf
(it also makes room forasciidoctor-web-pdf
if we want to enable experimental support)asciidoc.preview.attributes
->asciidoc.preview.asciidoctorAttributes
: Asciidoc > Preview > Asciidoctor Attributesasciidoc.preview.openLinksToAsciidocFiles
: Asciidoc > Preview > Open Links To Asciidoc FilesAsciiDoc
since it will produce "Ascii Doc"asciidoc.use_kroki
->asciidoc.extensions.enableKroki
: Asciidoc > Extensions > Enable Krokiasciidoc.registerAsciidoctorExtensions
->asciidoc.extensions.registerWorkspaceExtensions
: Asciidoc > Extensions > Register Workspace Extensionsasciidoc.useWorkspaceRoot
->asciidoc.useWorkspaceRootAsBaseDirectory
: Asciidoc > Use Workspace Root As Base Directory