Skip to content

Add optional editor toolbar button for export #2513

Description

@dlshuangchenyue1210

Motivation

For new users, exporting documents is currently mainly exposed through:

  • command palette
  • code lens
  • automatic export settings

Compared with preview shortcuts and code lenses, exporting is slightly less discoverable from the editor UI itself.

An optional editor toolbar button could improve UX and make export functionality easier to find, especially for users coming from more traditional IDE workflows.

Description

Add optional editor/title toolbar buttons for export-related commands.

Possible buttons:

  • Export PDF
  • Show PDF
  • Export SVG/PNG (optional)

The feature could:

  • be configurable
  • be disabled by default
  • simply expose existing commands through VS Code editor/title contributions

This would avoid changing existing workflows while improving discoverability.

More Examples/Questions

I’d also be interested in contributing this feature myself if the direction is acceptable.

From my understanding, this may mainly involve:

  • registering editor/title menu contributions
  • wiring existing commands
  • adding configuration options

Questions:

  • Would maintainers consider this feature aligned with Tinymist UX goals?
  • Is there any preferred location/style for editor toolbar actions?
  • Would a PR for this be welcome?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions