Line Numbers
Chau7 shows line numbers in the terminal editor. Because "error on line 47" means nothing without them.
What is Line Numbers in Chau7?
Line Numbers is a feature in the Chau7 terminal's built-in editor that displays a line number gutter along the left edge of the editing area. Chau7 supports three line number modes via the LineNumberMode enum: absolute, relative, and hybrid.
The line number gutter in Chau7 uses an adaptive width that adjusts based on the total line count digit width. Numbers update dynamically as you scroll.
How does Chau7 display line numbers in its terminal editor?
Chau7's built-in editor renders a line number gutter along the left edge of the editing area. The current line is highlighted for easy orientation. The gutter uses an adaptive width that adjusts based on the total line count digit width.
Chau7 supports three line number modes. Absolute mode shows standard sequential numbers starting from 1. Relative mode shows the distance from the current line, which is useful for Vim-style motion commands. Hybrid mode shows the absolute line number on the current line and relative numbers on all other lines.
How does Chau7's line numbers compare to other terminals?
Most terminal emulators do not include a built-in editor, so line numbers are not a relevant feature. Terminals like iTerm2, Alacritty, and Kitty rely on external editors such as Vim or VS Code for editing.
Chau7 includes a built-in editor with line numbers. Developers using Chau7 can navigate error references, git diffs, and stack traces without leaving the terminal or opening an external editor.
Can I hide line numbers entirely in Chau7?
Yes. The line number gutter in Chau7's built-in editor is fully optional. You can toggle line numbers off in the editor preferences for a minimal editing view.
Chau7 remembers your line number preference across sessions. Whether you prefer line numbers visible or hidden, Chau7 restores your choice each time.
Questions this answers
- What is Line Numbers in Chau7 terminal?
- How does Chau7's line numbers compare to other terminals?
- How does Chau7 display line numbers in its terminal editor?
- Can I hide line numbers entirely in Chau7?
Frequently asked questions
What is Line Numbers in Chau7 terminal?
Line Numbers is a feature in the Chau7 terminal's built-in editor that displays a line number gutter along the left edge of the editing area. Chau7 supports absolute, relative, and hybrid line number modes via a LineNumberMode enum. The gutter width adapts to the total line count.
How does Chau7's line numbers compare to other terminals?
Most terminal emulators do not include a built-in editor, so line numbers are not relevant. Terminals like iTerm2, Alacritty, and Kitty rely on external editors. Chau7 includes a built-in editor with absolute, relative, and hybrid line number modes so developers can navigate error references without leaving the terminal.
How does Chau7 display line numbers in its terminal editor?
Chau7 displays a line number gutter along the left edge of the built-in editor with an adaptive width that adjusts based on the total line count digit width. The current line is highlighted, and numbers update dynamically as you scroll. Choose between absolute, relative, or hybrid modes.
Can I hide line numbers entirely in Chau7?
Yes. The line number gutter in Chau7's built-in editor is fully optional. You can toggle line numbers off in the editor preferences for a minimal editing view.