To create relative session paths, you first need to decide what the reference point will be.
The logical thing would be to use the "projects" folder... but this concept isn't predetermined in Qtractor. And that has its advantages.
For example, thanks to this, I was able to define a .temp directory, which is a different concept than a projects folder, and I was able to get it to work the way I intended.
Others might want to have multiple default project folders... In short, endless possibilities.
There is a variable for "SessionDir" in the configuration file. However, all this does is save the last session directory; it's variable. It doesn't fulfill the function of defining the directory.
In Qtractor, the closest thing to defining this "projects" directory is to assign it within the template.
I think what you're saying would be useful in many cases. It would be something like this:
[X] Projects directory relative to: [MyPath/Projects] [⌄]📂
Then the project path (according to your example):
MyPath/Projects/Foo/Session
It would be
../Foo/Session
The properties window would appear by default:
Directory:
[../ ] [⌄]📂
And you would complete it with "Foo/Session":
[../Foo/Session ] [⌄]📂
PS
Although it is also true that in case of "moving" or back up, creating a bash script that searches in the directories "<directory>MyPath/Projects" and replaces it with "<directory>..//" is easy to do, in fact it can be done even without script with Kate or Geany.
To create relative session paths, you first need to decide what the reference point will be.
The logical thing would be to use the "projects" folder... but this concept isn't predetermined in Qtractor. And that has its advantages.
For example, thanks to this, I was able to define a .temp directory, which is a different concept than a projects folder, and I was able to get it to work the way I intended.
Others might want to have multiple default project folders... In short, endless possibilities.
There is a variable for "SessionDir" in the configuration file. However, all this does is save the last session directory; it's variable. It doesn't fulfill the function of defining the directory.
In Qtractor, the closest thing to defining this "projects" directory is to assign it within the template.
I think what you're saying would be useful in many cases. It would be something like this:
[X] Projects directory relative to: [MyPath/Projects] [⌄]📂
Then the project path (according to your example):
MyPath/Projects/Foo/Session
It would be
../Foo/Session
The properties window would appear by default:
Directory:
[../ ] [⌄]📂
And you would complete it with "Foo/Session":
[../Foo/Session ] [⌄]📂
PS
Although it is also true that in case of "moving" or back up, creating a bash script that searches in the directories "<directory>MyPath/Projects" and replaces it with "<directory>..//" is easy to do, in fact it can be done even without script with Kate or Geany.