filipdutescu / renamer.nvim

VS Code-like renaming UI for Neovim, writen in Lua.
Apache License 2.0
302 stars 11 forks source link

fix(submit): trim new word before using #123

Closed filipdutescu closed 2 years ago

filipdutescu commented 2 years ago

Motivation

Trim the new word of leading and ending spaces before using it to rename. This should prevent padding from being used in the final name, as well as making it a bit more logic and consistent with most IDEs.

Fixes: GH-119

Proposed changes

Test plan

Existing tests are updated and a new test case is added in lua/tests/rename_close_spec.lua.