I’d like to roll my own implementation of Goto Symbol in Project that displays previews of currently selected symbols in the list. However in the docs I can only see lookup_symbol_in_index and lookup_symbol_in_open_files, but not something like list_symbols_in_index. Am I overlooking something?
Is there an API for goto_symbol_in_project?
I craft this plugin https://github.com/dbousamra/sublime-rst-completion to write restructuredtext easily with ST2/3. I’ve already done a parser to get headers and its (getting the raw heeder, its line, level and associated region) and I want to feed the “Go to symbol” finder with this information in order to move beetwen them in a fuzzymatch way.
Any example on this?
This should be doable with show_quick_panel. ST3 defines the on_highlighted callback that can be used to open temporary views into the thing you’re currently focused at (using open_file with sublime.TRANSIENT). In ST2 you could achieve the same thing with a bit more hassle by intercepting on_selection_modified of the quick_panel view (yes, it’s a view!).
Sorry, not really. That’s just what comes from memory from my former experiments.