User to user discussion and support for UltraEdit, UEStudio, UltraCompare, and other IDM applications.

Project, workspace, and file management issues
4 posts Page 1 of 1
Hi there,
I wanted to know if someone was aware about a way to add add a directory to a project WITHOUT all of its sub-directories?
There is a global 'include subdirectory' option, but it is not exactly what I want. I would like to control which sub-directories I want to include.
I am attaching a small screenshot illustrating my point and the workaround I found (including directory/subdirectory one by one; losing the hierarchical tree features).
(Note that Dropbox has such a feature for selecting which directories to synchronize).

Subsidiary question:
I would like to only have the main directory displayed instead of the full path (Sublime text does this and it is easier to read - second attachment).

Thanks for your time and advice.

Attachments

UltraEdit displays the folder paths as added to the project file.

File and folder paths can be added:

  1. relative to Project directory as defined at top of Project Settings dialog on adding a file/folder, or
  2. relative to project file location (*.prj file) when there is no project directory defined, or
  3. absolute if usage of relative directory paths is disabled in project file or the added file/folder is on a different drive than the project directory/file.

It looks like on your project the project directory was not U:\oneboard as the folders were added to the project or the project file is not stored in U:\oneboard or the project option to add files and folders with relative directory path was not enabled although enabled by default.

Right click on project name on tab Project and left click in context menu on Edit project file. In opened project file there should be at top:

Use Relative Directory=1 ... to project directory if one defined or to project file.
Relative to Project File=1 ... which can be 0 with project directory defined.
Project DirectoryW=U:\oneboard ... or empty when paths should be relative to project file.

I think W is short for wide characters which means the path can contain also Unicode characters. The project file entries with W at end are new since UltraEdit v24.00 with full Unicode support also for file and folder names and paths.

On all other lines U:\oneboard should be replaced by .\ to convert the file and path entries in project file from absolute to relative.

Note:
When modifying the project directory in Project Settings dialog the existing relative paths are not automatically updated. So with changing project directory in Project Settings dialog UE/UES expect the same directory structure as before in newly set project directory without verification. This behavior is useful on copying or moving a project to same or another machine into a different directory with keeping the project directory structure as just the project directory path needs to be updated manually after that project move/copy. With no project directory defined and paths relative to project file which is located in project directory and not somewhere else as also possible, a project copy/move to a different directory on same or another machine does not need a manual modification of any project setting at all.



The currently latest UE v24.10.0.24 and UES v17.00.0.21 do not have a feature like a directory include/exclude filter. There is just a file include filter.

For that reason it is not really possible to add folder protected with including just 3 of the 6 subfolders respectively exclude 3 of the 6 subdirectories.

This means that either the 3 subfolders of real interest are added to the project instead of folder protected which of course means the tree structure is lost, or a group protected is added and in this group the 3 subfolders are added as folders. The second variant is also not optimal as .\protected\ is additionally displayed on each added folder.

project_view.png
Project list with a group and 3 subfolders added to group.
project_view.png (1.8 KiB) Viewed 185 times

UE/UES display also folders included because of option Include subdirectories checked even with no file found in a specific folder and having also no subfolder anywhere below with a project file according to file filter. Such an auto-hide feature for empty folder (tree) would have been useful if the 3 subdirectories to exclude have no file matching the file filter.

So at the moment I can only suggest that you send feature requests to IDM support for:

  1. A folder filter in addition to file filter to include only subfolders matching the folder filter patterns.
  2. An option to hide all folders not containing any project file according to file filter in the folder and all of its subfolders with Include subdirectories checked.
Best regards from Austria
Mofi you really rock!!!
Thanks to your input I have been able to get exactly what I want... the screenshot is worth any comment!
I found it much easier to directly edit the .prj file (which as you guessed is not stored with the source files of the project).

The cherry on the cake would be to be able to use this relative flag per group and not at project level so that in my dev group I could get rid of "x:\dev"...

But right now I am very happy with this configuration.
Thanks so much for your clear explanations.
All the best.

Attachments

I am realizing that I completely lost Git integration with these new settings.... 8O
Git seems to work only for files and directories that are not stored under a group (see the screenshot, the same directories appear twice, once in a group, once at the project root and we can clearly see which directories are tagged with the small Git icons...)
UES is a world of trade-off !
I am going to ask for 50% discount as it does half of what I want... :lol:

Attachments

4 posts Page 1 of 1