You are not logged in.
I am just creating a simple project for myself. I created a simple API that provides next word suggestions based on previous words.
I know there are so many applications in linux that does this but i wanted to create one from scratch for fun.
Is there any tool in linux that i can use to provide suggestion popups while typing that can be used in any application like firefox, libreoffice, etc... ?
Thank You!
Offline
Is there any tool in linux that i can use to provide suggestion popups while typing that can be used in any application like firefox, libreoffice, etc... ?
Have you tried grammar apps or plugins?
Offline
But, the grammar apps have their own predicting techniques which they leverage.
What i want is a tool that gives suggestions when typing based on my own API on apps like firefox, libreoffice, etc..
Like, a small popup that should appear when i am typing.
I have attached an image for example:
Offline
Seems good but the issue with the API and probably the whole of this project all together is that:
This will probably lead to massive amounts of lag when typing. Doing database look-ups over the network, quite a bit of analysis to be done before sending any response back, type one more character and all this has to be done all over again.
Last edited by ReDress (Today 08:41:13)
Offline
I agree with the lagging part but i was just searching some tools like that which shows popup.
There are some tools like this: https://github.com/leehblue/texpander which uses rofi to show popups but rofi doesn't appear where i am typing like in the image above.
I was looking for some tools like that.
Offline
The geometry of the text cursor is private the client - you'll have to export it from there using a plugin etc. that runs in the context of the client and can detect that an editing widget has the focus us query its cursor position and map that to the screen geometry.
Since you'll need the exact same access to get to the text feeding the autoprediction that should not really be a problem?
It's hard to tell how to fix a problem when we don't even know what kind of approach leads to which kind of problem itfp.
Offline
It's probably quite easy to hook input events(signals) with a framework like Qt.
Offline
You can install an eventFilter, but you're not generally interested in random keyevents but only for text- and lineedits.
Qt allows a plugin to list all widgets and hook into them, though.
Still doesn't change anything about #6 - location is not possible w/o some support from within the client.
Offline