ed

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

TODO.md (764B)


      1 next
      2 ----
      3 - add a shell, it should work by switching on the cmd
      4 - to read the input it should use get line
      5 
      6 commands
      7 --------
      8 i[/text]
      9 a[/text]
     10 - these should insert text above or bellow the cursor, if no text is given, read until a '.' like in ed
     11 
     12 s/re/sub[/flags]
     13 - substituion via regex, flags should be 'g' for global, and 'r' for reverse (does the last match)
     14 
     15 +[/distance]
     16 -[/distance]
     17 - moves up and down in the file by distance
     18 
     19 f/re[/flags]
     20 - finds the next regex, flags can be r for reverse
     21 
     22 w[/name]
     23 - write to the file name, if not given use the currently open file
     24 
     25 q
     26 - quits the program
     27 
     28 S
     29 - prints stats about the file, the size, location, and if its dirty
     30 
     31 later
     32 -----
     33 make the program comunicated over a tcp socket and make a client server for it