Skip to content

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

Open
@Dollar4063

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions