Make URI schemes/protocols configurable #531

Closed
opened 5 months ago by dnkl · 0 comments
dnkl commented 5 months ago
Owner

We currently have a hardcoded list of schemes/protocols that we match against when searching for URLs.

Making this configurable is easy, and would allow users to add their own exotic protocols, or remove things they don't want matched.

Furthermore, I think it's time we added an [url] section to foot.ini. We currently have url-launch, jump-label-letters and osc8-underline at the top-level.

Let's move all three, and the new protocols option to a new section:

launch=xdg-open ${url}
label-letters=sadfjklewcmpgh
osc8-underline=url-mode|always
protocols=http https ftp ftps file gopher gemini mailto

Which protocols should we enable by default?

We currently have a hardcoded list of schemes/protocols that we match against when searching for URLs. Making this configurable is easy, and would allow users to add their own exotic protocols, or remove things they don't want matched. Furthermore, I think it's time we added an `[url]` section to `foot.ini`. We currently have `url-launch`, `jump-label-letters` and `osc8-underline` at the top-level. Let's move all three, and the new protocols option to a new section: ```ini launch=xdg-open ${url} label-letters=sadfjklewcmpgh osc8-underline=url-mode|always protocols=http https ftp ftps file gopher gemini mailto ``` Which protocols should we enable by default?
dnkl added the
enhancement
easy
labels 5 months ago
dnkl referenced this issue from a commit 5 months ago
dnkl referenced this issue from a commit 5 months ago
dnkl closed this issue 5 months ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.