(last updated: 10/11/18)
LsEdit is a "text editor" for MUCKs. It's mostly used for describing objects, but it is also used by the @paste
, +bbpost
, and log
programs. The "text" it edits is stored as an "LsEdit list" on the object.
To begin editing an LsEdit list, just type the following:
lsedit
< object > =
< listname >
< object > can be 'me' or the name of an object. < listname > can be anything you want it to be. Here are some examples:
lsedit me=mydesc
Creates a list, "mydesc", on your player object
lsedit me=_descs/usual
Same as above, but "_descs/usual" instead
lsedit here=roomdesc
Creates a list, "roomdesc" in the current room
- Once you are in LsEdit, any line not beginning with a period (.
) will be inserted into the list at the current line.
- To get out of LsEdit at any time, without saving the list, type '.abort
' and press enter.
- If you want to type normal muck commands, you can do so by putting | at the beginning of the line, for example:
|"Hi, I'm in LsEdit right now!
- If you want to start a line with a period, type the period twice. (..
) - the first period will be removed.
- LsEdit lists generally don't support %t
or %r
tags, as the spoof
, say
, and pose
commands do. If you want a tab (%t
), just type five spaces instead.
- If you want to insert a blank line (%r
) into the list, type a space and then hit enter.
Basic LsEdit Commands
Here are the most commonly-used commands in LsEdit:
.l
Displays everything in the current list.
.abort
Cancels editing the current list and exits LsEdit.
.save
Saves the current list, but does not exit LsEdit.
.end
Saves the current list and exits LsEdit.
LsEdit manages lists on a line-by-line basis. This has the advantage of making longer files like logs and descriptions easier to edit, since you can edit one line instead of the whole darn thing. The '.l
', '.p
', '.i
', and '.del
' commands all allow you to perform actions upon the lines you specify.
- The '.p
' command is the same as the '.l
' command, but displays line numbers beside each line.
.p
Displays everything in the current list, with line numbers
.p 1 3
Displays lines 1, 2, and 3, with line numbers
- The '.i
' command moves your "cursor," so that the next lines of text you type will be inserted before the line number specified.
.i 2
Any text typed afterwards will now go before line 2
- The '.del
' command deletes text in the given range.
.del
Deletes the current line
.del 1 3
Deletes lines 1, 2, and 3, and puts the "cursor" at line 1
.del 1 99
Deletes to the last line or line 99, whichever's first.
See also: Advanced LsEdit