atom-parinfer icon indicating copy to clipboard operation
atom-parinfer copied to clipboard

Paren Mode should move "child" indentation when backspacing

Open oakmac opened this issue 9 years ago • 6 comments

Paren Mode is not correctly moving indentation below the current line like it should. Shaun says this is something to do with the :cursor-dx option being passed into the paren-mode/format-text function.

As a courtesy, this mode also maintains relative indentation of child elements when their parent expressions shift.

oakmac avatar Nov 11 '15 06:11 oakmac

Shaun says he is going to change the way this works after he gets back from ClojureConj.

Some preliminary thoughts on how it will work can be found here.

oakmac avatar Nov 14 '15 11:11 oakmac

I think this is related so I'm posting it here:

parinfer

comamitc avatar Apr 05 '16 15:04 comamitc

@comamitc - that gif appears to be Indent Mode "working as expected"

oakmac avatar Apr 05 '16 16:04 oakmac

oh, we can take the same changes we pass to Smart Mode and pass them to Paren Mode now to achieve this

shaunlebron avatar Feb 04 '18 17:02 shaunlebron

I just ran into this - can I ask what the status is? Is there anything that I can do to help?

paulbutcher avatar Oct 08 '19 12:10 paulbutcher

I came here for this. Recorded this video before I knew it was documented.

backsp

aurmer avatar Aug 21 '20 16:08 aurmer