Skip to content

Allow output info to view - #583

Merged
thomasp85 merged 4 commits into
mainfrom
view-output
Nov 2, 2026
Merged

thomasp85 merged 4 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 thread src/writer/hephaestus/window.rs Outdated
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.

Teun's review: ClosingFrame was a strict subset of Canvas. Extract
Dimensions { width, height, dpi } from Canvas, embed it there, and have
the viewer's show() return it instead of a duplicate ClosingFrame.
@thomasp85
thomasp85 merged commit 03262e8 into main Nov 2, 2026
23 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.

Add output to view in cli

2 participants