sagemath / sage-windows

Build tools for the Sagemath Windows installer
350 stars 47 forks source link

Include an editor #21

Open embray opened 6 years ago

embray commented 6 years ago

The %edit magic doesn't work, since if $EDITOR is not set it defaults to vi, but vi/vim are not installed either so just nothing happens. We could either include vim in the distribution, or preconfigure $EDITOR to something windows-ish (either notepad or wordpad--probably the latter since it handles unix newlines correctly, though the former is more familiar, and is also getting unix newline support soon).

Or we could include a text-based editor, but something more novice-friendly (say, nano).

embray commented 6 years ago

Huh, actually it looks like vi is included, in which case I'm not sure why %edit isn't working.

embray commented 6 years ago

Nevermind, it does work; I was just using it wrong. Nevertheless, perhaps we should include a friendlier default than vi (it actually is vim, but running in vi-mode, and plain vim curiously is not included).

slel commented 6 years ago

Maybe ATOM, customized to use Python syntax highlighting for all Python, Cython and Sage files (.py, .pyx, .spyx, .sage)?

embray commented 6 years ago

No, nothing GUI-based. The idea of this issue was to just have a reasonable default, not a full-featured editor included.