Currently, keymaps are defined as follows:
[
{ open: "\"", close: "\"", canBreak: false },
{ open: "'", close: "'", canBreak: false },
{ open: "(", close: ")", canBreak: false },
{ open: "[", close: "]", canBreak: true },
{ open: "{", close: "}", canBreak: true }
]
open and close represent the paired characters respectively, while canBreak constitutes whether or not those characters will cause a new level of indentation upon inserting a new line between the characters. It would be awesome to add custom keymaps so this can be expanded upon:
BehaveMap('javascript', [
{ open: "\"", close: "\"", canBreak: false },
{ open: "'", close: "'", canBreak: false },
{ open: "(", close: ")", canBreak: false },
{ open: "[", close: "]", canBreak: true },
{ open: "{", close: "}", canBreak: true }
]);
Currently, keymaps are defined as follows:
openandcloserepresent the paired characters respectively, whilecanBreakconstitutes whether or not those characters will cause a new level of indentation upon inserting a new line between the characters. It would be awesome to add custom keymaps so this can be expanded upon: