Dan2552 / SublimeTextSwiftAutocomplete

Swift autocompletion in Sublime Text using SourceKitten
MIT License
155 stars 7 forks source link

Documentation view #7

Open Dan2552 opened 7 years ago

Dan2552 commented 7 years ago

Sublime Text has a popup view that:

Shows a popup displaying HTML content.

Specifically, there's a flag for this popup view to work with autocomplete:

sublime.COOPERATE_WITH_AUTO_COMPLETE. Causes the popup to display next to the auto complete menu

See https://www.sublimetext.com/docs/3/api_reference.html

Dan2552 commented 7 years ago

this is partially done with the mouse-over popups, but I'm hoping it'll also be possible to show docs from the autosuggestions popup selections

nettlep commented 6 years ago

I had originally thought this was already in but just not working for me. Maybe not?

In either case, e0e0e31 (from PR #26) implements this:

screen shot 2018-02-15 at 10 42 53 am
Dan2552 commented 6 years ago

It's been a while so I might remember wrong what I meant, but I think when I made this issue what I had in my head was documentation showing alongside the autocomplete suggestions a bit like:

eclipse

The variable sublime.COOPERATE_WITH_AUTO_COMPLETE maybe sounds like it might do just that, but I never tried it out.