Skip to content
New issue

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

[Easy Dictionary] Unable to translate selected text #9350

Closed
0x0-00 opened this issue Nov 21, 2023 · 3 comments
Closed

[Easy Dictionary] Unable to translate selected text #9350

0x0-00 opened this issue Nov 21, 2023 · 3 comments
Labels
bug Something isn't working extension: easydict Issues related to the easydict extension extension Issues related to one of the extensions in the Store

Comments

@0x0-00
Copy link

0x0-00 commented Nov 21, 2023

Extension

https://www.raycast.com/isfeng/easydict

Description

When I select text in a browser or other editor and press the translation shortcut, the selected text is not added to the translation input box, the first time it works, but when I select the text again, the previously translated text is always in the translation box, even if I delete it and use the shortcut to retranslate the selected text, it still doesn't work so I need to quit and wait for a while for it to work

Steps To Reproduce

1.Select text to translate using shortcut keys
2.Select the new text again and press the shortcut key Translate

Current Behaviour

No response

Expected Behaviour

No response

@0x0-00 0x0-00 added bug Something isn't working extension Issues related to one of the extensions in the Store labels Nov 21, 2023
@raycastbot raycastbot added the extension: easydict Issues related to the easydict extension label Nov 21, 2023
@raycastbot
Copy link
Collaborator

Thank you for opening this issue!

🔔 @tisfeng you might want to have a look.

💡 Author and Contributors commands

The author and contributors of isfeng/easydict can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopen the issue.

@tisfeng
Copy link
Contributor

tisfeng commented Nov 21, 2023

I've debugged it a bit and I feel that Raycast has recently changed the extension activation logic, previously every time I activated an extension using a shortcut key, it would execute the extension code, but now it will decide whether to execute the code or not based on the Pop to Root Search option in the settings.

Specifically, if you set 5s, if you activate the extension with the shortcut key within 5s, the extension code will not be executed, only the previous interface will be displayed, if you activate the extension with the shortcut key after 5s, the extension code will be executed, i.e. it will fetch and translate the words.

It's been a while since I've followed Raycast's changes, I don't know why they suddenly changed the logic 😓

image

@0x0-00
Copy link
Author

0x0-00 commented Nov 22, 2023

Thank you very much The problem is solved, his logic is not friendly enough for some extensions, it would be a great little feature if it could be changed to add a separate time for extensions to return to the root directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working extension: easydict Issues related to the easydict extension extension Issues related to one of the extensions in the Store
Projects
None yet
Development

No branches or pull requests

3 participants