Skip to content

Fix Gemini title selector (#9) and feat: add export shortcuts & fix Gemini auto-scroll interruption#8

Closed
da- wants to merge 3 commits intorevivalstack:mainfrom
da-:main
Closed

Fix Gemini title selector (#9) and feat: add export shortcuts & fix Gemini auto-scroll interruption#8
da- wants to merge 3 commits intorevivalstack:mainfrom
da-:main

Conversation

@da-
Copy link
Copy Markdown

@da- da- commented Jan 12, 2026

Three commits:

  1. Keyboard Shortcuts: Added Alt+M (Markdown) and Alt+J (JSON) listeners to UIManager to trigger exports without clicking buttons. Added input guards to prevent triggering while typing in chat fields.

  2. Gemini Auto-scroll Fix: Updated autoScrollToTop to be "polite." The script now checks scrollTop before scrolling; if the user has scrolled down (>100px), the auto-scroll is aborted to prevent interrupting reading or typing. And State Management: Added URL sanitization to handleUrlChange to ignore minor background state updates (e.g., query parameters added by Gemini) that were previously triggering unnecessary re-scrolls.

  3. fix: Updated Gemini selector to support new tag structure (Fixes Gemini reports default title instead of chat's title #9)

Code written by Gemini Pro 3.0

da- added 3 commits January 12, 2026 13:00
Added keyboard shortcuts for exporting chat data in Markdown and JSON formats.
Gemini Auto-scroll Fix: Updated autoScrollToTop to be "polite." The script now checks scrollTop before scrolling; if the user has scrolled down (>100px), the auto-scroll is aborted to prevent interrupting reading or typing.

State Management: Added URL sanitization to handleUrlChange to ignore minor background state updates (e.g., query parameters added by Gemini) that were previously triggering unnecessary re-scrolls.

Code implemented by Gemini Pro 3.
fix recommended by Gemini: 

It removes div and a, so it matches whatever tag Google uses (anchor, div, button, list item).

It includes both [aria-selected="true"] (the modern standard for accessibility) and .selected (the older class-based method) to ensure it catches the active state regardless of how Google styles it.
@da-
Copy link
Copy Markdown
Author

da- commented Jan 24, 2026

Added a fix for the Gemini chat title bug (Issue #9) to this PR as well. (See latest commit)

@da- da- changed the title feat: add export shortcuts & fix Gemini auto-scroll interruption Fix Gemini title selector (#9) and feat: add export shortcuts & fix Gemini auto-scroll interruption Jan 24, 2026
@LouKordos
Copy link
Copy Markdown

@da- Thanks for your work. I am curious, did you never have the issue I describe in #12 ? I am asking you because you seem to be more active on this project, as the last official commit here was 8months ago and I am trying to decide which version to choose. In your fork, you also seem to have added support for downloading attached files or am I misunderstanding?

@micmejia micmejia closed this in dc2db17 Mar 19, 2026
@micmejia
Copy link
Copy Markdown
Member

Most of these have been addressed in v3.0.0.

I incorporated some of your codes for keyboard shortcut -- thanks.

Full release notes here: https://github.com/revivalstack/ai-chat-exporter/releases/tag/3.0.0"

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gemini reports default title instead of chat's title

3 participants