[Github-comments] [geany/geany] Geany's context again (#1836)

Matthew Brush notifications at xxxxx
Sat Apr 21 15:57:01 UTC 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180421/a03f2d85/attachment.html>


More information about the Github-comments mailing list