D.A.B.Tv0.0.33 Tutorial API DABT Tools ↗ GitHub ↗

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_link is called first, as FN URL TEXT PANE; return 0 when it handled the link.
  • #anchor scrolls to that heading (GitHub-style slug).
  • A relative .md or .md#anchor link loads that file in the pane and calls the function set with tui.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