gomacro icon indicating copy to clipboard operation
gomacro copied to clipboard

:source codefile

Open glycerine opened this issue 7 years ago • 2 comments

It would great to have a easy way to read and interpret a file full of expressions and declarations.

Perhaps there is always a way I'm not finding. The opposite of :write. One could ideally :write the current set of definitions and types, then :source them back in later, in a different session.

glycerine avatar Jul 03 '18 03:07 glycerine

Currently, there is no single command to eval a whole file: the old classic interpreter has EvalFile(), but it's missing from the current fast interpreter.

It's surely worth adding, I will work on it.

cosmos72 avatar Jul 04 '18 20:07 cosmos72

Once this is implemented, it is very handy if we auto load a rc file (~/.gomacrorc) on start.

vitesse-ftian avatar Jul 24 '18 00:07 vitesse-ftian