Trying out smart mode in Atom, and it’s looking good!
It's not completely done yet 😉
Shaun and I are both working on it right now.
@chrisoakman I completely understand that 🙂
I thought I’d try it out anyway
Oh great!
Nice to see early adopters! I know people are wanting to test it out.
Yeah, I thought I might catch you a few bugs maybe. But perhaps it’s a bit too early, give us a shout when you want beta testers. 🙂
Will do :thumbsup:
I think Shaun is jumping into help because he wants to see it "out in the field" sooner than later.
I should have more time now. I was teaching a coding bootcamp class that just ended.
I'm also traveling for work this week, so would like to at least get something working before that trip.
@henrik If you want to be on the super-bleeding edge, give this a try: https://github.com/oakmac/atom-parinfer/pull/80
Yep, the above problem is certainly gone.
thanks for trying it @henrik!
No problem, thanks for all the hard work'
getting close, I really want tabStops in there, will get to it in the morning
tab stops are so helpful
Yeah, I was just thinking about that one, since I saw you demoing it earlier. But overall, I’d say it works really well already. I’ll keep using it for now and see if I run into any more oddities.
thanks, looking forward to feedback
I’ve been using it for a while now, and so far, no surprises.
Naa: put them on a newline 😉 https://github.com/shaunlebron/parinfer/issues/92
It’s not precisely the same situation though. In my case, it’s better that they stay on the same line. For example, I don’t want
[{:hello "world"}]
to turn into
[{:hello "world" ;; Comment :-)
}]
Rather,
[{:hello "world"}] ;; Comment :-)
… is the result I desire in this case.@henrik thanks, i see that from time to time and I’m always taken aback by it
another good use case for smart mode to inspect the change and react accordingly
To be honest, the most common use case for me would be that I’m clumsy 🙂
I hit the semicolon when I try to hit colon, and accidentally comment out x number of brackets
Other than that, a whole day of programming with v3 and I have nothing to complain about. It’s a great improvement over the last version.
come to think of it, I think they were also accidents when it happened to me
as long as it’s not destructive, it’s not too pressing, but a good thing for polish to reduce the surprise there
Yeah, it’s not that hard to position the cursor at the end of the line when you DO want to make a comment.
good to hear!
My general experience of using parinfer is that I get the feeling of my editor doing what I intend for it to do, rather than what I (in strict terms) tell it to do. In that sense it fits the general feeling of the project to mitigate the effects of the accidental commenting
at the beginning of the project, my intuition was that there was not enough information to understand user intention, so I leaned on modes for explicit intention—which part of the indentation-paren invariant do you want to control?
i’m much more optimistic now that user intention can be inferred from changes (mostly?)
thanks for sharing your thoughts on how parinfer relates to user intention, I’ll be keeping that in mind
smart mode made me a believer that user intention is encoded somewhere, just needs a creative person to wrangle it out
i.e. parinfer’s users