2
$\begingroup$

As much as Mathematica amazes me with endless variety of integrated functions and packages, inconsistency with functions parameters or finding details about a function takes some time and isn't as awesome.

Would it be possible to autoload documentation for currently typed function name? You can see attached screenshot to get the better idea of what I mean.

I know about Ctrl + Shift + K, but I'm interested in something more comprehensive.

enter image description hereThanks!

$\endgroup$
6
  • $\begingroup$ Place your mouse cursor anywhere in the symbol or at its end and press the F1 key. $\endgroup$
    – m_goldberg
    Commented Apr 27, 2014 at 12:37
  • $\begingroup$ I know about F1 but resizing window, clicking on "Details" takes a lot of time if you repeat it many times. Help also takes some time to load $\endgroup$
    – Bruno314
    Commented Apr 27, 2014 at 12:46
  • $\begingroup$ You have to resize only once. The second time you use F1 it uses the previous size. $\endgroup$ Commented Apr 27, 2014 at 14:14
  • $\begingroup$ Related: mathematica.stackexchange.com/questions/35370/… $\endgroup$ Commented Apr 27, 2014 at 14:15
  • $\begingroup$ For making resizing easy and other common window option setting, you might this answer useful. $\endgroup$
    – m_goldberg
    Commented Apr 27, 2014 at 14:22

1 Answer 1

4
$\begingroup$

I don't think that the following code will be easy to put in shortkeys file but it is a good start:

curr = EvaluationNotebook[];
nb = Documentation`HelpLookup["Plot"];
SelectionMove[Cells[nb, CellStyle -> "NotesSection"][[1]], All, Cell];
FrontEndTokenExecute[nb, "OpenCloseGroup"];
FrontEndTokenExecute[#, "WindowMiniaturize"] & /@ DeleteCases[Notebooks[], nb | curr];
FrontEndTokenExecute["TileWindowsTall"]

What procedures above do:

  • line(2): open documentation reference link
  • line(3-4):open Details & Options section
  • line(5): minimize all the windows except out current notebook and help.
  • line(6): tile windows tall :P

Results at the bottom of the post.

reference link to FrontEndTokens


A different Idea:

Instead of creating a new shortcut for this operation it probably can be done as follows:

Capture F1 with that code but use the code from above. There will be an issue with detecting which notebooks should be minimized but I think this way is promissing. I don't have time to try it now, maybe later, but I can't promise.


Before:

enter image description here

After:

enter image description here

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.