JonyEpsilon / gorilla-repl

A rich REPL for Clojure in the notebook style.
http://gorilla-repl.org
MIT License
887 stars 104 forks source link

Importing existing namespaces. #159

Closed ghost closed 7 years ago

ghost commented 10 years ago

It should be possible to load a non gorilla .clj file and gorillarize upon saving. I'd simply put everything in one segment when imported.

JonyEpsilon commented 10 years ago

Yes, it would be nice to open existing clj files. I've been discussion this a bit with @lspector off-Github, and the question is how best to handle the fact that opening and then saving a file is a file-changing-operation. Two options are warning when opening a plain clj file, saying that the file will be altered upon save, or using "Import" language for the operation.

I think I'm tending towards the latter, as it's how applications usually deal with reading non-native filetypes.

benfb commented 7 years ago

This works now! It was fixed in January.