hptruong93 / Repeat

Repeat yourself with some intelligence. This, if used correctly, can improve your productivity by 2x - 5x.
MIT License
14 stars 2 forks source link

Ignoring certain characters in linux #2

Open cancub opened 7 years ago

cancub commented 7 years ago

Sup, HP? Using Ubuntu 16.04 I've noticed a small bug when I set up a host removal hotkey like so:

k.type(VK_BACK_SPACE);
k.type(VK_BACK_SPACE);
k.type(VK_BACK_SPACE);
k.type("ssh-keygen -f \"/home/<user>/.ssh/known_hosts\" -R <ip>"); 

For some reason, the "w" in "known" is dropped. Result from the call to the activation key combo of Q+W+NumPad-1:

ssh-keygen -f "/home/<user>/.ssh/knon_hosts" -R <ip>

However, adding a second "w" (i.e., "knowwn") makes everything fine.

ssh-keygen -f "/home/<user>/.ssh/known_hosts" -R <ip>

Edit: It's happening with each command I add. For example, I need two "d"s in

tcpddump -i vtnet3 -e ether proto 0x8100
cancub commented 7 years ago

It seems like this has to do with the keys used for the combo as they appear to be the letters that are being removed from the output. Using "Y+H+K" results in

ss-egen -f "/home/<user>/.ssh/known_hosts" -R <ip>