Ask Your Question

Revision history [back]

Autocompletion of filenames in Sage notebook

I'm working within a Sage notebook (not a terminal). The tab autocompletion for commands is lovely, but is there something similar for filenames and folders when you're loading/attaching?

For example, if I want to attach the file myscripts/folder123/example456.sage (assuming that 'myscripts' is in my load_attach_path), I would type:

attach folder123/example456.sage

If I were to type only a portion of that path and hit tab, it doesn't autocomplete or give completions for the folder or filename; it either does nothing, indents, or (e.g., after the "e" in "example123") brings up a list of commands, without listing any filenames. Is there anything I can do to change this?

Disclaimer: I'm very new to all this, and pretty Unix-incompetent.

click to hide/show revision 2
retagged

Autocompletion of filenames in Sage notebook

I'm working within a Sage notebook (not a terminal). The tab autocompletion for commands is lovely, but is there something similar for filenames and folders when you're loading/attaching?

For example, if I want to attach the file myscripts/folder123/example456.sage (assuming that 'myscripts' is in my load_attach_path), I would type:

attach folder123/example456.sage

If I were to type only a portion of that path and hit tab, it doesn't autocomplete or give completions for the folder or filename; it either does nothing, indents, or (e.g., after the "e" in "example123") brings up a list of commands, without listing any filenames. Is there anything I can do to change this?

Disclaimer: I'm very new to all this, and pretty Unix-incompetent.