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

How to change auto-pair behavior #4199

Closed
desk7 opened this issue Feb 29, 2020 · 6 comments
Closed

How to change auto-pair behavior #4199

desk7 opened this issue Feb 29, 2020 · 6 comments
Labels

Comments

@desk7
Copy link

desk7 commented Feb 29, 2020

How I can change the behavior of the Ace editor to make { behave the same way as the round and square brackets when typing in Markdown? auto-pair doesn't work with { the same way it works with ( and [.

@haosong
Copy link

haosong commented Apr 7, 2020

@desk7 Wondering if you found the solution to this one. I got the same problem here.

@pedroknup
Copy link

Same here.
That behavior is so annoying. I wish I could disable autocompletion and keep showing the autocomplete popup, so opening and closing {, [ and ( would be user's job.

@github-actions
Copy link

github-actions bot commented May 9, 2022

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@desk7
Copy link
Author

desk7 commented May 9, 2022

still not fixed.

@mkslanc
Copy link
Contributor

mkslanc commented Nov 4, 2022

@desk7 could you provide clarification why it should be default behavior for markdown mode? It would be easy change - we need just to change this.$behaviour = this.$defaultBehaviour; to this.$behaviour = new CstyleBehaviour({ braces: true }); (and import CstyleBehaviour) , but I am lacking use case examples for that - seems {} doesn't mean anything to markdown according to documentation

@desk7
Copy link
Author

desk7 commented Nov 9, 2022

@desk7 could you provide clarification why it should be default behavior for markdown mode? It would be easy change - we need just to change this.$behaviour = this.$defaultBehaviour; to this.$behaviour = new CstyleBehaviour({ braces: true }); (and import CstyleBehaviour) , but I am lacking use case examples for that - seems {} doesn't mean anything to markdown according to documentation

You're right that {} means nothing to markdown. Actually, it could be useful if you write code in code blocks or if you write math expressions in Katex or Mathjax blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants