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

[feature] Improve readme to show use of property "related" #133

Open
Hettomei opened this issue Jul 17, 2019 · 2 comments
Open

[feature] Improve readme to show use of property "related" #133

Hettomei opened this issue Jul 17, 2019 · 2 comments

Comments

@Hettomei
Copy link

Hi,

I want to thank you @tpope because I use your plugins everyday for the last 5 years.

I just discovered that I can use some kind of rails quick jump (link being inside a view, and type Econtroller to open it s related controller) but on any project.

Can I open a pull request to improve the doc and explain what this config does with examples :

   \   "angular.json": {
   \     "src/app/*.component.html": {
   \       "type": "view",
   \       "alternate": "src/app/{}.component.spec.ts",
   \       "related": "src/app/{}.component.ts"
   \     },
   \     "src/app/*.component.ts": {
   \       "type": "component",
   \       "related": "src/app/{}.component.html"
   \     },
   \     "src/app/*.module.ts": {
   \       "type": "module",
   \       "related": "src/app/{}.component.ts"
   \     },
   \     "src/app/*.ts": {
   \       "alternate": "src/app/{}.spec.ts"
   \     },
   \     "src/app/*.spec.ts": {
   \       "alternate": "src/app/{}.ts",
   \       "type": "test"
   \     }
   \   }

What did you prefere :

  • add doc inside the readme
  • add doc inside the :help projectionnist
  • add doc inside the wiki (which is empty)
  • no pull request, every thing as been said somewhere

Thank you.

@tpope
Copy link
Owner

tpope commented Jul 19, 2019

It's a bit longer than I'd like but I'm tempted to swap the Maven example out for yours. Is there something we could use for the "make" key? Or for "dispatch"?

@lekemula
Copy link

lekemula commented Jun 12, 2023

Would be great to see improvement in this part.

As a Vim newbie, I found it hard to understand its usage, and a bit confusing with the :R command from vim-rails plugin which is used to navigate related files.

Some other older issues that helped me understand it better were:

It would be nice to have more examples about it in README or :help and also explain the difference with "alternate" option.

Otherwise, loving this plugin. One of the main reasons to switch fully to Vim :)

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

3 participants