[sage-devel] Re: search_methods() to search the methods of an object

2010-10-19 Thread Nick Alexander
> How about a function, somewhat like search_doc, search_def, and friends, > that accepts an object and a string, and returns methods that match that > string? Would you find that useful? I think this is a good idea, but can't resist... > Often, I find myself doing > > X.a (look through

[sage-devel] Re: search_methods() to search the methods of an object

2010-10-19 Thread Nick Alexander
> How about a function, somewhat like search_doc, search_def, and friends, > that accepts an object and a string, and returns methods that match that > string? Would you find that useful? In my haste to plug sage-mode, I forgot this: sage: X.*foo*? ... all methods that match 'foo'. Only in IPyth

[sage-devel] Re: search_methods() to search the methods of an object

2010-10-20 Thread Jason Grout
On 10/20/10 12:35 AM, Dan Drake wrote: On Tue, 19 Oct 2010 at 09:43PM -0700, Nick Alexander wrote: If you used emacs sage-mode, tab complete would bring up a buffer of completions for X., which you could then interactively search (and regexp search), or run M-x occur to find all occurences, etc.

[sage-devel] Re: search_methods() to search the methods of an object

2010-10-20 Thread Jason Grout
On 10/20/10 6:46 PM, Dan Drake wrote: On Wed, 20 Oct 2010 at 05:46AM -0500, Jason Grout wrote: We've had discussions about changing the tab completion so that an odd number of tabs does what happens now, and an even number of tabs (e.g., two tabs) does X.*foo*?. Do you see an easy way to do tha

[sage-devel] Re: search_methods() to search the methods of an object

2010-10-20 Thread kcrisman
On Oct 20, 10:26 pm, Jason Grout wrote: > On 10/20/10 6:46 PM, Dan Drake wrote: > > > On Wed, 20 Oct 2010 at 05:46AM -0500, Jason Grout wrote: > >> We've had discussions about changing the tab completion so that an > >> odd number of tabs does what happens now, and an even number of tabs > >> (e

[sage-devel] Re: search_methods() to search the methods of an object

2010-10-21 Thread Pedro Cruz
Maybe there's an advantage in change from X.ker (look through "ker*" methods...) to X.ker (look through methods that contain "ker" in name ...) In fact, it's what X. (look through "*" methods...) do. Pedro On Oct 20, 5:24 am, Dan Drake wrote: > Here's something that happens t

Re: [sage-devel] Re: search_methods() to search the methods of an object

2010-10-19 Thread Dan Drake
On Tue, 19 Oct 2010 at 09:43PM -0700, Nick Alexander wrote: > If you used emacs sage-mode, tab complete would bring up a buffer of > completions for X., which you could then interactively search > (and regexp search), or run M-x occur to find all occurences, etc. In > my opinion, this is more flexi

Re: [sage-devel] Re: search_methods() to search the methods of an object

2010-10-20 Thread Dan Drake
On Wed, 20 Oct 2010 at 05:46AM -0500, Jason Grout wrote: > We've had discussions about changing the tab completion so that an > odd number of tabs does what happens now, and an even number of tabs > (e.g., two tabs) does X.*foo*?. Do you see an easy way to do that? > I think making such a change w