Caxton
Features Benchmarks Pricing Docs How it works Changelog Support About Download Free
Guide
Getting Started Opening Large Files Find & Replace Filtering CSV Workbench Transform Cells Validate & Repair Column Profiles Sort & Duplicates Editing at Scale Power Editing Navigation & Bookmarks The Sidebar Search Files or Commands The Inspector Log Mode Compare View Themes Sessions & Recovery License
Reference
Keyboard Shortcuts Menu Reference Settings & Storage Encodings
Switching
Coming from EmEditor
Engineering
How Caxton Works Benchmarks How Caxton Is Tested

The Inspector: what the file is, and what is selected.

This page covers the Inspector, the column that View ▸ Show Inspector opens at the right of the window, and its sections: File, Encoding, Structure, Selection and Operations. The Encoding section explains Why this encoding, counts Invalid bytes with First and Next buttons that go to each of them, and lists Invisibles by kind. The Selection section names the character at the caret with its code point and its bytes, and in the grid it shows a cell's Value and its Raw size in the file.

View ▸ Show Inspector (⌥⌘I), or the button at the right end of the toolbar, opens a column at the right of the window that answers questions about the file without a dialog. While it is open the menu item reads Hide Inspector. Every value is selectable, so you can copy an encoding name or a byte offset, and VoiceOver reads each value with its label.

The inspector beside a log

A log's facts: encoding and confidence, line endings, size, the open mode, the timestamp format Log Mode found.

File

The name and folder, the size in bytes (and the size of the UTF-8 working copy when the file was transcoded), when it was modified, the type (CSV, a syntax language, or plain text), the open mode (whole file, a slice or a tail, with the byte range it covers), the access (read and write, or the reason it is read-only), and whether there are unsaved edits. Reveal in Finder sits under the section.

Encoding

The encoding with the detector's confidence, or "chosen" and "Set by you" after Reopen with Encoding; whether a BOM leads the file; whether the document is a working copy transcoded to UTF-8; a second encoding that is also plausible when the detector saw one; and the line endings, counted across the first 8 MB of the file and shown as Mixed with its kinds when the file mixes them. When the confidence is under 90% or a second encoding is plausible, Reopen with Encoding… is one click away.

Why this encoding explains in a sentence or two what decided it: a byte order mark, bytes that are all valid UTF-8 with the count of multi-byte sequences, plain ASCII, the pattern of UTF-16 text, the legacy encoding the bytes fit best with the next closest one, your own choice in Reopen with Encoding, or the File Pattern Rule that set it. A document that you saved in another encoding with File ▸ Save with Encoding… has that save as its reason instead.

Invalid bytes counts the bytes that are not valid in the file's encoding, each of which the editor shows as the replacement character, and adds what the count covers: the whole file, or the loaded slice or tail. While there are any, the row carries First and Next. They go to the first invalid byte and to the next one after the selection, and select the bytes in the text, or the cell that holds them in the grid. When there are no more, Next goes back to the first one and a banner notes that it did. Edit ▸ Find ▸ Go to First Invalid Byte and Go to Next Invalid Byte do the same from the menu. In a file read in another encoding, the count is of the bytes that encoding could not decode, and for UTF-16, UTF-32 and GB18030 it is given as replacement characters.

Invisibles lists the invisible characters in the text by kind with their counts, such as non-breaking spaces, zero-width spaces and a stray byte order mark. They are the characters that View ▸ Show Invisibles marks and that Text ▸ Clean Up ▸ Remove Invisible Characters counts.

The Encoding section of the Inspector gives the UTF-8 byte order mark at the start of the file as the reason it was read as UTF-8, and its Invalid bytes row counts three with the First and Next buttons under it.

The Encoding section explains why the file was read as UTF-8 and counts three invalid bytes.

Both counts run in the background while the Inspector is open, and run again after the document changes, when the row reads before the latest change, counting again. On a large file the count is a job in the Operations panel with its progress and Cancel. A count that you stop keeps what it found, with how far it got, and offers Count Again. Everything in this section is reading, so it works on Caxton Free at any file size.

Structure

In the grid: the delimiter in use and where it came from (detected, chosen, from a rule, or from the session), the quote character, whether the first row is a header, the records as rows by columns, the parse state (normal, warning, degraded, failed), the count of malformed rows, a note when a quote never closes, and how many column types you set by hand. In text: the lines (or how many are indexed so far), the length in bytes, and which tier the line index is on. In Log Mode: the timestamp format Caxton is using and whether you chose it, and the severity vocabulary in force (built in, or your own patterns with their count), with Timestamp Format… under the section. Every document shows its history (how many steps to undo and redo, and how much of it is on disk) and its temporary files when it uses any.

Selection

In text: the caret's byte offset, its line and column, the selection's length in bytes and lines, and how many cursors there are. A Character row names the character at the caret, or the one selected: its code point, its Unicode name and its bytes in the file's encoding, such as U+00E9, LATIN SMALL LETTER E WITH ACUTE, bytes C3 A9. A byte that is not valid UTF-8 gets a Byte row with its value. A longer selection gets a Characters row with its count of characters and of bytes, for selections up to 256 KB. In the grid: the selected block, rows or columns; the cell under the cursor with its row and column, the column's name and type; the cell's Value as the column sees it; and a Raw row with the field's size in bytes on disk, whether it was quoted, and the decoded length when that differs, so a quoted field or a padded number shows what the column sees and how much the file holds for it. The Character or Characters row describes the cell's value in the same way. A block of cells gets a Statistics row: how many values, how many blank, and the sum and mean of the numeric ones (over the first 20,000 cells).

The inspector showing a grid cell's value and its Raw row

A cell's parsed value, with the Raw row's byte count and flags under it.

Operations

The jobs running for this document with their phases, and the last operation that ran: what it did, its scope, how long it took, and whether ⌘Z reverses it. Show Operations opens the sidebar's Operations panel with the full list.

Width and sections

Drag the inspector's edge to size it; the width is kept per window and shared by its tabs, which take the new width once, when you let go. The sections collapse with a click on their headers, and the collapsed state is kept too.