ydotool icon indicating copy to clipboard operation
ydotool copied to clipboard

Latest release no longer types '\'

Open firecat53 opened this issue 2 years ago • 4 comments

Before the latest set of commits today (built as of e9d4ed823f) , ydotool would type the \ correctly but now it no longer does. Reverting to commits before today (2023-01-11) works fine. Thanks!

I'm suspecting it's commit a6f9c1a1 (implement escape for type).

As an aside, it also will not type the £ character.

firecat53 avatar Jan 12 '23 01:01 firecat53

The latest ydotool type added support of escape sequences. Now you need two \ to type a single one. You can have a look at its help and use -e 0 to revert to the old behavior.

ReimuNotMoe avatar Jan 12 '23 09:01 ReimuNotMoe

Im running in to the £ issue. And after testing around a bit further, there is a lot that doesn't seem to work correctly. For example, running ydotool type "¡@£$€¥{[]}" -e 0 results in "¤Åå, which isnt really correct... It might be something weird keyboard layouts. All standard A-Z 0-9 keys seems to work perfectly, but anything "non standard" such aäö doesn't. Basically anything that doesn't match up with a "standard qwerty layout" seems broken.

This also seems to be the same issue. https://github.com/ReimuNotMoe/ydotool/issues/43#issuecomment-1225485103

algnor avatar Feb 02 '23 13:02 algnor

There are more characters which are not typed correctly. For example " and (. The parameter -e 0 did not work in this example.

% echo "echo \"§$%&/()?\"" | wl-copy
% wl-paste
echo "§$%&/()?"

% ydotool type "$(wl-paste)" -e 0
echo Ä$%/-)=_%
% echo Ä$%/-)=_Ä 

poleprogger avatar Mar 13 '24 12:03 poleprogger