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

Could gf create new file instead of error that it does not exist? #575

Closed
jdsutherland opened this issue Mar 31, 2021 · 1 comment
Closed

Comments

@jdsutherland
Copy link

Use case: adding a new controller without generator from routes.rb:

resources(:sold_out_concerts) # gf => E345: Can't find file "sold_out_concerts_controller.rb" in path

If gf could be configured to create the file, this would save some keystrokes. Looking at #503, perhaps :set confirm could be the option?

@tpope
Copy link
Owner

tpope commented Mar 31, 2021

gf is way more liberal about where it can jump than even alternates is. It can edit files inside gems for example. I think this is a non-starter.

@tpope tpope closed this as completed Mar 31, 2021
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