cogentcore / core

A free and open source framework for building powerful, fast, and elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the Web with a single pure Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.31k stars 71 forks source link

texteditor lookup should first look for symbol name in symbols -- jump to that #893

Open rcoreilly opened 4 months ago

rcoreilly commented 4 months ago

Describe the feature

Ctrl+L is lookup, only opens a file at this point -- should first look for symbol in list of symbols and jump directly to that if found.

Relevant code

No response

rcoreilly commented 4 months ago

It is Ctrl+, btw, and via a fairly circuitous route, it ends up in CodeView.LookupFun(), in codev/editor.go, wherein it calls Lang.Lookup, which ends up in golang.Lookup, in golang/complete.go, which does a bunch of complicated stuff.. need to dive into that.