Selection Stats

What it does

When you drag-select text in a clip’s preview pane, a thin status strip appears just below the editor showing Lines / Words / Chars / Bytes for your selection.

Quick way to:

  • Sanity-check how big a block you’ve grabbed before triggering a Transform action.
  • Confirm whether a selection straddles more lines than you expected.
  • See an exact byte count before pasting into something with a length limit.

When it shows

  • A non-empty text selection is active.
  • The clip is a text clip (TXT or CODE).

When it hides

  • No selection.
  • The clip is an image (IMG) — no text to count.

What’s counted

Stat Definition
Lines Number of \n boundaries spanned by the selection (1 if all on one line).
Words Whitespace-separated tokens.
Chars Unicode code points (so emoji count as 1, not 2).
Bytes UTF-8 encoded byte length — useful for paste targets that care about byte limits (database fields, HTTP headers).

The footer updates on every mouseup and keyup while the selection changes, so it stays in sync as you extend the selection with Shift+Arrow.

Visual style

Matches the existing .pv-statusbar style — same height, same colors as the bottom statusbar for image clips. No visual clutter when nothing is selected.