User Tools

Site Tools


sd:ed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sd:ed [2026/03/23 04:32] appledogsd:ed [2026/03/23 15:48] (current) appledog
Line 15: Line 15:
 The ''Q'' command insta-quits. You will lose any unsaved work. The ''Q'' command insta-quits. You will lose any unsaved work.
  
-=== a+=== #, = 
 +* Requires version 0.7.2 and above 
 + 
 +    3 
 + 
 +If you enter number the editor will set the current line. For example, if there are five lines in your document and you type 3, you will move to the third line. 
 + 
 +    = 
 + 
 +The ''='' command shows you what line number you're on. For example, if there are 10 lines in your document and your current line-pointer is three, it will display a ''3''
 + 
 +This is the line you will append after if you type ''a'' (append line), or the line you will push down if you type ''i'' (insert line). 
 + 
 +=== a, i
 * Requires version 0.7.2 and above * Requires version 0.7.2 and above
  
     : a     : a
  
-This command appends to the document or the line.+This command appends to the document, adding a new line after the current line.
  
     : a     : a
Line 28: Line 41:
     .     .
  
-This will allow you to type text into the file.+This will allow you to type text into the file. If you are appending to an existing line, it will insert the text after the line you are on. For example, if you are on line 3, it will push the old line 4 down and create a new line 4. This will continue every line you type until you enter a ''.'' on a line by itself. 
 + 
 +    : i 
 + 
 +This is the insert command. If you have five lines in your document and you are on line 3, the insert command will create a new line 3 and move all the other lines down (the old line 3 becomes the new line 4, etc). This will continue every line you type until you enter a ''.'' on a line by itself.
  
 === l, n, p === l, n, p
Line 35: Line 52:
     : l     : l
  
-This command lists the document with all nonprintable characters shown as an escape code.+This command print the current line with all non-printable characters shown as an escape code.
  
     : n     : n
  
-This command lists the document with line numbers in front for easy reference.+This command prints the current line with line numbers in front for easy reference.
  
     : p     : p
  
-This simply prints the text as-is in human-readable format.+This simply prints the current line'text as-is in human-readable format. 
 + 
 +=== #l, #n, #p 
 +* Requires version 0.7.2 and above 
 + 
 +    : 1l 
 + 
 +This command prints the first line with all non-printable characters shown as an escape code. 
 + 
 +    : 2n 
 + 
 +This command prints the second line with a line number in front for easy reference. 
 + 
 +    : 3p 
 + 
 +This simply prints line 3 in normal, human-readable format. 
 + 
 +=== #,#n, #,#bl, #,#p 
 +* Requires version 0.7.2 and above. 
 + 
 +    : 1,3l 
 + 
 +This command prints lines 1 to 3 with all non-printable characters shown as an escape code. 
 + 
 +    : 2,5n 
 + 
 +This command prints the second line through to the fifth line with line numbers in front for easy reference. 
 + 
 +    : 3,1p 
 + 
 +This is the same as 1,3p -- print the lines from 1 to 3. 
 + 
 +    : 1,$p 
 + 
 +$ means the last line, so 1,$p prints the entire document. 
 + 
 +== d 
 +* Requires version 0.7.2 and above 
 + 
 +This deletes the line you are currently on. There is no undo in this version, so be careful! 
 + 
 +== f 
 +* Requires version 0.7.2 and above. 
 + 
 +    f 
 + 
 +This command shows the ''filename''
 + 
 +    f file.txt 
 + 
 +This command sets ''filename'' to file.txt. You can choose your own ''filename'' or use file.txt if you are bored. 
 + 
 +== w 
 +* Requires version 0.7.2 and above. 
 + 
 +    w 
 + 
 +This command writes the buffer to ''filename'' (see ''f'' above). 
 + 
 +Always remember to save your work before quitting. 
 + 
 +== e, E 
 + 
 +    e 
 + 
 +''e'' with no argument reloads the current ''filename'' as set by ''f'' or a previous ''e''
 + 
 +    e myfile.txt 
 + 
 +This clears the entire buffer, loads the file into the buffer, sets the ''filename''. Any unsaved changes are lost. 
 + 
 +If the buffer is dirty, e warns with ? (like q). E forces it without warning. 
sd/ed.1774240320.txt.gz · Last modified: by appledog

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki