Closed nbfalcon closed 3 years ago
As a side note, why is js2r-rename-var
not autoloaded?
@nbfalcon I saw no reason not to autoload the function, I just added a fix for it.
PS: Do you have write access to this repo now?
@nbfalcon I sort of disagree with the choice here, but I understand that it depends on usages.
@nbfalcon this broke some ecuke tests, I pushed a fix here: https://github.com/magnars/js2-refactor.el/pull/128.
@NicolasPetton yes I have write access. Do you think whether js2r-rename-var
should keep point
should be made optional?
Do you think whether js2r-rename-var should keep point should be made optional?
I'm not sure, I need to experiment a bit more with it.
Previously,
js2r-rename-var
would go to the start of the symbol being renamed first. This makes inserting edits atpoint
inconvenient, because one has to navigate back.Solve this by first computing a
point
-delta (how farpoint
is from the start of the symbol), and use that to position the other cursors. Don'tgoto-char
to the start of the symbol for the main cursor.Fixes #122.
#