Appearance
Arranging Text
Move and indent text with the keyboard, or drag it. In a Markdown document, moves follow structure: a list item takes its nested items, a heading takes its section, and numbered lists stay in order. The commands are in Edit > Arrange.
WriteRoom keeps a live syntax tree of your document, and that's what makes these structural moves possible. They're new, and I need your feedback. I'm still working out how they should behave, so please tell me what you expect in the WriteRoom Support Forum.
| Keys | Moves |
|---|---|
| Control-Command with an arrow | a whole block, or indents and outdents |
| Option-Command-Up or Option-Command-Down | one line, through the structure |
| Shift-Option-Command with an arrow | plain lines, ignoring Markdown |
Move Up and Move Down
- Edit > Arrange > Move Up (Control-Command-Up)
- Edit > Arrange > Move Down (Control-Command-Down)
These move the block the caret is in past the block beside it. A block is a paragraph, a code block, a list item with everything nested in it, or a heading with its section.
With the caret (|) on Hardware, Move Up:
text
- Groceries - Hardware|
- Milk - Nails
- Eggs → - Groceries
- Hardware| - Milk
- Nails - EggsNumbers stay in order. With the caret on the last step, Move Up:
text
1. Preheat the oven 1. Preheat the oven
2. Mix the batter → 2. Pour into the pan|
3. Pour into the pan| 3. Mix the batterAt the top of its list, an item moves out of the list: above its parent, or above the block before the list. A heading moves past the next heading at its own level, and stops at the edge of the section it's in.
Indent and Outdent
- Edit > Arrange > Indent (Control-Command-Right, Option-Command-Right, or Command-])
- Edit > Arrange > Outdent (Control-Command-Left, Option-Command-Left, or Command-[)
In a list, Indent tucks an item under the one above it. Outdent moves it out a level, and the items that followed it come along as its children:
text
- Fruit - Fruit
- Apples| Outdent → - Apples|
- Pears - PearsOn a heading, Indent and Outdent change the level of the heading and every heading in its section. Select All first to change every heading in the document.
text
## Soil| ### Soil|
Indent →
### Compost #### CompostMove Line Up and Move Line Down
- Edit > Arrange > Move Line Up (Option-Command-Up)
- Edit > Arrange > Move Line Down (Option-Command-Down)
These move the selected lines one step at a time, into and out of lists, quotes, and paragraphs. A line takes on the marks of where it lands. Press again to keep going.
With the caret on Bread, Move Line Up twice:
text
- Milk - Milk - Milk
- Eggs → - Eggs → - Bread|
- Bread| - Eggs
Bread|And the other way, a line leaves a list as a paragraph of its own. With the caret on Eggs, Move Line Down:
text
- Milk - Milk
- Eggs| →
Eggs|
That's all.
That's all.Plain Lines
Add Shift to the Option-Command keys to move or indent whole lines as plain text, with no Markdown rules. Plain text documents always work this way.
- Edit > Arrange > Indent (Plain Text) (Shift-Option-Command-Right)
- Edit > Arrange > Outdent (Plain Text) (Shift-Option-Command-Left)
- Edit > Arrange > Move Line Up (Plain Text) (Shift-Option-Command-Up)
- Edit > Arrange > Move Line Down (Plain Text) (Shift-Option-Command-Down)
These show in the Arrange menu when you hold Shift-Option.
Drag and Drop
Click and drag on selected text to move it, and hold Option as you drop to copy it instead.
Smart Copy and Paste
Smart copy and paste keeps the spacing right when you move words and lines. On by default in Settings > Typing.
How you select matters. Double-click a word, or triple-click a line, and cut and paste treat the selection as a whole word or whole lines:
- A word takes a space with it when you cut it, so no double space is left behind. When you paste it, it gets the spaces it needs on either side.
- Lines take a blank line with them when you cut them, if they're a paragraph with blank lines around it. Pasted at the start of a line, they land with blank lines around them.
Text selected any other way, such as by dragging or with Shift and the arrow keys, cuts and pastes exactly as selected.
When you drag and drop (and Smart Copy and Paste is on), the same rules apply as when cutting and pasting, no matter how the initial selection was made.
Dragging the Second paragraph above First:
text
First. Second.
Second. → First.
Third. Third.Turn the setting off to cut, paste, and drag text exactly as selected.
Folds and Tables
A folded section moves as one piece, and lines pass over a fold without going into it. In a table, Move Line moves rows and Indent and Outdent move columns. See Markdown Tables.