Sublime Forum

Typing a pipe (|) with a french keyboard

#1

Hi,

I just bought Sublime2 and I like it.

One mere issue: I can’t type any pipe: |

On my mac, I usually do alt + shift + L but it seems inhibited by sublime.

Any solution?

Thanks in advance,

Ben

0 Likes

#2

Open your user keybindings file and add this:

{ "keys": "alt+shift+l"], "command": "insert", "args": {"characters": "|"} }
0 Likes

#3

Thanks weslly , works like a charm!

0 Likes

#4

I have a similar issue with key characters: { and }

In keymap, I inserted these two lines, but it doesn’t.
[
{ “keys”: [“alt+(”], “command”: “insert”, “args”: {“characters”: “{”} },
{ “keys”: [“alt+)”], “command”: “insert”, “args”: {“characters”: “}”} },
]

That’s a pity/shame for $80 that non-US keyboards aren’t properly managed. Anyway, I can live with updating the keymap for now but even that doesn’t work. Assuming the problem is on my side, I wonder what I did get wrong with these two declarations.

0 Likes

#5

If you open the Sublime console with View > Show Console and do sublime.log_input(True), Sublime will log the keys you press, which can be handy to see how it’s receiving the input that you’re giving it.

0 Likes