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

Default to Last-Used Export Even When Custom Command #5163

Open
1 of 3 tasks
dstark opened this issue May 15, 2024 · 1 comment
Open
1 of 3 tasks

Default to Last-Used Export Even When Custom Command #5163

dstark opened this issue May 15, 2024 · 1 comment
Labels
bug A bug that affects the functionality of Zettlr.

Comments

@dstark
Copy link

dstark commented May 15, 2024

Description

When using a defaults profile to export a document, Zettlr 3.1.1 (on Windows 11) defaults to that profile in the next export. When using a custom command, however, Zettlr defaults to a blank export. If this blank export is run (say, because the user inattentively doesn't select something else), Zettlr replaces the existing markdown file with a new markdown file with many (or all) of the markdown characters escaped. Defaulting to the same custom command would both provide an added convenience and avoid potentially overwriting an existing markdown file with a new file where the markdown is "broken."

Screenshot 2024-05-15 074053
Screenshot 2024-05-15 074133
Screenshot 2024-05-15 074145

Proposed Changes

The behavior to default to custom export commands should be the same as the behavior of currently defaulting to exports specified via defaults files.

Caveats

I don't believe there are any, and there's the additional negative outcome of overwriting an existing markdown file that's avoided. Of course, if one wants to overwrite an existing file, one can create an export to do just that separately.

Do you Wish to Attempt Implementing this Yourself?

No

Zettlr Version

Stable (most recent version)

Your Platform

  • Windows
  • macOS
  • Linux

Operating System Version

Windows 10 and 11

Additional Information

The existing UI would work great as shown in the screenshots above---provided that Zettlr remembers and defaults to the most recently run export (whether that's based on a defaults file or a custom command).

@dstark dstark added the enhancement This is an enhancement to a feature of Zettlr. label May 15, 2024
@nathanlesage
Copy link
Member

That very much sounds like a bug!

@nathanlesage nathanlesage added bug A bug that affects the functionality of Zettlr. and removed enhancement This is an enhancement to a feature of Zettlr. labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that affects the functionality of Zettlr.
Projects
None yet
Development

No branches or pull requests

2 participants