Lioness100/rspell

"Fix typo in file name" option

Lioness100 opened this issue · 0 comments

Is there an existing issue or pull request for this?

  • I have searched the existing issues and pull requests

Feature description

I've found while trial running rspell on big repositories, often a typo made in something exported is often shared in the file name. For example, a function called generateAllIndicies from generateAllIndicies.ts. rspell can fix the declaration, imports, and usages of generateAllIndicies to generateAllIndices, but it obviously won't change the file name. This is not only inconvenient, but also dangerous, as some files could be importing generateAllIndices.ts, which doesn't exist.

Desired solution

An option to fix typos in files as well as code. I don't know if this would be a per-typo option, or only apply to the file of the typo in question, or if it would be prompted before or after the user replaces something, or anything else, so I would love to hear ideas.

Alternatives considered

No response

Additional context

No response