On Feb 10, 2009, at 2:58 AM, Nicolas M. Thiery wrote: > >>>> On Feb 9, 2009, at 11:34 PM, Simon King wrote: >>>>> Yes! >>>>> I could imagine: >>>>> 1. FOO.X<TAB> searches for attributes that start with X (current >>>>> behaviour) >>>>> 2. FOO.X<Shift-TAB> searches for attributes that *contain* X (new >>>>> feature) > > +1 as well > > And a big +1 in general for this discussion. In MuPAD-Combinat we had > gone for the "eigenvectors_right" convention precisely for this > question of tab completion. When moving to sage, we discovered the > bla.*eigenvectors*? trick, and decided accordingly to drop the ugly. > > Note: to me the most natural thing to do would be (and this would be > consistent with "?"): > > FOO.X<TAB>: current behavior: searches for attributes that start > with X > > FOO.*X<TAB>: extended behavior: searches for attributes that > contain X > > One advantage is that this should require no change in the sage > interfaces. In particular, this does not require playing with special > inputs like Shift-TAB, which can be messy in terminals.
One disadvantage of this is that if one types Foo.X<tab> and doesn't see the command one wants, one has to go all the way back and insert the * rather than doing shift-tab at that point to get more options. I'm not trying to mitigate the terminal issues though, no reason we can't provide both options. Also, I am +1 for the idea of removing deprecated functionality from the tab completion lists too. - Robert --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---