maoschanz / emoji-selector-for-gnome

This extension provide a popup menu with some emojis ; clicking on an emoji copies it to the clipboard.
GNU General Public License v3.0
470 stars 76 forks source link

Open emoji window next to open text field #176

Open Combinacijus opened 1 year ago

timreach commented 1 year ago

Does anyone know of any other extensions that create custom input field anchored context menus? I would be interested in trying to implement this feature and a reference would be useful.

Combinacijus commented 1 year ago

@timreach Asked GPT-4 for examples but it said there's none as of 2021 Sep. Also asked how to make one and it basically said it's really hard and that it might be easier to make standalone application instead of extension. Detecting the focused input field in a desktop environment like GNOME can be challenging, as it depends on the application and the graphical toolkit being used. However, you can try using the xdotool command-line utility to achieve this xdotool getwindowfocus getwindowname. This command returns the name of the currently focused window. However, it might not provide information specifically about the focused input field within that window

Of course do your own research because there might be a way.

Closest software I know is CopyQ but it only opens window next to mouse and it's standalone application