Skip to content

window: Add an Open File action - #29

Merged
TingPing merged 1 commit into
Igalia:mainfrom
fujii:open-file
Nov 4, 2026
Merged

TingPing merged 1 commit into
Igalia:mainfrom
fujii:open-file

Conversation

@fujii

@fujii fujii commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Adds a win.open-file action to the browser window. Ctrl+O and a new "Open File…" item in the main menu (above "Install as Web Application") show a GtkFileDialog and load the chosen file in the active tab through wig_window_load_uri(), so it is recorded in history like a typed navigation.

Notes for reviewers:

  • The accelerator is set application-wide, but app (PWA) windows do not have the action, so Ctrl+O does nothing there.
  • Under Flatpak the file chooser portal exposes only the selected file, so a page that loads relative resources from the same directory may not find them.

🤖

Ctrl+O and an "Open File…" item in the main menu show a file dialog and
load the chosen file in the active tab.
@TingPing
TingPing merged commit a388a1d into Igalia:main Nov 4, 2026
8 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.

2 participants