helix-editor / helix

A post-modern modal text editor.
https://helix-editor.com
Mozilla Public License 2.0
31.15k stars 2.3k forks source link

commands with international keyboard #11057

Open DamianRavn opened 3 days ago

DamianRavn commented 3 days ago

Summary

I have a danish keyboard I recently learned that you can click on the "|" symbol as a shortcut for writing :pipe, but nothing happened even though i was in the correct mode. I tried some other shortcuts like "]" and "!". some worked and some didn't. when i rebound the shell_pipe command to "&", it worked.

I downloaded the source code and figured out that the problem was that helix expects "|" to come with no modifiers, while i need to hold down both Control and Alt to make that symbol. to make the symbol "[" i need to hold down Control, Alt and 8.

Not a big deal since i can rebind the commands, the most annoying part was figuring out what was wrong, since insert mode showed the correct symbols.

Reproduction Steps

  1. own a Nordic keyboard
  2. click "|" or "["
  3. notice that nothing happens

Helix log

2024-06-29T18:44:19.314 helix_term::keymap [ERROR] key: KeyEvent { code: Char( '|', ), modifiers: KeyModifiers( CONTROL | ALT, ), }

2024-06-29T18:50:05.469 helix_term::keymap [ERROR] key: KeyEvent { code: Char( ']', ), modifiers: KeyModifiers( CONTROL | ALT, ), }

Platform

Windows

Terminal Emulator

Windows terminal with Powershell

Installation Method

winget

Helix Version

helix 24.3 (2cadec0b)