Chapter 5

Move, select, and edit text

Pilcrow uses the platform text system, so ordinary cursor movement, drag selection, copy, cut, paste, and system input methods work normally.

Select useful units#

Use Edit ▸ Selection to select the current word, line, or paragraph. You can also jump to the top, bottom, line start, or line end. These semantic commands are useful when a wrapped screen line differs from a real file line.

Default shortcuts include ⌘D for Select Word, ⌘L for Select Line, and ⌥⌘P for Select Paragraph. ⌃A and ⌃E jump to the start and end of the line.

Copy and paste deliberately#

  • Copy as Markdown preserves useful source markup.
  • Copy as Plain Text removes structural markup where possible.
  • Copy as HTML Code places HTML source on the clipboard.
  • Paste as Plain Text (⇧⌘V) discards rich formatting from the clipboard.

Choose the representation based on the destination. Plain text is safest for bringing prose from a browser or word processor into source. HTML code is useful when handing rendered structure to a web workflow.

Undo and redo#

Use ⌘Z and ⇧⌘Z. Complex actions such as a selected comparison change, multi-caret formatting, or a translation replacement are designed to be one undo step. After a large operation, undo immediately if the result is wrong; later unrelated edits make recovery harder to reason about.