ferranrecio / githubmarkdown

Published:

Version: 0.1+e674ede updated

Summary: Add clipboard markdown link of the current selected code line at the bottom of the page.

License: MIT

This script add some extra markdown links for code line to be used in trackers like Jira.

The compatible views for now are:

  • Diff view (single or split)
  • Single file view

The script detects when the user clicks on a line number and get the anchor link to generate some markdown links. Those links appears a as a toolbar at the bottom of the page and have a "clipboard" button to copy the markdown link into the clipboard.

The current generated links are:

Based on line number

  • [here|url]
  • [#LINENUMBER|url]

Based on path (if the script finds it)

  • [FILEPATH|url]
  • [FILEPATH #LINENUMBER|url]

Based on file (if the script finds it)

  • [FILENAME|url]
  • [FILENAME #LINENUMBER|url]

Based on code (if the line is a definition)

  • [METHODNAME|url]
  • [CLASSNAME|url]
  • other

Rating: 0