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

Enable cycling in a "ring like" fashion #25

Open
benjamin-thomas opened this issue Sep 3, 2022 · 2 comments
Open

Enable cycling in a "ring like" fashion #25

benjamin-thomas opened this issue Sep 3, 2022 · 2 comments

Comments

@benjamin-thomas
Copy link

Hello, great job so far :)

Is this project still active?

Given this projection file:

{
  "lib/**/controllers/*_controller.ex": {
    "type": "controller",
    "alternate": "lib/{dirname}/views/{basename}_view.ex"
  },
  "lib/**/views/*_view.ex": {
    "type": "view",
    "alternate": "lib/{dirname}/templates/{basename}/index.html.heex"
  },
  "lib/**/templates/*/index.html.heex": {
    "type": "template",
    "alternate": "lib/{dirname}/controllers/{basename}_controller.ex"
  }
}

I'd like to be able to go to the controller, then the view, then the template, and back to the controller.

This is the behavior of the vim plugin.

At the moment, I can only toggle between the controller an the view.

@lemomar
Copy link

lemomar commented Jun 14, 2024

This would be nice for sure, I might look into opening a PR for it

@bschlenk
Copy link

I'd love this too, with the possibility that a file might not exist.

I have this set up for our storybook, to jump between the *.stories.tsx file and *.mdx file. But sometimes there is also a *.stories.module.css file I'd like to include in the ring.

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