CAA0558 / gitiles

Automatically exported from code.google.com/p/gitiles
0 stars 0 forks source link

Allow simple search terms on source pages #81

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The new built-in Markdown rendering is awesome :)

In order to make it even more awesome for doing high-level code documentation, 
I'm proposing that gitiles pages that render source files also accept a new GET 
parameter `s=TERM` which will scroll the page down to the first instance of 
TERM.

A possible implementation:
  * in BlobSoyData#prettify, track for the Nth TERM. On the first hit, insert an anchor #TERM_N
  * in the javascript, if no #anchor exists in the URL and the s=TERM is present, set the anchor to #TERM when the document becomes ready.

Original issue reported on code.google.com by iannucci@chromium.org on 20 Jul 2015 at 5:24

GoogleCodeExporter commented 9 years ago
In case it's unclear, the purpose of this would be to enable markdown files to 
link to code by e.g. function or classname, as opposed to line number. This 
should be more-impervious to drift as the code evolves.

Original comment by iannucci@chromium.org on 20 Jul 2015 at 5:25

GoogleCodeExporter commented 9 years ago
Sony Xperia C3 dual software 

Original comment by NabilaNM1991@gmail.com on 16 Aug 2015 at 3:01