Skip to content
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

Keymapping which utilizes multiple commands doesn't work in 0.5 #1161

Closed
raygervais opened this issue Nov 24, 2021 · 1 comment
Closed

Keymapping which utilizes multiple commands doesn't work in 0.5 #1161

raygervais opened this issue Nov 24, 2021 · 1 comment
Labels
A-keymap Area: Keymap and keybindings C-bug Category: This is a bug

Comments

@raygervais
Copy link
Contributor

Reproduction steps

  • Edit ~/.config/helix/config.toml to include the following
[keys.normal]
"ret" = ["open_below", "normal_mode"] # Maps the enter key to open_below then re-enter normal mode
  • Open helix, note the error:
Error: data did not match any variant of untagged enum KeyTrie for key `keys.normal` at line 7 column 1

Sample Config for context:

theme = "everforest"

[lsp]
display-messages = true
line-numbers = "relative"

[keys.normal]
g = { a = "code_action" } # <- Works, but if I were to add additional commands such as below, fails.
"ret" = ["open_below", "normal_mode"] # Does not work

Environment

  • Platform: MacOS
  • Helix version: helix 0.5.0
~/.cache/helix/helix.log

Appears to be unrelated

2021-11-24T09:57:42.975 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { LSP not defined }
@raygervais raygervais added the C-bug Category: This is a bug label Nov 24, 2021
@sudormrfbin
Copy link
Member

You will have to build from master for it to work since it was merged after the 0.5 release (#589).

\cc @archseer We should probably host docs for both tagged releases and master to avoid confusion.

@kirawi kirawi added the A-keymap Area: Keymap and keybindings label Nov 25, 2021
@kirawi kirawi closed this as completed Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-keymap Area: Keymap and keybindings C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants