-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Indention off when pasting with autoIndentOnPaste: true #584
Comments
I can't reproduce this, so I need moar info: What language are you using? On Thu, Jun 13, 2013 at 8:17 AM, John Nunemaker notifications@github.comwrote:
|
Language is ruby. I'll check atom version and such when I get back home. On Jun 13, 2013, at 11:49 AM, Corey Johnson notifications@github.com wrote:
|
Atom 10.0.
On Jun 13, 2013, at 11:49 AM, Corey Johnson notifications@github.com wrote:
|
I'm looking into this, I don't have any answers yet but here is what I've found. The textmate grammar to decrease the indent on lines matching this regex Which doesn't mach the line |
It seems like textmate only auto indents the first line on paste. Is this the behavior we want to emulate? |
I think that makes sense. Auto indent the first line and the rest should be indented in relation to the first line when they were copied. Not sure if what I said makes sense to anyone else, but it does in my head. Let me know if not and I'll explain more. |
I think it's a good behavior too. The thing we do now could be called On Fri, Jun 21, 2013 at 4:55 PM, John Nunemaker notifications@github.comwrote:
|
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks! |
I have this in my config.cson:
But anytime I paste something that has a single line with
})
, the indention gets off one level after it. It gets off one line for each line that has only})
on it.If I copy this and paste it:
I get this:
But expect this:
If I turn auto indent on paste off it works, but then everything else I paste doesn't auto indent correctly.
The text was updated successfully, but these errors were encountered: