-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling robe-doc-for from elsewhere #11
Comments
Hi Steve, Spec is a more or less resolved/disambiguated method. To get the list of them for a method name, you make a call to
|
That'd be cool. I just released an initial simple version of ac-inf-ruby without any documentation support for now. |
Actually, why don't you just call Let me know if you need help deciphering the arguments. |
Can do, if the signature of that method is going to remain fairly stable for a while. |
Yeah, I think it's not practical to do that, because I'd have to reproduce the logic in |
It's likely to change at some point, but I'll make sure to let you know.
I was thinking you'd just ignore everything surrounding the method name. But if you'd like to at least recognize when the call target is a class, you can do |
I like the difference in verbosity. :) |
Re. the verbosity, yes, I need to give company another try. I switched over for a while several months ago, but eventually reverted, for reasons I don't now recall. And similarly, I'm now on about my 3rd attempt to live with |
It would be nice if you could recall the reason you went back the last time. Lack of integration with various packages, like Tern? I've never tried smartparens myself, paredit and autopair work reasonably well so far. Maybe in a couple of years... :) |
Yep, I wish I could remember. I'll try flipping back so that I can give more useful feedback. Re smartparens, I've just today gone back to |
Same here. With |
I haven't noticed it doing that, but smartparens was doing a lot of unexpected stuff by default, e.g. if you had:
where
which confused me. There's lots of magic whitespace behaviour too, and special behaviour inside strings. It can all be configured, but I really just want paredit + reasonable pairing. What finally turned me off was that there's a Still, give it a try sometime and see what you think. |
FWIW, Ruby with SMIE enabled integrates with |
Ooh, shiny! -> dashes off to try it out |
Works nicely! I've been using |
Hey Dmitry! I'm writing an
auto-complete
source forinf-ruby-mode
, and I'd like to hook the pop-up documentation intorobe
when it's available.robe-doc-for
is the obvious entry point for this, but it expects aspec
rather than just a symbol name. Is there an easy way to get the former from the latter? I didn't see anything ininf-ruby
itself for querying documentation.The text was updated successfully, but these errors were encountered: