Open Gaarco opened 4 years ago
I use a Swedish layout and had problems with v0.4.0. The master-branch works for me, so I guess #88 or some other commit solved this issue.
EDIT:
Actually, I can only get a few characters working, such as ':' and '?'. I still struggle with '/', ']' etc. Trying to figure out why. The logs show ReceivedCharacter('/', ModifiersState { shift: true, ctrl: false, alt: false, meta: false })
but it seems like it can't find the mapping to the command.
I found that there's a difference between Input::key
and Input::Character
bindings. While #88 did change :mode command
to a character binding, it did not change the other bindings. I solved this my in init.rx, like:
map '/' :zoom 1.0 -- Reset active view zoom
map/normal '=' :brush/toggle perfect -- Pixel-perfect brush
map/normal ']' :brush/size + -- Increase brush size
map/normal '[' :brush/size - -- Decrease brush size
map/visual '\' :selection/expand
That is, simply wrap problematic bindings with '
.
Yeah, that's the way to go for now, since character bindings are not as powerful as key bindings (they don't support release events), I can't switch them all over.
rx now works only with US layout and it was hard to figure out (I didn't see anything related on the website), may be possible to have support for different keyboard layouts?