aheze / Multiliner

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

Preserve caret position after multi-lining selection #9

Closed alobaili closed 2 years ago

alobaili commented 2 years ago

Currently, when using Multiliner to multi-line selection, the caret moves to the end of the file. When undoing, the whole file text is selected.

It would be great if the caret stays after the closing bracket of the formatted code.

I love this extension. Thank you for amazing work!

aheze commented 2 years ago

Yeah I came across this too, would be a great improvement. Thanks for creating an issue for it! I'll look into it

ccjensen commented 2 years ago

I was just coming here to report this same issue. Love the extension, and I am willing to live with the caret position getting moved but a fix for this would be the cherry on top 😄

aheze commented 2 years ago

@ccjensen fixed in 1.1! https://github.com/aheze/Multiliner/releases/tag/1.1.0