Commands: Documentation for word #7

Merged
merged 1 commit into from Aug 24, 2012

Conversation

Projects
None yet
2 participants
Contributor

lickel commented Aug 24, 2012

This will look up the current selection / word via http://docs.go-mono.com

I could expand this but then we'd need to parse JSON.

@lickel lickel Commands: Documentation for word
This will look up the current selection / word via http://docs.go-mono.com

I could expand this but then we'd need to parse JSON.
46d4b0e

@wintermi wintermi added a commit that referenced this pull request Aug 24, 2012

@wintermi wintermi Merge pull request #7 from lickel/doc-for-word
Commands: Documentation for word
1594808

@wintermi wintermi merged commit 1594808 into wintermi:master Aug 24, 2012

Owner

wintermi commented Aug 24, 2012

I will look at replacing it with a Ruby script to parse the JSON.

Contributor

lickel commented Aug 24, 2012

That's actually how I started working on this.
I didn't want to bundle a gem, and the Json gem isn't installed on a mac by default.

It looks like the SQL bundle does bundle it though.

Owner

wintermi commented Aug 24, 2012

Installing brew, rvm and the latest releases of Ruby are one of the first things I do after a clean OS X install.

Which makes me forget that the system version of Ruby is so behind.

We could however use Python, as the system version does include the JSON library. Looking at the Python bundle there is already a docs lookup written in Python that could be reused.

Contributor

lickel commented Aug 24, 2012

Makes sense. Granted the json thing is a big hack -- reading their AJAX search results to forward them to a different web view.

I wanted to use the command line tools, but it requires you to know everything, e.g.

mod T:System.Collections.ArrayList

Contributor

lickel commented Aug 24, 2012

Actually, the JSON has the full name that mod expects.

If we parse the JSON we could either run mod and show that output.
Alternatively, we could open an mdoc:// URL which should load MonoDoc.app.
That being said, that app doesn't work very well for me…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment