Why you don't think that next suggestion:ghisler(Author) wrote: 2024-01-26, 10:06 UTC In RC3 I will keep the Lister window open half a second after launching the editor, this way it should be easier for third party tools to determine that they were not launched from the main TC window.
isn't a MUCH more better variant? It will be easy to use NOT only for fully finished third-party programs,Flint wrote: 2024-01-25, 12:03 UTCDo you think you could introduce some difference; maybe pass an extra environment variable into the started editor's environment block, which would contain a value, defining the particular type of the editor call? Then the proxy-editor authors could easily recognize all the scenarios.ghisler(Author) wrote: 2024-01-25, 08:36 UTC then TCER will have to be updated to detect whether the calling window is Total Commander or not.
For example, a variable named %COMMANDER_EDITOR_SRC%, which would contain one of the possible values:
main, if the editor was called from the main TC panels;
sync, if it was called from SyncDirs;
find, if from Find Files;
lister, if from Lister;
cmd, if called via cm_Edit.
I think that would cover it.
but also for our own scripts, which may definitely not have enough time for analysis, if they can detect
this time-lag at all.
And thanks to such values, there is much more "space" for performing some necessary actions,
Previously, which could not even be fulfilled - because it was impossible to determine the initial conditions
of their triggering...