Multiline tables for keymaps #9669
-
I'd like to create a keymapping for "my favorite stuff". As I see, the In the below example, I want to duplicate the current line below or above the current line, and I can imagine adding more and more stuff here. Unfortunately, as this list grows, it's less and less readable in one line, so I wanted to split it up, but I can't find a way to do this and get it accepted after reloading the Helix config. I thought TOML supports what I'm doing, but obviously, I'm doing something wrong. How can I split this up into multiple lines correctly? ";" = {
d = ["extend_line_below", "yank", "paste_after"],
D = ["extend_line_below", "yank", "paste_before"],
}
# This doesn't work If I do it without newlines, it works as expected: ";" = {d = ["extend_line_below", "yank", "paste_after"], D = ["extend_line_below", "yank", "paste_before"]} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
[keys.normal.";"]
";" = { d = ["extend_line_below", "yank", "paste_after"], D = ["extend_line_below", "yank", "paste_after"] } uses an inline table and it would be equivalent to: [keys.normal.";"]
d = ["extend_line_below", "yank", "paste_after"]
D = ["extend_line_below", "yank", "paste_after"] which is a regular table and supports multiple lines |
Beta Was this translation helpful? Give feedback.
uses an inline table and it would be equivalent to:
which is a regular table and supports multiple lines