Skip to content

Open a hostless file URI on the terminal's remote host - #852

Merged
dakra merged 1 commit into
dakra:mainfrom
plopresti:file-uri-remote-terminal
Dec 1, 2026
Merged

dakra merged 1 commit into
dakra:mainfrom
plopresti:file-uri-remote-terminal

Conversation

@plopresti

Copy link
Copy Markdown
Contributor

Fixes #851.

One more branch in ghostel--open-link's file-URI cond: host empty or localhost with a
remote default-directory prepends the remote prefix, before the Windows local-path case.
ghostel-test-open-file-uri gets four rows: no host and localhost in a remote buffer, the
Emacs machine's own name in a remote buffer (stays local), and the no-host case on
windows-nt. The first new row fails before the change.

A file:/// link with no host, or with localhost, names a file where
the program that printed it runs.  In a buffer whose default-directory
is remote that is the remote host, as for a bare absolute path already;
it opened on the Emacs machine instead.  An explicit host keeps its
meaning, so a link to the Emacs machine by name still opens locally.

Fixes dakra#851
@dakra
dakra force-pushed the file-uri-remote-terminal branch from 87e8c3f to 70cff84 Compare December 1, 2026 08:56
@dakra
dakra merged commit 70cff84 into dakra:main Dec 1, 2026
@dakra

dakra commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Thanks.

This branch was previously deployed

1 inactive deployment
github-pages — 70cff849 Deployed Dec 1, 2026 by dakra via deploy #299
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.

A file:/// link without a host opens locally in a remote terminal

2 participants