atom / find-and-replace

Find and replace in a single buffer and in the project
MIT License
242 stars 196 forks source link

Keep cursor position after new text #1154

Closed asiloisad closed 3 years ago

asiloisad commented 3 years ago

Requirements

Description of the Change

Replace text and keep cursor position after new text. Just it.

Alternate Designs

Another way is use :replace-next and then pos cursor after new text, but this is very tricky and unclear solution.

Benefits

Possible Drawbacks

Nothing, because the changed str very small and encapsulated.

Applicable Issues

Nothing, because the changed str very small and encapsulated.