{"id":38529623,"url":"https://github.com/mcanouil/quarto-remember","last_synced_at":"2026-01-17T06:53:23.538Z","repository":{"id":321674034,"uuid":"1086683562","full_name":"mcanouil/quarto-remember","owner":"mcanouil","description":"An extension for Quarto to save and restore navigation position across page visits for both HTML documents and Reveal.js presentations.","archived":false,"fork":false,"pushed_at":"2025-12-04T14:01:27.000Z","size":28,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-06T20:14:25.646Z","etag":null,"topics":["bookmark","navigation-tracker","quarto","quarto-extension","remember","resume-reading","stable"],"latest_commit_sha":null,"homepage":"https://m.canouil.dev/quarto-remember/","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcanouil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"mcanouil","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-10-30T18:50:46.000Z","updated_at":"2025-12-04T14:01:30.000Z","dependencies_parsed_at":"2025-10-30T23:43:43.338Z","dependency_job_id":null,"html_url":"https://github.com/mcanouil/quarto-remember","commit_stats":null,"previous_names":["mcanouil/quarto-remember"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mcanouil/quarto-remember","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-remember","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-remember/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-remember/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-remember/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcanouil","download_url":"https://codeload.github.com/mcanouil/quarto-remember/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-remember/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28502972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bookmark","navigation-tracker","quarto","quarto-extension","remember","resume-reading","stable"],"created_at":"2026-01-17T06:53:23.456Z","updated_at":"2026-01-17T06:53:23.520Z","avatar_url":"https://github.com/mcanouil.png","language":"Lua","funding_links":["https://github.com/sponsors/mcanouil"],"categories":[],"sub_categories":[],"readme":"# Remember Extension For Quarto\n\n`remember` is an extension for Quarto to save and restore navigation position across page visits for HTML documents, Quarto books, and Reveal.js presentations.\n\n## Installation\n\n```bash\nquarto add mcanouil/quarto-remember\n```\n\nThis will install the extension under the `_extensions` subdirectory.\n\nIf you're using version control, you will want to check in this directory.\n\n## Usage\n\nTo activate the filter, add the following to your YAML front matter:\n\n```yaml\nfilters:\n  - remember\n```\n\n## How It Works\n\n### HTML Documents\n\nThe extension automatically tracks:\n\n- **Scroll Position:** Saves your vertical scroll position as you navigate the page.\n- **Hash Anchors:** Remembers which section you were viewing (e.g., `#section-name`).\n- **Visit Timestamp:** Records when you last visited the page.\n\nWhen you return to the page, you'll be prompted with a modal asking if you want to resume from where you left off.\n\n### Quarto Books\n\nFor Quarto books, the extension provides cross-chapter navigation tracking:\n\n- **Current Chapter:** Remembers which chapter you were reading.\n- **Scroll Position:** Saves your position within that chapter.\n- **Automatic Redirect:** When you return to any page in the book, you'll be automatically redirected to the chapter you were reading.\n- **Visit Timestamp:** Records when you last visited the book.\n\nThe extension detects Quarto books by checking for both `.page-navigation` and `.nav-sidebar` elements.\n\n### Reveal.js Presentations\n\nThe extension automatically tracks:\n\n- **Slide Indices:** Saves the current horizontal, vertical, and fragment indices.\n- **Visit Timestamp:** Records when you last viewed the presentation.\n\nWhen you return to the presentation, you'll be prompted to resume from your last viewed slide.\n\n## Features\n\n- **Non-Intrusive:** Only prompts when there's a meaningful position to restore (scroll \u003e 100px or at a specific slide).\n- **User Control:** Users can choose to resume or start fresh. Declining clears the stored position.\n- **Page-Specific:** Each page/book tracked separately.\n- **Cross-Chapter Navigation:** For books, automatically redirects to the correct chapter.\n- **Prompt Debouncing:** Won't show the prompt more than once every 5 seconds to avoid annoyance.\n- **Time-Aware:** Shows \"X minutes/hours/days ago\" to help users decide whether to resume.\n- **Privacy-Focused:** All data stored locally in browser `localStorage`, nothing sent to external servers.\n- **Accessible:** Keyboard navigation support (Escape to dismiss prompt), ARIA attributes for screen readers.\n- **Responsive:** Mobile-friendly modal design.\n- **Dark Mode:** Adapts to user's colour scheme preference (supports both system preference and Quarto's `.quarto-dark`/`.quarto-light` classes).\n\n## Limitations\n\n- Only works with HTML-based output formats (`html`, `revealjs`, and `book`).\n- Requires browser support for `localStorage` (not available in some private browsing modes).\n- For regular pages, position is tracked per pathname. For books, position is tracked per book (all chapters share the same tracking).\n- Book detection requires both `.page-navigation` and `.nav-sidebar` elements in the DOM.\n\n## Example\n\nHere is the source code for a minimal example: [example.qmd](example.qmd).\n\nOutput of `example.qmd`:\n\n- [HTML](https://m.canouil.dev/quarto-remember/)\n- [Reveal.js](https://m.canouil.dev/quarto-remember/example-revealjs.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcanouil%2Fquarto-remember","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcanouil%2Fquarto-remember","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcanouil%2Fquarto-remember/lists"}