diff options
author | Oskar <[email protected]> | 2024-04-14 19:12:45 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-04-14 19:12:45 +0200 |
commit | 54dd830ece95d7a2666d0ec2931c873116f76411 (patch) | |
tree | f2f7e9cad226f3919de6cb0b70f0ad59a68703a3 /7ed.c | |
parent | 5adffffc05eef954a606e28e8f769ce0a31c83c7 (diff) |
Updated usage and removed some testing code. Added some comments. I
found a bug with 'D' but i will investigate tomorrow.
Diffstat (limited to '7ed.c')
-rw-r--r-- | 7ed.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -30,6 +30,24 @@ " N Create a newline on the line after focus\n"\ " X Remove all contents of a line except the newline itself\n"\ " D Remove all contents of a line including the newline itself\n"\ + " \n"\ + "It is possible to use some of these commands along wih numbers and '+' or '-'.\n"\ + "Commands that support this functionality: L, N, X, D\n"\ + "VALID EXAMPLES:\n"\ + " \n"\ + " 'L+' Would increment the line focus by 1. If you were to put a '-' then it would decrement.\n"\ + " 'L10' Would change the focus to line number 10.\n"\ + " 'L+10 Would increment the line focus by 10. If you were to put a '-' then it would decrement by 10.\n"\ + " 'N', 'N+', 'N+1' Are all valid but do the same thing.\n"\ + " 'N+10' Would add 10 more lines.\n"\ + " 'N10 Would add a line after line 10.'\n"\ + " 'X', 'X+', 'X+1' Are all valid but do the same thing. \n"\ + " 'X10' Would remove the contents of line 10.\n"\ + " 'X+10' Would remove the contents of the current line including the next 9 lines.\n"\ + " 'D', 'D+', 'D+1' Are all valid but do the same thing. \n"\ + " 'D10' Would remove line 10 entirely.\n"\ + " 'D+10' Would remove the current line entirely as well as entirely remove the next 9 lines.\n"\ + " \n"\ #define PROGRAM_NAME "7ed" |