Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow simple search terms on source pages #81

Open
GoogleCodeExporter opened this issue Oct 21, 2015 · 2 comments
Open

Allow simple search terms on source pages #81

GoogleCodeExporter opened this issue Oct 21, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 20 Jul 2015 at 5:24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant