You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I want to end my posts with a tongue-stuck-out emoticon (:P). When I do this, Tusky opens the emoji selector; and because the emoji selector covers the bottom bar, including the button to send the post, I usually end up accidentally selecting an emoji that I don’t want, which I then have to delete (and re-type the :P).
Would it be possible to make the selector not extend above the bottom bar?
(This also affects other colon-and-letter emoticons, such as :D, but I mostly notice it with :P – depends on what you type more often, I suppose. Non-letter emoticons like :) are of course not affected.)
Motivation
Because it keeps annoying me, I guess. :)
The text was updated successfully, but these errors were encountered:
I suppose an alternative solution would be to only start showing the emoji selector after a colon and two letters – that’s what Mastodon web seems to do. (I never realized it before, but it sounds pretty reasonable to me. And might be easier to implement ^^)
I suppose an alternative solution would be to only start showing the emoji selector after a colon and two letters – that’s what Mastodon web seems to do. (I never realized it before, but it sounds pretty reasonable to me. And might be easier to implement ^^)
Completely untested patch for this approach (based on 55467af):
diff --git a/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt b/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt
index d0befe8685..be5b3c046f 100644
--- a/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt+++ b/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt@@ -454,6 +454,9 @@ class ComposeViewModel @Inject constructor(
':' -> {
val emojiList = emoji.replayCache.firstOrNull() ?: return emptyList()
val incomplete = token.substring(1)
+ if (incomplete.length < 2) {+ return emptyList()+ }
emojiList.filter { emoji ->
emoji.shortcode.contains(incomplete, ignoreCase = true)
Maybe some day I’ll be bothered enough by this to set up an Android test environment and try it out.
Pitch
Sometimes I want to end my posts with a tongue-stuck-out emoticon (
:P
). When I do this, Tusky opens the emoji selector; and because the emoji selector covers the bottom bar, including the button to send the post, I usually end up accidentally selecting an emoji that I don’t want, which I then have to delete (and re-type the:P
).Would it be possible to make the selector not extend above the bottom bar?
(This also affects other colon-and-letter emoticons, such as
:D
, but I mostly notice it with:P
– depends on what you type more often, I suppose. Non-letter emoticons like:)
are of course not affected.)Motivation
Because it keeps annoying me, I guess. :)
The text was updated successfully, but these errors were encountered: