mu/edit
Kartik Agaram 23d3a02226 4266 - space for alloc-id in heap allocations
This has taken me almost 6 weeks :(
2018-06-24 09:18:20 -07:00
..
001-editor.mu 4266 - space for alloc-id in heap allocations 2018-06-24 09:18:20 -07:00
002-typing.mu 4262 - literal 'null' 2018-06-17 15:57:37 -07:00
003-shortcuts.mu 4262 - literal 'null' 2018-06-17 15:57:37 -07:00
004-programming-environment.mu 4262 - literal 'null' 2018-06-17 15:57:37 -07:00
005-sandbox.mu 4262 - literal 'null' 2018-06-17 15:57:37 -07:00
006-sandbox-copy.mu 4262 - literal 'null' 2018-06-17 15:57:37 -07:00
007-sandbox-delete.mu 4261 - start using literals for 'true' and 'false' 2018-06-17 00:29:22 -07:00
008-sandbox-edit.mu 4261 - start using literals for 'true' and 'false' 2018-06-17 00:29:22 -07:00
009-sandbox-test.mu 4262 - literal 'null' 2018-06-17 15:57:37 -07:00
010-sandbox-trace.mu 4262 - literal 'null' 2018-06-17 15:57:37 -07:00
011-errors.mu 4262 - literal 'null' 2018-06-17 15:57:37 -07:00
012-editor-undo.mu 4262 - literal 'null' 2018-06-17 15:57:37 -07:00
Readme.md 4169 2017-12-30 20:52:43 -08:00

Readme.md

Environment for learning programming using Mu: http://akkartik.name/post/mu

Run it from the mu directory:

$ ./mu edit

This will load all the .mu files in this directory and then run the editor. Press ctrl-c to quit. Press F4 to save your work (if a lesson/ directory exists) and to run the contents of the sandbox editor on the right.

You can also run the tests for the environment:

$ ./mu test edit

You can also load the files more explicitly by enumerating them all (in order):

$  ./mu edit/*.mu

This is handy if you want to play with simpler versions of the editor that are easier to understand. Stop loading at any layer to run with a subset of features:

$ ./mu edit/001*.mu edit/002*.mu  # run a simple editor rather than the full environment

Appendix: keyboard shortcuts

moving and scrolling

  • ctrl-a or home: move cursor to start of line
  • ctrl-e or end: move cursor to end of line
  • ctrl-f or page-down: scroll down by one page
  • ctrl-b or page-up: scroll up by one page
  • ctrl-x: scroll down by one line
  • ctrl-s: scroll up by one line
  • ctrl-t: scroll until current line is at top of screen

modifying text