tui.link_open
tui.md.link_open PANE
Follows the focused link of the document shown in PANE. Returns 1 when no link is focused.
Notes
- The function set with
tui.md.on_linkis called first, asFN URL TEXT PANE; return0when it handled the link. #anchorscrolls to that heading (GitHub-style slug).- A relative
.mdor.md#anchorlink loads that file in the pane and calls the function set withtui.md.on_navigate. - Anything else is copied to the clipboard with a notification.
- Before a jump, the position is pushed for
tui.md.back.
Example
tui.md.link_open docs
