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

Allow to open file by current word #13

Merged
merged 1 commit into from
Oct 13, 2014

Conversation

povilasjurcys
Copy link
Contributor

This is for #12 issue.
Usage: put cursor on class name (for example "User") and press 'alt-shift-R'. Atom rails will open first file that contains line "class User".

Currently works fine with one level class or module definitions. It will not work if you try to open by work "Admin::User" and you have defined user class as:

module Admin
  class User
  # ...
  end
end

but it should work fine if you defined your user class as:

class Admin::User
  # ...
end

P.S. I am ashamed that I did not add any tests. I will try to fix this in the future

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

Successfully merging this pull request may close these issues.

None yet

2 participants