jemmyw / vscode-rails-fast-nav

vscode extension for navigating Ruby on Rails projects
https://marketplace.visualstudio.com/items?itemName=jemmyw.rails-fast-nav
MIT License
41 stars 12 forks source link

Create spec (or view) from the navigation menu #3

Open yukas opened 6 years ago

yukas commented 6 years ago

Right now to create spec (or view) we need to run a command [command.railsCreateSpec]. Which is nice and very useful.

I think it can be also useful if navigation menu had option to create spec (or view, depending on the context) in case there is no such file exists. I saw that kind of behaviour in a Textmate Rails bundle.

What do you think?

jemmyw commented 6 years ago

Hi @yukas , thanks for submitting. It does already do this if you try and navigate to the spec using the shortcut key (alt+y):

screen shot 2018-08-23 at 12 23 39 pm

But you are right, it could show the create spec option in the menu. It could also do the same with controller views.