Hi I spent a little time digging into this issue and made the following observations:
- It does not look like BBEdit is passing the keyword to specify the language
docset when performing a look up in Dash. Not sure why that is but I would
venture the guess that BBEdit does not know what docsets are installed and what
the keywords are, for example BBEdit knows about python as a document language
but Dash distinguishes between python2 and python3 as docset keywords.
- You get better results if you enter a Dash lookup url in the 'Reference URL
template' field in the language preferences, see the two urls that are in the
email chain below.
- You need to turn off the Dash defaults if you want to use the 'Reference URL
template' with this expert preference, which seems to override the 'Reference
URL template':
defaults write com.barebones.bbedit UseDashForReferenceLookups -bool No
- You can get the Dash keyword from the Docset tab in the Dash preferences to
construct your lookup url to add to the language preferences.
One possible solution would be for BBEdit to allow the setting of a BBEdit
Language to Dash keyword mapping somewhere, in the expert preferences perhaps.
Cheers
François
On Dec 16, 2013, at 5:50 PM, Charlie Garrison <[email protected]> wrote:
> Good morning,
>
> On 16/12/13 at 4:29 PM -0600, Rod Buchanan <[email protected]> wrote:
>
>> BBEdit does not pass docset info to Dash. The more you think about it,
>> there is no way for them to know exactly what to send.
>
> I'm not sure I agree with that. The Dash URL scheme does allow passing which
> docset to search:
>
> <http://kapeli.com/guide/guide#dashURLScheme>
>
> Whether BBEdit passes that along; I have no idea.
>
>> I ended up disabling builtin Dash support using the expert pref, and
>> added custom handlers in Language prefs for what I need.
>
> Which is a good idea. Combine that with the custom URL scheme and searches
> can be limited to the docset matching the language of the current document.
>
>
> Charlie
>
> --
> Ꮚ Charlie Garrison ♊ <[email protected]>
>
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
> 〠 http://www.ietf.org/rfc/rfc1855.txt
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or would like to report a problem, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
>
> --- You received this message because you are subscribed to the Google Groups
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
signature.asc
Description: Message signed with OpenPGP using GPGMail
