You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Print button in the file preview (PDF and HTML)
#43458
What: Add a Print button (and Ctrl+P while the preview has focus) to the file preview in the right panel, for PDFs and HTML files. It opens the system print dialog for that file.
Why: The preview is already amazing for this kind of work. You ask the agent to change a PDF ("make the photo bigger", "less red ink", "fit it on one page"), it re-renders, and the preview updates. It works like a live preview of the document you're editing together. The only thing missing is the last step: when it looks right, one click to bring up the print dialog.
Agents often make files whose whole point is to be printed: a recipe card, a flyer, a form, a checklist. The finished PDF is already on screen in the preview, but there is no way to print it from there. Today you go to File Explorer, find the file, open it in another viewer, and print from that.
How it could work: Electron already has this. webContents.print() on the preview's webview shows the system print dialog. For a PDF, the built-in Chromium PDF viewer has its own print action that could be shown in the toolbar, next to the download action.
Related:#22460 (Open in default app from the file-link menu) is a two-click workaround. This idea is the direct version.
Environment: T3 Code (Beta), Windows 10 x64, desktop app.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What: Add a Print button (and Ctrl+P while the preview has focus) to the file preview in the right panel, for PDFs and HTML files. It opens the system print dialog for that file.
Why: The preview is already amazing for this kind of work. You ask the agent to change a PDF ("make the photo bigger", "less red ink", "fit it on one page"), it re-renders, and the preview updates. It works like a live preview of the document you're editing together. The only thing missing is the last step: when it looks right, one click to bring up the print dialog.
Agents often make files whose whole point is to be printed: a recipe card, a flyer, a form, a checklist. The finished PDF is already on screen in the preview, but there is no way to print it from there. Today you go to File Explorer, find the file, open it in another viewer, and print from that.
How it could work: Electron already has this.
webContents.print()on the preview's webview shows the system print dialog. For a PDF, the built-in Chromium PDF viewer has its own print action that could be shown in the toolbar, next to the download action.Related: #22460 (Open in default app from the file-link menu) is a two-click workaround. This idea is the direct version.
Environment: T3 Code (Beta), Windows 10 x64, desktop app.
All reactions