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

Custom Keymaps #16

Open
jakiestfu opened this issue Mar 29, 2013 · 0 comments
Open

Custom Keymaps #16

jakiestfu opened this issue Mar 29, 2013 · 0 comments

Comments

@jakiestfu
Copy link
Owner

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 }
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant