Norns REPL

This is a very simple extension that allows you to interact with Norns in a VSCode terminal, much like you would from the Maiden web interface.

The extension connects to Matron on Norns using a websocket. Lua code entered in the terminal is sent to Matron when you press return, and the results are printed in the terminal. There is basic support for command history using the up/down arrows.

Please file any bugs you find as a GitHub Issue!

Commands

nornsREPL.matron.connect

  • Connect to the Matron REPL at the configured Norns host and port
  • Command Palette: “Norns REPL: Connect to Matron…”

nornsREPL.crone.connect

  • Connect to the Crone REPL at the configured Norns host and port
  • Command Palette: “Norns REPL: Connect to Crone…”

Configuration

nornsREPL.host

  • Norns hostname to connect to
  • Default: norns.local

nornsREPL.matron.port

  • Matron websocket port to connect to
  • Default: 5555

nornsREPL.crone.port

  • Crone websocket port to connect to
  • Default: 5556

nornsREPL.maxHistory

  • Maximum number of previous commands to store in history
  • Default: 100

Changelog

[1.2.0] - 2021-02-14

  • Crone REPL

[1.1.0] - 2021-02-13

  • Cursor improvements. The prompt now supports navigating with the arrow keys and insert/delete at the cursor.
  • Minor history improvements.

[1.0.0] - 2020-02-06

  • Initial release
38 Likes

Instant install. Thank you!

2 Likes

whoa! been talking to some people about this… and now, here it is. thank you so much for sharing.

3 Likes

wow, this is great! many thanks

1 Like

Pushed up a new version. You can now navigate the prompt using the arrow keys and insert/delete at the current cursor position.

2 Likes

One more small update to add a Crone REPL command :slight_smile: