alacritty: Typing at sign (@) and pipe (|) doesn’t work properly
I’m using a German keyboard. Usually, in macOS, it works like this:
@
is accessed viaalt + L
|
(pipe) is accessed viaalt + 7
Using zsh with vim mode alt + L
seems to send an Escape, alt + 7
also sends an Escape and moves the cursor to the beginning of the line.
There is a way to type these two characters, however: if I first type alt + n
(would normally make a ~
) and then type the combination for @
or |
they appear.
Which operating system does the issue occur on? macOS
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 9
- Comments: 35 (8 by maintainers)
What helped me is to set
alt_send_esc
to false.Hey all - new wiki page for keyboard mappings! https://github.com/jwilm/alacritty/wiki/Keyboard-mappings
For
French
on MacOS :Probably some keys still missing
@kaikuehne That helped a lot. No need to add weird bindings. Thank you very much!
The problem is still there, you can’t enter
@
or|
in Alacritty on a German keyboard (withalt+l
andalt+7
). But usingalt+e
to enter the €-symbol works just fine.The workaround mentioned by @johnnynia works. The hex code for
|
is\x7C
.This enables you to enter
@
withalt+l
and|
withalt+7
:I experienced the same problem with the @ sign using a Swiss German keyboard (where @ is typed via
alt+g
.I fixed it with this line in the config:
I’m using a german keyboard, too. But none of those keymappings in the wiki do work for me. Except Alt + 5, Alt + 6, Alt + 8, Alt + 9. Those work out of the box even with default config yml.
Basically, I have the same issue like #2390 , but
alt_send_esc:
is already false. No solution for me…Using the newest source (https://github.com/jwilm/alacritty/commit/2a6e9843eaa583b67d9b853f396dd72e69a20585)
Oh shit! I mixed this repository with the iTerm2 repository. Sorry for the noise
Hi guys. Here are the mappings for
Spanish
keyboard in MacOS:@jacoscaz make a wiki page! 🎉
Useful mappings for those with an
Italian
layout on MacOS:On MacOS, mappings can be derived by:
make app
as per the installation guide./target/release/osx/Alacritty.app/Contents/MacOS/alacritty --print-events
At this point, Alacritty should log events pairs like this:
We’re interested in:
Some
, which is the one to use in thekey
property of the mappingModifiersState
, which indicate which modifiers to add in themods
property of the mapping (these can be concatenated using the|
character)chars
properties can be looked up on ASCII tables like the one at http://www.asciitable.comIn the case of the above log lines, I was looking for a mapping that would make pressing
[
on my keyboard actually result in the desired symbol appearing in Alacritty. The resulting mapping is:Edited: added mapping for
~
I had the same problem, and I fixed it in the “Profiles --> Keys” configuration tab. I set the Right ⎇ Key to “Normal” and my symbols came back.
Thank you, that’s a nice workaround!