Skip to content

Translate popup - #161

Open
agzam wants to merge 3 commits into
atykhonov:masterfrom
agzam:translate-popup
Open

Translate popup#161
agzam wants to merge 3 commits into
atykhonov:masterfrom
agzam:translate-popup

Conversation

@agzam

@agzam agzam commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

A while ago I built a posframe popup that piggybacks on google-translate.el and it's been working beautifully. I thought it should be the part of the package rather than sitting in my config - no good for anyone but me.

It's great for when reading books, works in markdown and org-modes, etc. Here's an example of how it looks:

image image

I'm willing to pledge maintenance and support for this feature, please give it a consideration. Otherwise I'll just keep it in my fork and people interested in using it will have to fetch the package from there.

agzam added a commit to agzam/.doom.d that referenced this pull request Feb 13, 2026
atykhonov/google-translate#161

And may take a while to see it merged, for now I'm consuming it from
my own fork
The context-aware popup detected paragraphs and sentences with
mode-agnostic movement, which misfired in Org and Markdown: a heading
grabbed the body paragraph below it, list items collapsed to a single
word, and sentences beginning on a wrapped line were missed.

Detection is now major-mode aware. Headings resolve to a clean title
(Org via org-element raw-value, Markdown ATX/Setext), paragraphs and
list items are bounded through org-element and Markdown-aware movement
with bullets and checkboxes excluded, and sentence starts are matched
across a single line break. Priority is region > heading >
paragraph/item > sentence > word.
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.

1 participant