about summary refs log tree commit diff stats
path: root/html/edit/003-shortcuts.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-12-06 09:35:10 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-12-06 09:35:10 -0800
commite7f65b0a4b0af23f5107fb44b8dc39514411589d (patch)
tree1daac08be41d6e9aefc301a30368e5fc88cb320b /html/edit/003-shortcuts.mu.html
parent650a201d96de650fac3c29f886f100eb7a1c7539 (diff)
downloadmu-e7f65b0a4b0af23f5107fb44b8dc39514411589d.tar.gz
3703
Diffstat (limited to 'html/edit/003-shortcuts.mu.html')
-rw-r--r--html/edit/003-shortcuts.mu.html70
1 files changed, 35 insertions, 35 deletions
diff --git a/html/edit/003-shortcuts.mu.html b/html/edit/003-shortcuts.mu.html
index e7b49f49..504afa7f 100644
--- a/html/edit/003-shortcuts.mu.html
+++ b/html/edit/003-shortcuts.mu.html
@@ -77,7 +77,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
   assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   assume-console [
     left-click<span class="Constant"> 1</span>,<span class="Constant"> 1</span>
     press backspace
@@ -280,7 +280,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
 <span class="Constant">ghi jkl]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># position the cursor at the start of the second and hit backspace</span>
   assume-console [
     left-click<span class="Constant"> 2</span>,<span class="Constant"> 0</span>
@@ -312,7 +312,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
    <span class="Constant"> . ghij     .</span>
    <span class="Constant"> .╌╌╌╌╌╌╌╌  .</span>
   ]
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># position the cursor somewhere in the middle of the top screen line and hit backspace</span>
   assume-console [
     left-click<span class="Constant"> 1</span>,<span class="Constant"> 4</span>
@@ -338,7 +338,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
   assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   assume-console [
     press delete
   ]
@@ -352,7 +352,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
    <span class="Constant"> .          .</span>
   ]
   check-trace-count-for-label<span class="Constant"> 3</span>, <span class="Constant">[print-character]</span>  <span class="Comment"># length of original line to overwrite</span>
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   assume-console [
     press delete
   ]
@@ -424,7 +424,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
   assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   assume-console [
     press right-arrow
     type <span class="Constant">[0]</span>
@@ -520,7 +520,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
 <span class="Constant">d]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># type right-arrow a few times to get to start of second line</span>
   assume-console [
     press right-arrow
@@ -580,7 +580,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
   assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor <span class="Constant">[abcdef]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   assume-console [
     left-click<span class="Constant"> 1</span>,<span class="Constant"> 3</span>
     press right-arrow
@@ -610,7 +610,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
   <span class="Comment"># line just barely wrapping</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor <span class="Constant">[abcde]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># position cursor at last character before wrap and hit right-arrow</span>
   assume-console [
     left-click<span class="Constant"> 1</span>,<span class="Constant"> 3</span>
@@ -646,7 +646,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
   assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor <span class="Constant">[abcdef]</span>, <span class="Constant">1/left</span>, <span class="Constant">6/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   assume-console [
     left-click<span class="Constant"> 1</span>,<span class="Constant"> 4</span>
     press right-arrow
@@ -677,7 +677,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
 <span class="Constant">d]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># move to end of line, press right-arrow, type a character</span>
   assume-console [
     left-click<span class="Constant"> 1</span>,<span class="Constant"> 3</span>
@@ -707,7 +707,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
   assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   assume-console [
     left-click<span class="Constant"> 1</span>,<span class="Constant"> 2</span>
     press left-arrow
@@ -751,7 +751,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
 <span class="Constant">d]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># position cursor at start of second line (so there's no previous newline)</span>
   assume-console [
     left-click<span class="Constant"> 2</span>,<span class="Constant"> 0</span>
@@ -778,7 +778,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
 <span class="Constant">g]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s:text, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># position cursor further down (so there's a newline before the character at</span>
   <span class="Comment"># the cursor)</span>
   assume-console [
@@ -807,7 +807,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
 <span class="Constant">g]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># position cursor at start of text, press left-arrow, then type a character</span>
   assume-console [
     left-click<span class="Constant"> 1</span>,<span class="Constant"> 0</span>
@@ -837,7 +837,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
 d]
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e:&amp;:editor
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># position cursor right after empty line</span>
   assume-console [
     left-click<span class="Constant"> 3</span>,<span class="Constant"> 0</span>
@@ -863,7 +863,7 @@ d]
   <span class="Comment"># initialize editor with a wrapping line</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor <span class="Constant">[abcdef]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   screen-should-contain [
    <span class="Constant"> .          .</span>
    <span class="Constant"> .abcd↩     .</span>
@@ -896,7 +896,7 @@ d]
 <span class="Constant">g]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   screen-should-contain [
    <span class="Constant"> .          .</span>
    <span class="Constant"> .abcd↩     .</span>
@@ -929,7 +929,7 @@ d]
 <span class="Constant">e]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   screen-should-contain [
    <span class="Constant"> .          .</span>
    <span class="Constant"> .abcd      .</span>
@@ -965,7 +965,7 @@ d]
 <span class="Constant">def]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   assume-console [
     left-click<span class="Constant"> 2</span>,<span class="Constant"> 1</span>
     press up-arrow
@@ -1079,7 +1079,7 @@ d]
 <span class="Constant">def]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   assume-console [
     left-click<span class="Constant"> 2</span>,<span class="Constant"> 3</span>
     press up-arrow
@@ -1116,7 +1116,7 @@ d]
 <span class="muRecipe">def</span>]
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   assume-console [
     left-click<span class="Constant"> 2</span>,<span class="Constant"> 3</span>
     press up-arrow
@@ -1155,7 +1155,7 @@ d]
 <span class="Constant">ghi]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># click on the third line and hit up-arrow, so you end up just after a newline</span>
   assume-console [
     left-click<span class="Constant"> 3</span>,<span class="Constant"> 0</span>
@@ -1195,7 +1195,7 @@ d]
 <span class="Constant">def]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># cursor starts out at (1, 0)</span>
   assume-console [
     press down-arrow
@@ -1299,7 +1299,7 @@ d]
 <span class="Constant">de]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   assume-console [
     left-click<span class="Constant"> 1</span>,<span class="Constant"> 3</span>
     press down-arrow
@@ -1338,7 +1338,7 @@ d]
 <span class="Constant">456]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># start on second line, press ctrl-a</span>
   assume-console [
     left-click<span class="Constant"> 2</span>,<span class="Constant"> 3</span>
@@ -1412,7 +1412,7 @@ d]
 <span class="Constant">456]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># start on first line (no newline before), press ctrl-a</span>
   assume-console [
     left-click<span class="Constant"> 1</span>,<span class="Constant"> 3</span>
@@ -1437,7 +1437,7 @@ d]
   s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span class="Constant">456]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># start on second line, press 'home'</span>
   assume-console [
     left-click<span class="Constant"> 2</span>,<span class="Constant"> 3</span>
@@ -1463,7 +1463,7 @@ d]
 <span class="Constant">456]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># start on first line (no newline before), press 'home'</span>
   assume-console [
     left-click<span class="Constant"> 1</span>,<span class="Constant"> 3</span>
@@ -1491,7 +1491,7 @@ d]
 <span class="Constant">456]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># start on first line, press ctrl-e</span>
   assume-console [
     left-click<span class="Constant"> 1</span>,<span class="Constant"> 1</span>
@@ -1582,7 +1582,7 @@ d]
 <span class="Constant">456]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># start on second line (no newline after), press ctrl-e</span>
   assume-console [
     left-click<span class="Constant"> 2</span>,<span class="Constant"> 1</span>
@@ -1608,7 +1608,7 @@ d]
 <span class="Constant">456]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># start on first line, press 'end'</span>
   assume-console [
     left-click<span class="Constant"> 1</span>,<span class="Constant"> 1</span>
@@ -1634,7 +1634,7 @@ d]
 <span class="Constant">456]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># start on second line (no newline after), press 'end'</span>
   assume-console [
     left-click<span class="Constant"> 2</span>,<span class="Constant"> 1</span>
@@ -2258,7 +2258,7 @@ d]
 <span class="Constant">de]</span>
   e:&amp;:editor <span class="Special">&lt;-</span> new-editor s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
   editor-render screen, e
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   <span class="Comment"># try to move down past end of text</span>
   assume-console [
     left-click<span class="Constant"> 2</span>,<span class="Constant"> 0</span>
@@ -2287,7 +2287,7 @@ d]
    <span class="Constant"> .          .</span>
   ]
   <span class="Comment"># try to move down again</span>
-<span class="Constant">  $clear-trace</span>
+  $clear-trace
   assume-console [
     left-click<span class="Constant"> 2</span>,<span class="Constant"> 0</span>
     press down-arrow