Skip to content

Option to create alternate file if it doesn't exist #135

@henrik

Description

@henrik

It's a bit of a chore to create the alternate file (typically the spec for a model or helper) if you didn't use a generator.

It would be neat if Rails.vim had some way to do this. Perhaps :A! to jump to alternate file and create it, or prompt to create it, if not there? Or perhaps it should always prompt for that?

An argument against is if you accidentally mix up :R and :A (I do every so often) and it creates files you don't want. But if it would prompt, or would take an exclamation mark, that would probably be good enough. So you do :A, it says "no such file", you do :A! instead.

Similarly for :R, I suppose, to create views.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions