I'm wondering if it it's really appropriate for non-scope auto-completion. If I hack sidebar.c, why would sidebar.h symbols be more relevant than gtk_* symbols?
Both are equally relevant but the question is when the autocompletion starts returning useful results. For GTK it will be only after you type a sufficiently long prefix like `gtk_something_` when the symbol you want starts appearing. You definitely won't get anything useful when you just type `g`. On the other hand, if you want something from `sidebar.h` that starts with `g`, just typing the single `g` might already give you what you want. But when this is mixed with all the symbols from GTK, this symbol from `sidebar.h` gets lost in all the other GTK symbols and you won't get useful results after typing the `g`. In short: 1. This doesn't improve (but also doesn't worsen) anything when you want a GTK symbol 2. But improves autocompletion when you want a symbol from your own sources