Skip to content

fix(web): keep spaced wrapped file paths clickable - #3

Closed
Hugo-DDT wants to merge 1 commit into
masterfrom
cursor/spaced-wrapped-file-paths-b495
Closed

Hugo-DDT wants to merge 1 commit into
masterfrom
cursor/spaced-wrapped-file-paths-b495

Conversation

@Hugo-DDT

Copy link
Copy Markdown
Owner

Fixes Ark0N#733

A parenthesised file path with a space in its filename ((/mnt/data/Kobo/Kobo eReader.conf), including when that name is hard-wrapped between the words) was linked as the folder prefix /mnt/data/Kobo/Kobo.

.conf is now a link extension, matching the text the guarded attachment routes already serve. Parentheses bound the whole spaced path (absolute, relative, ~/, or a bare filename), so the folder prefix and the extension-bearing tail are not linked as fragments. A hard wrap between those filename words keeps the separating space, and the clickable cells stay on the rows that hold the name. Existing URL, folder, and mid-token path joins are unchanged.

Tests: test/spaced-file-path-links.test.ts, test/file-path-link-forms.test.ts, and test/response-viewer-file-links.test.ts (these failed before the fix and pass after).

Open in Web Open in Cursor 

A parenthesised path with a space in its filename was linked as the
folder prefix. .conf joins the shared link extensions, parentheses
bound the whole path, and a hard wrap between filename words keeps the
separating space and the clickable cells on each row.

Fixes Ark0N#733

Co-authored-by: DDT <1786035110@qq.com>
Copilot AI balanced review requested due to automatic review settings October 28, 2026 12:26

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 insufficient remaining quota.

@Hugo-DDT

Copy link
Copy Markdown
Owner Author

Superseded by upstream Ark0N#734

@Hugo-DDT Hugo-DDT closed this Oct 28, 2026
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.

File links truncate wrapped filenames containing spaces, including .conf files

2 participants