Skip to content

[feat]: Customizable text file preview font family and size #2818

Description

@myktra

Feature Summary

Emdash allows the user to set the font family and size for terminal views. Use the same pattern to allow the user to set for text file preview views.

Problem or Use Case

Emdash embeds the Monaco editor for viewing text files. This editor is displayed when the user wants to see diffs in changes made by agents. It currently defaults to a font stack that is not aligned with the defaults typically expected on current operating systems, defaulting to Menlo on macOS (see related issue #2807). Most importantly, there is no simple way to adjust the font family or size for this view.

While Monaco allows the user to adjust the font size through a command invoked via its command palette (if the user is aware this ability exists), it does not persist across application restarts and there is no support at all for changing the font family.

Proposed Solution

Use the existing pattern for configuring terminal font family and size for the text file viewer.

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions