#14552: Tab completer improvements
----------------------------------+-----------------------------------------
Reporter: vbraun | Owner: was
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.10
Component: user interface | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Scott Mancuso | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by ppurka):
Some comments before you go on with this patch. It should be mentioned in
the documentation that these enhanced completions (except the greedy one)
make sense only in the notebook. In fact, they should perhaps be enabled
only if we are indeed working in the notebook. For instance, look at this
output in the terminal. There is no way I can continue with the completion
on the terminal (unless the shell can tab through the separate options,
like zsh).
{{{
sage: Double
ComplexDoubleElement RealDoubleElement is_ComplexDoubleElement
ComplexDoubleField RealDoubleField is_RealDoubleElement
sage: DoubleFie
ComplexDoubleField RealDoubleField
sage: DoubleFie
KeyboardInterrupt
sage: PR
CPRFanoToricVariety PariRing PolynomialRing
SetPartitionsPRk
sage: a = range(3)
sage: a[1]. # <----------- this is OK and useful in the terminal.
a[1].bit_length a[1].conjugate a[1].denominator a[1].imag
a[1].numerator a[1].real
}}}
Also, as you can see from the following output, not all the suggestions
are being made. There is some stuff missing.
{{{
sage: Fiel # <--------- Where are the RealField, ComplexField,
RealLazyField, etc?
Field FieldElement Fields
}}}
Now, some documentation changes :)
1. Use {{{:trac:`14552`}}} instead of
{{{http://trac.sagemath.org/sage_trac/ticket/14552}}}. The URL will be
automatically generated.
2. Don't break the
{{{:class:`~IPython.frontend.terminal.interactiveshell.TerminalInteractiveShell`}}}
into two lines. It looks a bit weird when rendered:
{{{
This method is basically copied from the method it overrides in "
TerminalInteractiveShell", but using "SageCompleter" as the
completer instead. This was done to address
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14552#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.