On Thu, Feb 12, 2009 at 10:13 PM, Robert Bradshaw
<rober...@math.washington.edu> wrote:
>
> On Feb 10, 2009, at 11:44 PM, Simon King wrote:
>
>> An alternative idea:
>>  FOO.X<TAB>  -->  all attributes starting with X
>>  FOO.X<TAB><TAB> (press TAB twice) --> all attributes containing X
>>
>> Perhaps this is easier to implement.
>
> I actually like this perhaps a bit better, easier to type and to
> remember. It is also more likely to be "discovered."

iPython, by default, lists all possible completions when the TAB key
(or Ctrl-l) is pressed. But this behaviour can be changed (via the
user's personal ipythonrc file) to: TAB completes, but does not show
completions; TAB-TAB shows completions.

I guess I wanted to point out that:

(1) With a special, non-default setting in iPython, TAB-TAB has some
significance.

(2) The fact that iPython already has a mechanism to detect and handle
two TAB keypresses should make implementation easier.

If we decided to implement Simon's suggestion (which I like), we
should keep the first issue in mind. Perhaps that behaviour can be
relegated to TAB-TAB-TAB? (If the option is set, then: TAB completes,
but does not show completions; TAB-TAB shows completions; TAB-TAB-TAB
shows all completions containing ....)

Take care,
Franco

--

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to