coffeescript icon indicating copy to clipboard operation
coffeescript copied to clipboard

Proposal: REPL .editor command should open an actual editor and not simple, no-readline stdin

Open sr105 opened this issue 7 years ago • 1 comments

The current REPL responds to .editor by reading stdin like running cat with no arguments. It would be a ton friendlier to open an editor like nano or vim and possibly respect the VISUAL and EDITOR environment variables. Alternatively, if the prompt supported multiline readline support like other REPLs, that would be nice, too.

CoffeeScript version 2.3.1 Node: v10.4.0

sr105 avatar Oct 01 '18 14:10 sr105

CoffeeScript is an ideal language for a system shell. You can create much more powerful one-liners with CoffeeScript than you can with bash, but you can also write nice, clear code in scripts. Having a modern interactive environment for CoffeeScript would be sweet. Python Prompt Toolkit is awesome for building modern shells and console apps, but it's Python.

carlsmith avatar Mar 28 '19 00:03 carlsmith