Re: [xmonad] 2 bugs in pasteSelection (7s for /s on german keyboard, whitespaces lost)
On Sun, Nov 17, 2013 at 4:21 AM, Carlos Franke
I noticed two misbehaviours of pasteSelection (from Xmonad.Util.Paste):
1. In my setup, most notably with a standard German (QWERTZ) keyboard layout, pasteSelection converts slashes ("/") to sevens ("7"), thus messing up URLs and path names. With a QWERTZ keyboard, you get a slash by pressing Shift-7, so this is probably connected.
2. Whitespaces (space, tab, newline) are lost when pasting with pasteSelection.
These are known limitations, although there's no bug for them (but https://code.google.com/p/xmonad/issues/detail?id=554 is related). It's not clear that it's fixable, because the only way to do this in X11 is to simulate keystrokes. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
* on Sunday, 17.11.13 at 11:12, Brandon Allbery
On Sun, Nov 17, 2013 at 4:21 AM, Carlos Franke
wrote: I noticed two misbehaviours of pasteSelection (from Xmonad.Util.Paste):
1. In my setup, most notably with a standard German (QWERTZ) keyboard layout, pasteSelection converts slashes ("/") to sevens ("7"), thus messing up URLs and path names. With a QWERTZ keyboard, you get a slash by pressing Shift-7, so this is probably connected.
2. Whitespaces (space, tab, newline) are lost when pasting with pasteSelection.
2) There was a patch that fixed the space/tab/newline problem submitted to this list a few weeks ago. I don't know if it was put in the central repo yet, but you can find it in the mail archive and patch your local clone with it. That's what I do. 1) At the same location where the patch is applied (line 62) you can alter the string containing the characters that are "shifted" and add the "/" to that string. The current value is "~!@#$%^&*()_+{}|:\"<>?", note that no "/" is in that string. That should fix your problem, but then only work correctly for a QWERTZ keyboard... The right way to do this would be to define the shift-character string in xmonad.hs and use the hardcoded QWERTY only as a default. This should be easy to change... -- daan
participants (2)
-
Brandon Allbery -
Daan van Rossum