Consider the following set of files arranged in the indicated directory structure:
Code: Select all
C:\example\file1.txt
C:\example\others\file2.txt
C:\example\others\file3.txt
Code: Select all
file1.txt
file2.txt
file3.txt
others\file2.txt
others\file3.txt
If the open include menu is then used on each of these lines in turn these would be the results
- file1.txt - works fine (happy to open ourselves)
- file2.txt - fails (can't find this file c:\exmaple\ + \file2.txt)
- file3.txt - fails (can't find this file c:\exmaple\ + \file3.txt)
- others\file2.txt - works (finds c:\exmaple\ + others\file2.txt)
- others\file3.txt - works (finds c:\exmaple\ + others\file3.txt)

So why has change made it work

Now when Zeus tries to load the files, it also uses the search path in the search, meaning you get these results:
- file1.txt - works fine (happy to to open ourselves)
- file2.txt - fails (can't find this file c:\exmaple\ + \file2.txt)
- file2.txt - works (finds c:\exmaple\others + \file2.txt)
- file3.txt - fails (can't find this file c:\exmaple\ + \file3.txt)
- file3.txt - works (finds c:\exmaple\others + \file3.txt)
- others\file2.txt - works (finds c:\exmaple\ + others\file2.txt)
- others\file3.txt - works (finds c:\exmaple\ + others\file3.txt)
Code: Select all
file1.txt
file2.txt
file3.txt
others\file2.txt
others\file3.txt
file4.txt
more\file4.txt
- file4.txt - fails (can't find c:\exmaple + \file4.txt)
- more\file4.txt - works (finds c:\exmaple\ + more\file4.txt)

One other thing worth mentioning is the following case. Consider this text as being the contents of the file2.txt file:
Code: Select all
file3
file3.txt
- file3 - works (loads if cursor is on the word file3)
- file3.bad - works (loads file3.txt if file3 is the selected text)
- file3.txt - works (file4.txt)

In this special case Zeus used the current word or selected text as the base of the file name and then appended the extension of the current file to create the full file name.
This is feature is particularly useful for languages like Java where the name of the class matches the name of the file in which it is defined.
Things to remember:
- The search path above is defined in the document type. This means it is only used when the active document is of the same document type.
- The exception to this rules is when the search path is added to the default document type. In this case it will be used by all documents.
- The search path can also be defined in the General section of the workspace settings.
- The file open include works for all windows.
- If this menus fails it can mean one of two things. Zeus could it could not find a file name in the current line or the file name that was found could not be located on the disk.
- If you highlight some text you can force Zeus to use the highlighted text as the file name.