SqrtMinusOne / reverso.el

Emacs client for https://www.reverso.net/: translation, grammar check, context and synonyms search
GNU General Public License v3.0
49 stars 4 forks source link

transient language selectors #5

Open mooseyboots opened 3 weeks ago

mooseyboots commented 3 weeks ago

hi again,

i'm learning transient and looking to emulate some of the stuff in reverso.el. i have a question about your infixes.

your language setters for translation, context, synonyms all use completing read when selecting a language, while the grammar language selector, when activated, just directly selects the next language in the list, with no completion, and updates the display accordingly.

are you able to point me to the class or method or whatever that distinguishes the grammar selectors behaviour? that's what i'd like to emulate if possible.

as far as i can see, they all use reverso--transient-language.

mooseyboots commented 3 weeks ago

it's all good, i got it working by calquing my code off your methods, thanks for the nice code to learn from.

SqrtMinusOne commented 3 weeks ago

Thank you <3

That code felt pretty hacky when I was figuring it out. But it has been working ever since.