-
Notifications
You must be signed in to change notification settings - Fork 49
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
Incorrect switch if same file name exists elsewhere #32
Comments
Yeah, that's a tough one. How to you propose this should be handled? |
Only having one The other way would be to check the path that differs by the |
They are never both used in the same app. The include/src check would severely limit the usefulness of the plugin (I use it to switch between .h,.C, and .md files using |
They aren't used in the same app, but they're still all accessible in my atom Moose window. I didn't know you could switch with the md now, that's handy. All in all, not really a big deal since this seems like a one-off. Just an FYI. |
How about preferring switch targets by "closeness" in filesystem? At the very least on name colisions prefer the one that is in the same directory, and beyond that maybe use a metric based on how far apart in the directory tree two files are? should be simple, no? at least the "same dir" check should be. would help a lot :). |
When on
test/src/kernels/MatDiffusion.C
, switch goes tomodules/phase_field_include/kernels/MatDiffusion.h
The text was updated successfully, but these errors were encountered: