Working with Lists
HTML provides three special elements for constructing lists:
- <ul> an “unordered” (bulleted) list, such as this one
- <ol> an “ordered” (numbered) list
- <li>: a list item, which is equally suitable for use in a <ul> or an <ol>
TypeMetal makes it quick and easy to create and edit these kinds of lists, without having to worry about all the details of proper HTML list markup.
(A similar set of functionality is provided for working with headings.)
Creating List Items
Press Command+] (or choose Structure → Indent List Level) to turn one or more paragraphs (<p>) into list items (<li>).
TypeMetal automatically infers the paragraph(s) to operate on from the insertion point or current selection. It also automatically inserts the new list items into an adjacent list (if there is one), or creates a new list for the items to live in. (If the paragraphs are sandwiched between a preceding list and a subsequent list, and the two lists have the same type (<ul> or <ol>) and attributes, TypeMetal merges the two lists into one.
Changing a List’s Type
You can change a bulleted list to a numbered list, or vice versa, by pressing Command+\ (or choosing Structure → Toggle Ordered/Unordered List).
TypeMetal automatically infers the list(s) to operate on from the insertion point or current selection.
You can press Command+] (or choose Structure→ Indent List Level) to make one or more items the child(ren) of their preceding item — thus, nesting another, subordinate list within your list.
You can press Command+[ (or choose Structure → Outdent List Level) to perform the opposite operation — pulling list items up a list level (and, if they’re exiting the outermost list, transforming them to paragraphs).
TypeMetal works on the concept of letting you “indent” and “outdent” items as you wish, and figures out the necessary list nesting to produce the requested indentation results.
Reordering List Items
Press Command+Control+↑ (or choose Structure → Move List Item Up) to move one or more list item(s) before the preceding item (if any) in their list.
Press Command+Control+↓ (or choose Structure → Move List Item Down) to move one or more list item(s) after the subsequent item (if any) in their list.