white wrote: β2022-10-13, 15:19 UTCScripts, other TC buttons, programs that use certain environment variables, program that support environment variables in their configuration.
In my memory, there were a couple of requests that concerned remembering the full file name. This is copying it to the folder of the active panel or returning to it by
cd. I don't remember anything else useful. So I'm asking you to give live examples, not abstract ones.
In any case, you can make hotkeys (autorun: SetHotkeyAction + SetEnv + GetCurrentItem) to create environment variables during the session without TC commands.
white wrote: β2022-10-13, 15:19 UTCI see what you mean. With "empty" I meant a non-existing environment variable, not a variable that holds an empty string.
Anyway I don't understand the logic of
cm_SetIfEmpty my_var=empty,. If there is no variable, then must be done so that it does not exist? Meaninglessness.
And in this case, the name should be changed from
cm_SetIfEmpty to
cm_SetIfNotExist,
cm_SetIfAbsent or
cm_SetIfMissing.
white wrote: β2022-10-13, 15:19 UTCSome programs are weird and require their bin folder to be in the path or they can't find their libraries.
To run, you always need the folder where the program is located. It doesn't matter if it's bin or something else.
But I'm beginning to understand what you need. You often conduct tests with some program and want to run it regardless of the change of the working directory (tree navigating, tab switching, etc.). Am I thinking in the right direction?