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

Added setting to make env.openExternal optional #464

Merged
merged 6 commits into from
Jan 23, 2025

Conversation

rtfmkiesel
Copy link
Contributor

I don't like the auto-open functionality. Here is a setting, with the default being enabled (as it is now), which lets a user adjust this to their taste.

@rtfmkiesel
Copy link
Contributor Author

Any chance of this getting merged? @yhatt

@yhatt
Copy link
Member

yhatt commented Jan 16, 2025

@rtfmkiesel Merge upstream and please confirm to pass CI check. If not, please add tests. We can review after than.
https://github.com/marp-team/.github/blob/master/CONTRIBUTING.md#requirements-in-pull-request

@yhatt yhatt self-requested a review January 16, 2025 17:57
Comment on lines 198 to 201
if (outputToLocalFS) {
env.openExternal(uri)
if (shouldOpen) {
env.openExternal(uri)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (outputToLocalFS) {
env.openExternal(uri)
if (shouldOpen) {
env.openExternal(uri)
}
if (outputToLocalFS && shouldOpen) {
env.openExternal(uri)

If the file is not opened automatically, I think it's better to run else clause to provide a feedback to the user about the completion of the export process.

@yhatt yhatt merged commit 3f63e27 into marp-team:main Jan 23, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants