[Github-comments] [geany] Rewrite scope completion 3 (#862)

elextr notifications at xxxxx
Tue Jan 12 02:37:04 UTC 2016


On 12 January 2016 at 12:08, Matthew Brush <notifications at github.com> wrote:

> Things in namespaces autocomplete now (I turned it on to check :).
>
> Doesn't work here. Maybe you misunderstood what @b4n
> <https://github.com/b4n> was saying? Here's an example:
>
> namespace Foo { void bar() {} }int main() {
>     Foo::<<<<---- no completion suggestions here
> }
>
>
​Ok, yeah I misunderstood what he was talking about.​  I understood it to
mean the symbols in the namespace would not be available at all, ie if I
had typed `Foo::ba` then "bar" would not be available for completion.



> The current way (and likely after this PR too) is particularly broken in
> that it gives auto-completions for stuff that is in an inaccessible
> namespace. For example:
>
> namespace Foo { void blah_blah() {} }int main() {
>     blah_bl<<<<---- gives an invalid completion for "blah_blah" here
> }
>
>
​Which is the sort of thing that gets it turned off :)​



> Personally I don't use auto-completion to speed up typing, I use it for
> exploring symbols I can validly use at that point in the code and to get
> them spelt correctly, and the current case-sensitive, prefix-matched,
> kitchen sink auto-completions causes me to use IDE with "smart"
> auto-completions when I'm writing C++ (ex. QtCreator, VisualStudio).
>

​Though that has its problems too :(​



>> Reply to this email directly or view it on GitHub
> <https://github.com/geany/geany/pull/862#issuecomment-170759070>.
>


---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/862#issuecomment-170764606
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160111/7c34454c/attachment.html>


More information about the Github-comments mailing list