> Do you have these changes posted somewhere? I'd like to try it out, if > possible.
er, no, but here are a few hints. First try sage -grep "def" | grep "def " >~/.sage/sage_doc so you have a file in your .sage folder containing all the lines in SAGE's code containing the word "def " (i don't know why sage -grep "def " with a space does not work, the second grep is here to fix the problem). then in tools/external tools i add a script "quick sage documentation" whose input is "current selection" and output "bottom pannel", and which contains: ---------------------------------- #!/usr/bin/env python from sys import stdin from commands import getoutput name= stdin.read() cmd= "cat /home/my_home_folder_here/.sage/sage_doc | grep \"def " + name + "\"" s= getoutput(cmd) print s ---------------------------------- so if i select MatrixSpace and run that tool, the bottom panel displays matrix/matrix_space.py:def MatrixSpace(base_ring, nrows, ncols=None, sparse=False): You may want to script to have "current word" as its input but careful, underscores are understood as word separators. In order to get the full documentation, i've added the following script, whose execution is pretty slow but it works: the bottom panel displays the whole thing. So in tools/external tools, add a script "full sage doc" with the same input and output containing ----------------------------------- #!/usr/bin/env python from sys import stdin word= stdin.read() from commands import getoutput cmd= "echo " + word + "? | sage" print getoutput(cmd) ----------------------------------- so it just runs "echo MatrixSpace? | sage" when MatrixSpace is selected, and prints it in the bottom panel. i'll write again about the completion trick (i've tried to play with it recently and it doesn't work anymore!) --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
