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

[suggestion] adding "rename module" and "add new module" functions #111

Open
rvion opened this issue Jul 19, 2016 · 1 comment
Open

[suggestion] adding "rename module" and "add new module" functions #111

rvion opened this issue Jul 19, 2016 · 1 comment

Comments

@rvion
Copy link

rvion commented Jul 19, 2016

few ideas :


module renaming

let's say you're in Foo.Bar.Baz module

rename Module would popup an input field containing Foo.Bar.Baz, with only Baz being selected.

Basically, changing Foo.Bar.Baz to Foo.Bar.Plop would

  1. check if Foo.Bar.Plop already exists
  2. move the file
  3. the module Foo.Bar.Baz where is changed to module Foo.Bar.Plop where
  4. all import statements the module Foo.Bar.Baz where would changed to Foo.Bar.Plop

📝 I have the impression that points 2. and 3. could be made easilly by just doing a mass rename of all Foo.Bar.Baz string occurences to Foo.Bar.Plop

it could also handle

  • folder change when Foo.Bar.Baz moves to Foo.Yolo
  • folder creation when Foo.Bar.Baz moves to Foo.Bar.Baz.Plop
  • module Merge when a module is renamed to an other existing module by copy pasting stuff from one module to the other.

module creation

let's say you're in Foo.Bar.Baz module

add module would just popup a input string containing
Foo.Bar.
etc.

@nwolverson
Copy link
Owner

This is definitely not something I want to do without psc-ide support. @kritzcreek where do you think such issues should be tracked? I guess the main purescript repo I'm just hesitant of spamming with psc-ide issues.

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

No branches or pull requests

2 participants