-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better support for international keyboards #9862
Comments
Hi! May I suggest you to try NeoQwertz? You won't have to relearn Otherwise I'd suggest to remap your the keybindings because adding default international keybindings doesn't sound easy to maintain in my opinion. |
This can be handled by a simple remap with3 lines in your config. No need to change the default keymap. I am also german and I would also recommend to save your hands and switch to a better keyboard layout. QWERTZ somehow manages to be significantly worse than QWERTY (which is itself not a good layout). |
Nice, but how can I change this? In vim/neovim I'm using nmap ü [
nmap + ] but in helix something like this is invalid: [keys.normal]
"ü" = "[" |
|
@sicher Thanks, but I did read the docs (and even had a glimpse at the Rust source code). So please show me the actual lines for |
@markus-oberhumer [keys.normal.ü]
"d" = "goto_prev_diag"
"D" = "goto_first_diag"
"g" = "goto_prev_change" for example? |
@TornaxO7 The point of this issue is that I want to remap |
That's not possible atm. You have to create a new, or overwrite the bindings for a minor mode. Like in the docs. |
Well, that why my OT says:
|
Your example code showed a hard-coded solution for your specific keyboard. That's very easy to do (you did it), but it would not help me at all on my Swedish keyboard. There are a few open PR:s that may be relevant. Check out #5046 for instance. |
@sicher @pascalkuthe My example code is explicitly annotated as (NOTE to self: don't include patches unless necessary) |
There are PR:s that intend to address remapping. I linked to one above. (Edit: Or perhaps there's just that single one. I dunno - haven't dug through all open PR:s) |
I might misunderstand that PR totally, but one example given seems to me like exactly what you're after:
EDIT: For your case that would be (I guess):
EDIT 2: And, your point about insert mode is explicitly addressed in the PR description:
|
Well, I'd guess the correct way to tackle this is to introduce something like a |
@pascalkuthe As you have closed this issue: I'd still like to see your config.toml changes for Maybe I'm missing something here. |
Easier remapping of minor modes like The current way to remap this is: # config.toml
[keys.normal."ü"]
d = "goto_prev_diag"
D = "goto_first_diag"
g = "goto_prev_change"
G = "goto_first_change"
f = "goto_prev_function"
t = "goto_prev_class"
a = "goto_prev_parameter"
c = "goto_prev_comment"
T = "goto_prev_test"
p = "goto_prev_paragraph"
space = "add_newline_above"
[keys.normal."+"]
d = "goto_next_diag"
D = "goto_last_diag"
g = "goto_next_change"
G = "goto_last_change"
f = "goto_next_function"
t = "goto_next_class"
a = "goto_next_parameter"
c = "goto_next_comment"
T = "goto_next_test"
p = "goto_next_paragraph"
space = "add_newline_below" |
@the-mikedavis Many thanks for that info, this is at least a workaround I can live with for now! |
I'm using a German keyboard layout and currently have to use quick hack/patch below to easily use
Left bracket
andRight bracket
.Would it be hard to implement keymaps for submenus like these?
The text was updated successfully, but these errors were encountered: