Skip to content

mattr-/rails-navigation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rails-navigation

This package provides commands to navigate through rails files while keeping some context - for example, when you keep your cursor in an action method on the cursor and navigates to the view, the correct view file should be open. Same for tests It is inspired on the great vim-rails.

What it does:

  • Go to model
  • Go to controller
  • Go to helper
  • Go to migration (the one that creates the record)
  • Go to view file
  • Go to test (rspec or test::unit)

What it will do:

  • Go to factory
  • Go to partial
  • Mailer support
  • Open in the same tab option

Keymaps

There is no keybinding defined for using without the vim-mode package - please feel free to suggest.

On vim command mode, the keybindings are g X, where X is:

  • m for model
  • c for controller
  • v for view
  • h for helper
  • s for test (spec - g t is already used on vim-mode)

Alternatives

  • atom-rails: Aims to be a replacement for vim-rails, but currently support only navigational features.
  • rails-transporter: A cool alternative using finder to complete views instead of open the current context.

About

Atom package to navigate through your rails files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 47.2%
  • CoffeeScript 37.7%
  • HTML 11.0%
  • CSS 3.2%
  • JavaScript 0.9%