Back to Fresh

Editing Features

docs/blog/editing/index.md

0.3.22.5 KB
Original Source

Editing Features

February 11, 2026

The core text editing capabilities that make Fresh feel like a modern editor in your terminal.

Multi-Cursor Editing

Place your cursor on a word, press Ctrl+W to select it, then Ctrl+D to select the next occurrence. Repeat to select more. Type to replace them all simultaneously.

<div class="showcase-demo"> </div>

Search & Replace

Ctrl+H opens find-and-replace with live highlighting as you type. Supports regex with capture groups ($1, $2), find-in-selection, and a confirm-each toggle.

<div class="showcase-demo"> </div>

Move Lines

Alt+↑ and Alt+↓ move the current line (or selected lines) up and down. Works with multi-cursor selections.

<div class="showcase-demo"> </div>

Block Selection

Alt+Shift+Arrow creates rectangular column selections — useful for editing aligned data, CSV columns, or repetitive code patterns. Block selections convert to multi-cursors when you start typing.

<div class="showcase-demo"> </div>

Triple-Click Selection

Triple-click to select an entire line — matching the behavior you'd expect from any modern editor.

<div class="showcase-demo"> </div>

Sort Lines

Select lines and sort them alphabetically via the command palette.

<div class="showcase-demo"> </div>

Case Conversion

Select text and press Alt+U for uppercase or Alt+L for lowercase. When nothing is selected, it converts the word under the cursor.

<div class="showcase-demo"> </div>

Duplicate Line

Duplicate the current line instantly via the command palette. Works with selections too.

<div class="showcase-demo"> </div>

Tab Indent / Dedent

Select lines and press Tab to indent, Shift+Tab to dedent. Respects per-language tab settings (spaces vs. tabs).

<div class="showcase-demo"> </div>