Crate yghfl

Crate yghfl 

Source
Expand description

Copy GitHub URL (file/line/col) for the current Helix buffer to clipboard.

ยงUsage

yghfl # copies https://github.com/<org>/<repo>/tree/<branch>/<path>#L<C> to clipboard

ยงErrors

  • WezTerm pane text retrieval fails.
  • Status line extraction or parse fails.
  • Git repository root or remote URL resolution fails.
  • Multiple or zero GitHub remotes detected.
  • Current branch lookup fails.
  • Invalid UTF-8 in paths or process output.

Functionsยง

build_github_link ๐Ÿ”’
Builds GitHub link pointing to specific file and line.
build_hx_cursor_absolute_file_path ๐Ÿ”’
Builds absolute file path for Helix cursor position.
main ๐Ÿ”’
Copy GitHub URL (file/line/col) for the current Helix buffer to clipboard.