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

Optional text selection context menu item #475

Open
3 tasks done
Terrance opened this issue Feb 14, 2025 · 1 comment
Open
3 tasks done

Optional text selection context menu item #475

Terrance opened this issue Feb 14, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@Terrance
Copy link

Describe your suggested feature

TranslateYou appears in the text selection context menu as Translate (#11) when it looks like there's something to be translated.

I'm assuming it's up to Android itself (rather than this app) whether to appear or not on a given selection. Whilst it appears reliably on non-Latin scripts, the Translate option also shows up when selecting some English words. Its conditional appearance messes with muscle memory when trying to use other text selection options, for example Select All, as this appears either as the last visible option in the toolbar when Translate isn't offered, or else in the overflow menu when it is.

I don't often need translations (the odd times I do make use of it, I'm typically pasting or typing into the app anyway), whereas I often want to share or select all text when composing notes -- the easiest way to do that is to double-tap a word, then tap Select All, but of course the option sometimes gets buried and I end up hitting Paste instead!

I realise this (probably) isn't directly your problem, but it would be useful for the menu item to be optional/configurable if possible, as Translate ends up being the front option and getting in the way enough to be a nuisance.

Other details

No response

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I will fill out all of the requested information in this form.
@Terrance Terrance added the enhancement New feature or request label Feb 14, 2025
@Bnyro
Copy link
Member

Bnyro commented Feb 14, 2025

As apps must hardcode their "text processing" capabilities do that they are known at compile time, there's no real way to do allow users to disable it.

There's however one very hackish workaround, but I don't really think maintaining different activity aliases is worth it: https://stackoverflow.com/questions/40505357/disable-the-intent-filter-from-android-manifest-programmatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants