Page 1 of 1
New editor commands
Posted: Sat May 25, 2013 3:31 pm
by Tamryn
Consider this a low-priority suggestion, but in case any changes were to be made to the editor, a couple of extra commands might be useful:
- /j X-Y - justify from line X to line Y inclusive, leaving the rest of the file untouched
- /S <pattern> - print all lines matching <pattern>
- /R <old> <new> - as /r (replace) but current line only
- /D - show difference between original and current file (in unified diff format?)
Also, some way to insert multiple lines in the middle of the buffer, rather than have each line overwrite the current line (useful when pasting external edits into the middle of a file).
Oh, and it would be great if /j ignored colour codes when considering line length -- but I'm sure that's been suggested plenty of times before
Re: New editor commands
Posted: Sun May 26, 2013 12:30 pm
by Raona
Tamryn wrote:Consider this a low-priority suggestion, but in case any changes were to be made to the editor, a couple of extra commands might be useful:
- /j X-Y - justify from line X to line Y inclusive, leaving the rest of the file untouched
- /S <pattern> - print all lines matching <pattern>
- /R <old> <new> - as /r (replace) but current line only
- /D - show difference between original and current file (in unified diff format?)
Also, some way to insert multiple lines in the middle of the buffer, rather than have each line overwrite the current line (useful when pasting external edits into the middle of a file).
Oh, and it would be great if /j ignored colour codes when considering line length -- but I'm sure that's been suggested plenty of times before
I like these suggestions! But on the latter two points, going to the insert point, doing /i and then typing everything you've got on that one line and then /j will do the trick unless (as is often the case) there is some part of the helpfile that can't handle /j without getting messed up.
In my experience /j does account for colour codes and makes lines longer in edit but the right length when actually viewed with HELP.
The difference bit would really be helpful for helpfile approval! Thanks for the nifty suggestions, Tamyrn!
Re: New editor commands
Posted: Sun May 26, 2013 11:29 pm
by Hrosskell
I like /j X-Y and would like to also suggest /j #. 78 characters is nice for long descriptions, but I really prefer 60-65 for mid-length or starting characters who might not have the tattoos or intricate hairstyles (these usually develop for my toons as I play them), it just looks tidier and a bit easier to manage than 78 characters.