New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autokey-gtk phrases with "Paste using: Mouse Selection" don't expand #155
Comments
Add the required length parameter to Gtk.Clipboard.set_text().
Now I got how it works, so all I can say is: Works for me… This activates the window currently below the mouse cursor and/or places the text cursor directly under the mouse cursor, then pastes there. #153 still applies for both clipboard methods. |
Indeed :-/ , even when the cursor is over a terminal (tested with Gnome Terminal). Back to Keyboard with bug #151, or Clipboard with bug #153. |
I’ve refactored the pasting, so mouse selection should always expand and then restore the previous content. To work reliably, autokey has to move the mouse cursor to the desired location before pasting. Moving the cursor is easy and possible from within current AutoKey, but finding the exact spot where to paste is far from easy. This requires analysing the screen content, find the currently active text widget (think of 'light theme', 'dark theme', each computer game looking different) and then find the text cursor (which might be invisible!). |
@luziferius 👍, makes total sense; maybe the |
Classification:
Bug
Reproducibility:
Always
Summary
Removal of the trigger characters does happen, but then no phrase is inserted
Steps to Reproduce
Paste using "Mouse Selection"
phrase expandingttt
totestphrase
,ttt
Expected Results
ttt
is removed.testphrase
is inserted.Actual Results
ttt
is removed (with 3BACKSPACE
, see log)...testphrase
is not inserted.autokey-gtk --verbose
output:Version
AutoKey-Py3 > 0.94.1 on
master
with 572316b , onDistro:
Notes
Followup of 572316b#commitcomment-29270271 , which succeeds at preventing a crash, but fails at doing the phrase replacement.
Workaround: use other replacement methods (clipboard / keyboard)
The text was updated successfully, but these errors were encountered: