Skip to content

Allow output info to view - #583

Open
thomasp85 wants to merge 2 commits into
mainfrom
view-output
Open

thomasp85 wants to merge 2 commits into
mainfrom
view-output

Conversation

@thomasp85

Copy link
Copy Markdown
Collaborator

Fix #562

This PR adds the option of passing in output args to ggsql view which will then render to a file once the window is closed using the dimensions of the window for the output

@thomasp85
thomasp85 requested a review from teunbrand October 9, 2026 10:53

@teunbrand teunbrand left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, but would be nice if we can keep frame settings in one place.

Comment on lines +170 to +174
pub struct ClosingFrame {
pub width: u32,
pub height: u32,
pub dpi: f64,
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just noting that this is a strict subset of the Canvas struct. It'd be nice if somehow we only have the collection of width/height/dpi settings in one spot, instead of multiple.

This branch has not been deployed

No deployments
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.

Add output to view in cli

2 participants