If I type (
I get ()
but that doesn't work for {
or [
. Any Idea why?
What should I do to make it work?
BTW, I am using a French Canadian keyboard (Mac OSX).
Thanks!
If I type (
I get ()
but that doesn't work for {
or [
. Any Idea why?
What should I do to make it work?
BTW, I am using a French Canadian keyboard (Mac OSX).
Thanks!
You need to put something like this on your keymap:
{:+ {:editor {"alt-[" [(:editor.open-pair "[")]
"alt-shift-[" [(:editor.open-pair "{")]
"alt-]" [(:editor.close-pair "]")]
"alt-shift-]" [(:editor.close-pair "}")]}}}
Reference: https://github.com/LightTable/LightTable/issues/620#issuecomment-30319095
This feature is already implemented in the new version of LT:
:editor.keys.normal {"\"" [(:editor.repeat-pair "\"")]
"(" [(:editor.open-pair "(")]
")" [(:editor.close-pair ")")]
"[" [(:editor.open-pair "[")]
"{" [(:editor.open-pair "{")]
"]" [(:editor.close-pair "]")]
"}" [(:editor.close-pair "}")]
This is a solution for Croatian keyboard layout (add it to user.keymap
file):
{:+ {:app {}
:editor {"ctrl-alt-f" [(:editor.open-pair "[")]
"ctrl-alt-b" [(:editor.open-pair "{")]
"ctrl-alt-g" [(:editor.close-pair "]")]
"ctrl-alt-n" [(:editor.close-pair "}")]}}}