aheze / Multiliner

An Xcode source extension to expand lengthy lines.
https://twitter.com/aheze0/status/1541578738239885312
MIT License
827 stars 23 forks source link

feat(updated): updated perform function's variable #19

Closed tkgka closed 2 years ago

tkgka commented 2 years ago

fixed bug: lines go up when select multiple lines that contains more than two Braket

Before

https://user-images.githubusercontent.com/52348220/178142903-81cfff20-244c-4f02-a100-c5f26cbd7323.mov

After

https://user-images.githubusercontent.com/52348220/178142899-ea667906-cd5a-4205-9e24-9aa7db47e398.mov

aheze commented 2 years ago

Thanks! But I think this is kind of a temporary fix for a bigger problem. Eventually Multiliner should actually recognize syntax instead of just splitting by parentheses... see #3. There's just too many specific cases — for example I think this would not work after your PR:

func test(first: Int, completion: (() -> Void)?) {}

https://user-images.githubusercontent.com/49819455/178152546-53b76666-446f-43d9-85c1-f1d2044a39eb.mov

tkgka commented 2 years ago

oh, I recognized problem now. I'll close this request