You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I need to have http instead of https in the links. Currently I deal with this using
(use-package git-link
:ensuret:bind ("C-c g l". git-link)
:config
(setq git-link-open-in-browser t)
(defungit-link--http-advice (funclink)
(funcall func (replace-regexp-in-string"^https:""http:"link)))
(defungit-link-toggle-http-advice ()
"Toggle using http or https by advicing `git-link--new'."
(interactive)
(if (advice--p (advice--symbol-function'git-link--new))
(advice-remove'git-link--new'git-link--http-advice)
(advice-add'git-link--new:around'git-link--http-advice)))
(git-link-toggle-http-advice))
But clearly there is a better way to deal with this. It seems to me that it is trivial to support this in the code (e.g., by adding a variable instead of hard-coding https in the links).
Activity
sshaw commentedon Nov 26, 2023
What services do you need to link to using http?
drdv commentedon Nov 26, 2023
self-hosted gitlab
sshaw commentedon Jul 8, 2025
@drdv what about adding support for URL schemes to
git-link-web-host-alist. For example:sshaw commentedon Jul 12, 2025
Fixed by #143