Open jhenzie opened 1 year ago
Realistically is this going to be used for anything else other than a .c/.cpp - .h file association?
I know of two other cases: foo.jai
and foo_test.jai
so jump between file and tests for the file, and foo.jai
and foo.html
- so between a file and a template that gets populated by the file. In emacs, there's projectile package that you can configure the "other file" - same name but different extension, the test prefix etc etc. I've never really used it much
Describe the bug A command associate other file that allows the user to locate a file that should be paired with the current file. For example: .h files for the currently open .c file.
If no other file has been associated with the current file launch the open file dialog and mark whatever file is opened as corresponding to the current file.
Subsequent other file commands will simply switch between the two files.
A command to clear the association would make the feature complete.
A more general utility would be to provide a pattern matching association in config, reverting to the specific file association if the match can not be found.