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

Feature request: Setting the page's fragment identifier automatically #41

Closed
lord opened this issue Sep 16, 2013 · 2 comments
Closed

Feature request: Setting the page's fragment identifier automatically #41

lord opened this issue Sep 16, 2013 · 2 comments
Assignees

Comments

@lord
Copy link
Contributor

lord commented Sep 16, 2013

Right now, when you scroll, the stuff after the # in the page's header doesn't change. It only changes when you click on a link in the ToC.

The option to set that automatically as you scroll would be a really nice feature — that way, on a long document, users can just copy the URL for that exact part of the page without worrying about clicking on the ToC first.

Awesome plugin by the way! Loving it!

@ghost ghost assigned gfranko Sep 17, 2013
@gfranko
Copy link
Owner

gfranko commented Sep 17, 2013

Great suggestion. I just released Tocify v1.8.0, which added the scrollHistory option. You can use this feature by doing this:

$('#toc').tocify({
  scrollHistory: true
});

@gfranko gfranko closed this as completed Sep 17, 2013
@lord
Copy link
Contributor Author

lord commented Sep 17, 2013

Sweet, thanks!

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

2 participants