Author Topic: Edit Associated File quirks  (Read 1996 times)

skywise

  • Senior Community Member
  • Posts: 331
  • Hero Points: 10
Edit Associated File quirks
« on: June 13, 2013, 02:12:50 pm »
I've got a C++ project setup with lots and lots of directories of various code libraries that I'm constantly hopping around.  Most of the libraries are also setup to have the header files (.h) kept in a separate directory than the .cpp files.

What I'm seeing is that when I right click and select Edit Associated File on a .cpp file (misc.cpp) that has at least 2 other instances of misc.h in different directories, SE is automatically jumping to the first misc.h that it can find which happens to be the wrong one.  It should pop up a dialog box allowing me to choose the correct one, right?  I've confirmed both the misc.h files are in the project file list.

sigmund

  • Community Member
  • Posts: 53
  • Hero Points: 6
Re: Edit Associated File quirks
« Reply #1 on: September 26, 2018, 09:55:38 am »
This problem still exists in SlickEdit 2018, beta4.

I suggest changing the behavior of edit-associated-file to jump to the associated file that has the common ancestor directory with the longest path.

E.g. if these files are part of the workspace:
Code: [Select]
project1/src/class.cpp
project1/include/class.h
project2/src/class.cpp
project2/include/class.h

then edit-associated-file should toggle between
Code: [Select]
project1/src/class.cpp
project1/include/class.h

and between
Code: [Select]
project2/src/class.cpp
project2/include/class.h

The current behavior is very frustrating.
« Last Edit: September 26, 2018, 10:00:32 am by sigmund »