Another option might be to simply have a global variable in Lexicon.jl that 
tell ? how much the user wants to see.

But will 0.4 completely supersede this? Then probably not worth the effort.

    Thanks again for your help,
       Christoph

On Tuesday, 16 December 2014 15:38:31 UTC, Michael Hatherly wrote:
>
> I guess, this makes ? behave like @query.
>
> Yes, it modifies, here 
> <https://github.com/MichaelHatherly/Lexicon.jl/blob/f0f4943933390379b43dc46b95d24c847c9b2eae/src/query.jl#L223-L235>,
>  
> the Base.active_repl object so that ? mode calls
> @help followed by @query. This only works in the Julia REPL. None of the
> editors support this currently.
>
> Is there a way to limit how much output is shown? E.g., I may want to 
> “just” show the docstring, but nothing else?
>
> I’ve not been able to come up with a nice clean way to limit what’s shown 
> on a per-query basis, but I’d also certainly like to resolve this. Perhaps 
> something like:
>
> help?> foobar     # show a short summary of “foobar”
>
> help?> foobar +   # show all the docs on “foobar”
>
> might work nicely, or something similar.
>
> — Mike
>
> On Tuesday, 16 December 2014 15:57:27 UTC+2, Christoph Ortner wrote:
>
>
>> ah - thank you, I finally got it to work. In the past, I did not call 
>> "using Lexicon" in the REPL first.
>>
>> I guess, this makes ? behave like @query. 
>>
>> Is there a way to limit how much output is shown? E.g., I may want to 
>> "just" show the docstring, but nothing else?
>>
>> Thanks for your help. (And also for initialising this documentation 
>> facility - I am writing a large code in Julia, and this will be extremely 
>> useful.)
>>     Christoph
>>
>>
>> On Tuesday, 16 December 2014 06:47:46 UTC, Michael Hatherly wrote:
>>>
>>> Hi Christoph,
>>>
>>> The combo of Docile.jl *and* Lexicon.jl 
>>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FMichaelHatherly%2FLexicon.jl&sa=D&sntz=1&usg=AFQjCNEkdOGypYIYCx2eDpqSVtrT2EeUig>
>>>  
>>> should give you package help when using the REPL’s ? command in 0.3. 
>>> Let me know if you run into any problems with it. Also, for documenting 
>>> both version 0.3 and 0.4 you should be able to just wrap the Docile 
>>> import in an if statement like so:
>>>
>>> if VERSION < v"0.4-"
>>>     using Docile
>>> end
>>>
>>> Hopefully that should “just work”.
>>>
>>> — Mike
>>> ​
>>>
>>> On Tuesday, 16 December 2014 08:17:20 UTC+2, Christoph Ortner wrote:
>>>>
>>>>
>>>> Should the Docile @doc strings be displayed in the REPL using `?` ? Or 
>>>> is this only coming with 0.4?
>>>>
>>>> Christoph
>>>>
>>>> ​
>

Reply via email to