There was another Issue or PR or discussion somewhere about having Geany set
environment variables, it seems like that would satisfy this purpose, right?
Like whenever Geany updates the status bar it could call a function like
(pseudo code):
```c
void update_environment(GeanyDocument *doc)
{
g_setenv("GEANY_CURRENT_FILE", doc->real_path, TRUE);
g_setenv("GEANY_CURRENT_LINE", ..., TRUE);
g_setenv("GEANY_...", ..., TRUE);
...
}
```
Which would work automatically for context action, custom commands and build
commands all at once.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1836#issuecomment-383308502