Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically refactoring file directories in code when file is moved #198

Open
Dollar4063 opened this issue May 12, 2023 · 0 comments
Open

Comments

@Dollar4063
Copy link

Is your feature request related to a problem? Please describe.
I am frustrated when moving files around a project that I need to update the code as well
eg. I move a file "FileMovingAround.wls" from folder "Old" to folder "New".

I need to update the code in a file as well.

x = Import["C:\\Old\\FileMovingAround.wls"]
x = Import["C:\\New\\FileMovingAround.wls"]

Sometimes I miss this

Describe the solution you'd like
When moving the file via a refactoring for the code to correctly point to the new location
eg, code automatically updates to x = Import["C:\\New\\FileMovingAround.wls"]

It should also work on filenames given in lists with FileNameJoin, eg x = Import[FileNameJoin[{"C:","New","FileMovingAround.wls"]

Describe alternatives you've considered
none

Additional context
I am using the plugin on Pycharm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant