zed icon indicating copy to clipboard operation
zed copied to clipboard

When renaming folders, update module name in code as well

Open mikayla-maki opened this issue 2 years ago • 7 comments

Check for existing issues

  • [X] Completed

Is your feature request related to a problem?

When changing the name of a folder or file, I have to go through and manually rename all my mod statements.

Describe the solution you'd like

It would be nice if Zed could be tightly integrated with languages which care about file names and would automatically update back and forth.

Note that this is already implemented if using the rename dialog in code. This is about the reverse direction, a file rename action causing a code rename action.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

mikayla-maki avatar Aug 11 '22 03:08 mikayla-maki

Strongly agree, this is what holds me back to use Zed full-time.

Roba1993 avatar Mar 10 '23 17:03 Roba1993

Bumping this as it's one of the reasons holding my team back from adopting zed

park-jemin avatar May 15 '24 19:05 park-jemin

also came here looking for this as this is a necessary feature for refactoring

hexsprite avatar May 25 '24 23:05 hexsprite

Same, I need this. Right now I have to jump back to vscode if I want to do a Typescript refactor.

huypham50 avatar Jun 24 '24 01:06 huypham50

I agree with @huypham50 . I love Zed but whenever I move files I have to manually fix the imports and forces me to back to vs code.

deveshXm avatar Aug 10 '24 11:08 deveshXm

Updating global import is also important for me, as this is a feature that only Jetbrains provides now. VSCode can only auto update imports if they are imported using relative path, but can't pick up all the changes if global import alias "@" is used in NextJS project.

galaxymacos avatar Aug 12 '24 06:08 galaxymacos

This is one of these not so frequently used tools that remind me of VS Code or Webstorm when using Zed. This would be really nice to have indeed.

Still, Zed is such a breath of fresh air, thank you making it!

slowdownitsfine avatar Aug 25 '24 13:08 slowdownitsfine

Also wanted to put my two cents on this feature: would be really helpful for refactoring projects.

paulkass avatar Aug 31 '24 21:08 paulkass

I ❤️ Zed so far, but I really miss this feature.

mikalsande avatar Sep 06 '24 11:09 mikalsande

Any update on this? This is the only thing that's holding me back from switching fully.

mk3-14159 avatar Sep 17 '24 04:09 mk3-14159