Skip to content

Add Show in Finder and Copy Link to the HTML overlay bar - #663

Merged
umputun merged 2 commits into
masterfrom
overlay-share-actions
Sep 28, 2026
Merged

umputun merged 2 commits into
masterfrom
overlay-share-actions

Conversation

@umputun

@umputun umputun commented Sep 28, 2026

Copy link
Copy Markdown
Owner

adds a button to the --navigation bar of an HTML overlay for handing the page to someone else. On a file page, Show in Finder reveals the file on screen, including a sibling page reached by navigation; on a URL page, Copy Link copies the current address with its query and fragment. For file pages, Open in Browser still opens the original file.

session overlay navigate finder does the reveal from a script and is refused for a URL page. Copy Link has no control command, since the socket never writes the clipboard; scripts read the current address from tree's htmlOverlays[].page.

make the displayed page easy to share. Show in Finder follows file navigation; Open in Browser retains its original-file behavior. Copy Link stays toolbar-only because the socket never writes the clipboard; scripts read the current URL from `tree`'s `htmlOverlays[].page`.
the `finder` SF Symbol exists only from macOS 26, so on 14 and 15 the button drew as an empty space. It now uses `arrow.up.forward.app`. The two hosted tests named for the fallback path are renamed to the pending-load case they actually cover.
Copilot AI lite review requested due to automatic review settings September 28, 2026 08:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@umputun
umputun merged commit 5aab0fd into master Sep 28, 2026
8 checks passed
@umputun
umputun deleted the overlay-share-actions branch September 28, 2026 08:44
nickalie added a commit to nickalie/agterm-linux that referenced this pull request Sep 29, 2026
Upstream umputun#659 and umputun#663 on GTK. libagterm-webkit.so is the one library linked
against WebKitGTK 6.0; the app dlopens it, so it runs without WebKitGTK and
refuses only --html/--url, naming the package. A file grant is served by a
private URI scheme that answers only under --cwd, each page gets an ephemeral
network session, and page JavaScript stays off unless --js. WebKitGTK names no
target frame, so the main frame's origin is pinned on its response.

Claude-Session: https://claude.ai/code/session_01Phfsdpubm1RJGzh7EtShyn
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