mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 17:27:39 +02:00
Hyperlink doc text role
This commit is contained in:
@@ -168,7 +168,9 @@ def file(x: str) -> str:
|
|||||||
|
|
||||||
@role
|
@role
|
||||||
def doc(x: str) -> str:
|
def doc(x: str) -> str:
|
||||||
return website_url(x)
|
t, q = text_and_target(x)
|
||||||
|
url = f'kitty+doc://{hostname()}/{q.lstrip("/")}'
|
||||||
|
return hyperlink_for_url(url, t)
|
||||||
|
|
||||||
|
|
||||||
@run_once
|
@run_once
|
||||||
|
|||||||
Reference in New Issue
Block a user