We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be very helpful for taking notes.
The text was updated successfully, but these errors were encountered:
@yuchen-lea Modify the function immersive-translate-paragraph to:
immersive-translate-paragraph
(defun immersive-translate-paragraph () "Translate the current paragraph." (interactive) (save-excursion (unless (immersive-translate-disable-p) (when-let* ((paragraph (immersive-translate-join-lin (immersive-translate--get-paragraph))) (content (if (eq immersive-translate-backend 'chatgpt) (immersive-translate-chatgpt-create-prompt paragraph) paragraph)) (ov t)) (immersive-translate-end-of-paragraph) (if (immersive-translate--cache-p content) (let ((translation (immersive-translate--cache-get content))) (progn (kill-new translation) ;; copy the translated result to kill-ring (immersive-translate--add-ov translation))) (setq ov (make-overlay (1- (point)) (point))) (overlay-put ov 'after-string immersive-translate-pending-message) (immersive-translate-do-translate content))))))
while overlay shows, the translation results will copy to the kill-ring instantly.
Sorry, something went wrong.
Thanks for the suggestion, but I prefer that the translated text could be manually selected and then copied like the original text
No branches or pull requests
It would be very helpful for taking notes.
The text was updated successfully, but these errors were encountered: