Suggestion: Hide word-prediction-bar if there are no suggestions

asked 2020-05-14 12:10:04 +0300

Thaodan gravatar image

updated 2020-05-17 16:05:24 +0300

It would useful for those that don't want prediction or when there are no suggestions because the app disabled them like the web-browser. Similar to Option to disable input suggestion but just for the prediction bar.

EDIT: To clarify my intend after I read the comments: the purpose of my suggestion is just to remove the bar if their are currently no suggestions and not entirely. I admin that the paste symbol is on it too but even this could be a trigger to show the bar just like having predictions up.

edit retag flag offensive close delete

Comments

1

Thanks :-) One step in this direction is to pkcon remove jolla-xt9 and then killall maliit-server. This removes the word suggestions, but does not hide the bar.

NobodyInPerson ( 2020-05-14 19:26:09 +0300 )edit

You can remove the text predictions, you can remove the bar the predictions sit on but what happens when you have text on the clipboard?, the clipboard sits on the same space the text predictions do.

If the prediction bar area is reduced, it makes Clipboard almost, if not, impossible to click on, so now that has to be moved somewhere, but where?, the keyboard is already crammed.

Spam Hunter ( 2020-05-14 21:38:42 +0300 )edit

@Edz How do you hide the bar the predictions sit on? Where in the QML is that? The patch that used to work used the clipboard state to determine whether to show the bar or not. That was a very nice behaviour.

NobodyInPerson ( 2020-05-15 21:10:09 +0300 )edit

@NobodyInPerson

It's often prudent to give the author of the original patch a nudge to see if he/she is maintaining or not?, so I've left a message with Schturman asking as much.

A lot has changed with regard to one certain file in the original patch, I couldn't make head nor tail of it compared to the original file. So I wrote my own patch.

Give Schturman a day or two to reply, I'd rather he fixed his patch than me releasing a duplicate of that patch. but, If he doesn't reply, I'll consider releasing my patch version to OpenRepos, which is preferred.

The file I started with is here;

/usr/share/maliit/plugins/com/jolla/TopItem.qml

change height property to the following;

height: Theme.itemSizeSmall / 3
Spam Hunter ( 2020-05-16 03:19:50 +0300 )edit
1

Still not sure how this question is different from the linked one.

luen ( 2020-05-16 10:39:32 +0300 )edit