telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.18k stars 5.19k forks source link

Support for Substitutions especially Text Replacements in macOS #26272

Closed ADTC closed 1 year ago

ADTC commented 1 year ago

Is your feature request related to a problem?

Apple macOS has a feature to do text replacements where a simple keyword is expanded to a longer piece of text. It's part of the Substitutions framework. Unfortunately this feature isn't available universally in all apps because the app developer needs to explicitly enable it in their app.

The feature is described here: https://www.guidingtech.com/top-ways-to-fix-text-replacement-not-working-on-mac/

image

Describe the solution you'd like

Text replacements could be very useful in Telegram, especially considering it is a chat app. For example the default included text replacement omw could enable someone to send On my way! quickly without typing it out in full.

(Note: The UI below looks different in macOS Ventura.)

image

Therefore I would like it to be enabled and available in the Telegram desktop app for Mac. It should be enabled by default for new installations (and when the feature is introduced).

Describe alternatives you've considered

I can open Spotlight, do a text replacement there, select it, copy it and paste it in Telegram. But this has too many steps to do.

Additional context

This was previously asked in the auto-closed issue #6064 which didn't gain enough attention. I want to bring the feature request to the limelight again, to hopefully gain attention this time.

ilya-fedin commented 1 year ago

There are issues with more attention like #5268 or #976, all of which seem to conclude the same: it's not possible to implement due to tdesktop using Qt. You have to switch to the native macOS client (https://macos.telegram.org) and ask the feature for it (at https://bugs.telegram.org or https://github.com/overtake/TelegramSwift/issues) if it doesn't have yet.

ADTC commented 1 year ago

Ok. That's sad though because only this app is doing the notifications and Dock bounce correctly. In fact I switched to this from that because of the broken notifications in the native app. :(

ADTC commented 1 year ago

Thanks anyway. :)