Auto-close special characters everywhere #396

Closed
defunkt opened this Issue Aug 24, 2011 · 4 comments

Comments

Projects
None yet
5 participants
Contributor

defunkt commented Aug 24, 2011

Right now JavaScriptMode auto-closes special characters such as " ' ( { etc. It also surrounds text with these characters if you select the text then type one, e.g. selecting user and typing " produces "user".

It'd be awesome if this feature was enabled in every mode. Maybe in TextMode? In TextMate even plain text mode auto-closes quotes and it's great.

In particular, I'm missing this feature when writing CoffeeScript, Ruby, Markdown, etc.
@gissues:{"order":54.65838509316791,"status":"backlog"}

Contributor

fjakobs commented Aug 24, 2011

I think this would make sense. I'd accept a pull request moving this
into the text mode :)

On Wed, Aug 24, 2011 at 10:02 PM, defunkt
reply@reply.github.com
wrote:

Right now JavaScriptMode auto-closes special characters such as " ' ( { etc. It also surrounds text with one of these characters if you select the text then type one, e.g. selected user and typing " produces "user".

It'd be awesome if this feature was enabled in every mode. Maybe in TextMode? In TextMate even plain text mode auto-closes quotes and it's great.

In particular, I'm missing this feature when writing CoffeeScript, Ruby, Markdown, etc.

Reply to this email directly or view it on GitHub:
#396

Contributor

gjtorikian commented Dec 16, 2012

@fjakobs @nightwing I hope I am not oversimplifying the problem, but isn't it a matter of just setting this.$behaviour = new CstyleBehaviour(); ?

For example: http://screencast.com/t/cf9DVzH5ld

@gjtorikian How does that work? I''m trying to get behaviours enabled for latex:
http://jsfiddle.net/U5JtP/7/

Owner

nightwing commented Aug 19, 2017

this have been fixed some time ago #2936

@nightwing nightwing closed this Aug 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment