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

Support for the rename based on the whole project directory #1089

Open
YongcaiHuang opened this issue Jun 4, 2024 · 2 comments
Open

Support for the rename based on the whole project directory #1089

YongcaiHuang opened this issue Jun 4, 2024 · 2 comments

Comments

@YongcaiHuang
Copy link

Elevator Pitch

Any plan for the rename based on the whole project directory including file rename (more like a refactoring feature). It's better to support both .ipynb and .py

Motivation

current rename function works within one file either .ipynb or .py. It's not that convenient when I want to rename a .py module or function/class in this module. Rather, I need to change all related reference.

Design Ideas

current IDE like vscode or pycharm has supported this. for example below video.

example.mp4
@krassowski
Copy link
Member

That would be nice. I often think about it. Technically what is needed is support for workspace-wide edits and some UI. Alternatively it could be achieved by resolving jupyterlab-contrib/search-replace#79 and using that extension.

@YongcaiHuang
Copy link
Author

Additionally, other refactoring feature is missing, like extract variable or method, etc, and not very convenient when writing a project using jupyterlab. Maybe we can leverage more function in rope.

Also, Thanks for the alternative proposal of using search-replace. it's really great, but it different from refactoring feature (e.g. it cannot handle file rename and extraction, etc). BTW, search-replace cannot be used in jupyterlab-desktop (issue opened here)

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

2 participants