man(1)
chr ยท man(1) ยท the chr man page ยท manual section 1 ๐
okay bestie, so this is the manual page for chr, and it lives in section 1 of the manual, and it is genuinely SO much. grab a snack ๐
๐ NAME ๐
chr โ chr is a terminal based editor ๐
โจ SYNOPSIS โจ
Usage: chr [options] [[+line[,char]] file โฆ] [[+/searchword] file โฆ] [/directory โฆ]
๐ธ Options ๐ธ
-h,--helpโ Displays help on commandline options.--help-allโ Displays help including Qt specific options.-v,--versionโ Displays version information.-l,--line-numberโ The line numbers are displayed-b,--big-fileโ Open bigger files than 100MB-w,--wrap-lines <WordWrap|WrapAnywhere|NoWrap>โ Wrap log lines (NoWrapDefault)--attributesfile <config>โ Safe file for attributes, default~/.cache/chr/chr.json-c,--config <config>โ Load customized config file. The default if it exist is~/.config/chr--syntax-highlighting-theme <name>โ Name of syntax-highlighting-theme, you can list installed themes with:kate-syntax-highlighter --list-themes--disable-syntaxโ disable syntax highlighting-s,--size <N|auto>โ Size<N>in lines or<auto>for Automatic detection of the size of the lines with which the editor is displayed on the console.
๐ซถ Arguments ๐ซถ
[[+line[,char]] file โฆ]โ Optional is the line number and position. Several files can be opened in multiple windows.[[+/searchword] file โฆ]โ A search word can be set.[/directory โฆ]โ Or a directory can be specified to search in the open dialog.
๐ DESCRIPTION ๐
Chr is a terminal based text editor. no cap, that's the whole vibe.
Keyboard shortcuts are similar to the default editors in Gnome, KDE and other desktop environments. This is to ease workflows alternating between GUIs and terminal. (they get you, they really do ๐ญ)
The look and feel is a blend of modern GUI editors and late 90s PC text mode editors (e.g. Turbo Vision based or edit.com) adapted to fit into terminal based workflows. it's giving retro-meets-slay โจ
๐ Quick Start โจ
The important operations can be invoked from the menu. The menu can be opened with F10 or with Alt together with the highlighted letter of the menu item (e.g. Alt + f).
In dialogs Tab is used to navigate between the elements. Use F6 to navigate between windows/dialogs.
Text can be marked in most terminals with Shift + arrow key. Ctrl + c is used for copying. Paste with Ctrl + v.
Changes can be saved with Ctrl + s and the editor can be exited with Ctrl + q. iconic behaviour fr fr ๐
โจ๏ธ SHORT CUTS โจ๏ธ
Shift + Cursorโ Selects textCtrl + aโ Selects all text in the documentCtrl + c/Ctrl + Insertโ Copies the selected text into the clipboardCtrl + dโ Deletes the current lineCtrl + e, up/down/left/right โ Switches the active window. Use the arrow keys to specify the direction for the next active window.Ctrl + e,Ctrl + up/down/left/rightโ Change window sizeCtrl + e,qโ Close an active documentCtrl + fโ Open the search dialogCtrl + Backspaceโ Delete a word (left from cursor position)Ctrl + rโ Open the replace dialogCtrl + nโ Creates a window with an empty documentCtrl + mโ Creates a line marker at the left edge of the line to find lines again. (Ctrl + ,oderCtrl + .) This key combination does not work with all terminals.Ctrl + qโ Quits the editorCtrl + Shift + qโ Close an active document (the key combination does not work in vte, see:Ctrl + e,q)Ctrl + sโ Save (or save as for new documents)Ctrl + v/Shift + Insertโ Inserts the contents of the clipboard at the current cursor position.Ctrl + x/Shift + Deleteโ Cuts out the selected text and moves it to the clipboardCtrl + yโ Redos an action that has been undoneCtrl + zโ Undoes an actionCtrl + Shift + upโ Moves the current selection or line upwardsCtrl + Shift + downโ Moves the current selection or line downCtrl + Leftโ Jump a word to the leftCtrl + Shift + Leftโ Selects a word to the leftCtrl + Rightโ Jump a word to the rightCtrl + Shift Rightโ Selects a word to the rightAlt + -โ Open the window menuAlt + Shift + up/down/left/rightโ Marks the text in blocks. Inserting the clipboard duplicates the text per line. If an equal number of lines is marked as to be inserted, the lines from the clipboard will be distributed across the selected lines.Alt + Shift + Sโ Sort the selected lines (lexicographical by code-point)Alt + xโ Opens a command line. Type"help"for help.Tab/Shift + Tabโ Indents a selected block by a tab stop or remove one level of indentionF3/Shift + F3โ Find the next or previously search elementF4โ Toggles the selection mode to allow selecting text in terminals where marking with Shift + arrow keys does not workF6/Shift + F6โ Change active window, with Shift in reverse orderESCโ Closes an active dialog menu or action.
there are SO many shortcuts and honestly? every single one of them is a little gift ๐
๐ฝ๏ธ MENU ๐ฝ๏ธ
๐ File
๐ New
Opens a new an empty unnamed document.
๐ Open
Opens a file dialog to select a file to be opened.
๐พ Save
Saves the current status of the file. If the save path is not yet specified, the "Save as ..." dialog is opened.
๐ Save as...
A storage location to save the file to can be selected here via a file dialog.
๐ Reload
Reloads the current file. All changes are discarded.
๐ Close
Closes the active window.
๐ Quit
Closes the editor. If there is a file open that has not yet been saved, the Save dialog will be opened first.
โ๏ธ Edit
โ๏ธ Cut, Copy, Paste, Select all
Text can be selected using the arrow keys while holding down the Shift key. The entire text can be selected with Select all. This selected text can then be copied using Copy or cut using Cut. With Paste, this text can be inserted again at the current cursor position. If there is text in the clipboard before copying (or cutting), it will be replaced.
These functions use an internal clipboard that contains different content than the clipboard used in the terminal as copy and paste commands, as the editor cannot access the system clipboard.
important bestie: internal clipboard โ your terminal clipboard, they are two different girlies ๐
๐๏ธ Delete Line
Deletes the entire line.
๐ฏ Select Mode
Toggles the selection mode to allow selecting text in terminals where marking with Shift + arrow keys does not work.
โฉ๏ธ Undo, Redo
With Undo or CTRL + z, edits can be undone. With Redo or CTRL + y the undo can be undone again.
๐ Search
Use Search or Ctrl + f to open the search dialog. Enter a search term in the "Find" field. You can refine the search using the options. If live search is activated, the first matching result is automatically selected while the search term is being entered. If the text document is active, you can press F3 to jump to the next result or Shift + F3 to jump to the previous result.
โญ๏ธ Search Next
Jump to the next match for the current search term.
โฎ๏ธ Search Previous
Jump to the previous match for the current search term.
๐ Replace
With Replace or CTRL + r the Replace dialog is opened. Enter a search term in the "Find" field. In the field "Replace" the word to be inserted is specified. "Next" jumps to the next match for the current search term. With "Replace" the current match is replaced. With "All" all occurrences of the search term are replaced at once.
๐ง Insert Character...
Opens a dialog in which a character code (Unicode codepoint) of a special character to be inserted can be entered.
๐ช Goto
To jump to a line, open a Goto Line dialog under "Goto".
๐ Marker
Creates a line marker in the left margin to quickly find lines again when reviewing. Use Ctrl + , or Ctrl + . to jump to the next marker. On quit the list of markers is saved in chr.json, so that it can be restored when the file is opened.
๐ค Sort Selected Lines
Sort the selected lines (lexicographical by code-point).
๐ Options ๐
okay bestie, this is where the menu gets juicy ๐
๐ Tab settings
This opens the Tab settings dialog. Here you can set up how a tab behaves. You can choose between a tab (\t) and a space. You can also set the width of the indention. The default settings can also be made in the ~/.config/chr file. Here you can specify: "tabsize=8" or "tab=false" for spaces. โจ
๐ Line Number
Shows the line number on the left side of the editor. The default settings can also be made in the ~/.config/chr file. Here you can specify: "line_number=true". ๐ซถ
๐จ Formatting
In the Formatting dialog, "Formatting Characters", "Color Tabs" and "Color Spacs at end of line" can be switched on and off. ๐
The "Formatting characters" marks spaces with a dot: "ยท", end of line (\n) with a "ยถ", and the end of the file with: "โฆ". ๐ฆ
With "Color Tabs" tabs are colorized. The tab border is made darker. ๐
"Color Spaces at end of line" is used to spaces mark at the end of the line in red. ๐
In the configuration file: ~/.config/chr the behavior can be influenced with the option "formatting_characters=true", "color_tabs=true", "color_space_end=true". โจ
๐ Wrap long lines
Selects if lines that are wider than the window are displayed clipped or wrapped. It can be wrapped at the word boundary or hard at the end of the line. This behavior can be influenced by the option "wrap_lines=WordWrap" or "wrap_lines=WrapAnywhere" in the ~/.config/chr file. ๐ซ
In addition, the option "Display Right Margin at Column" can be used to specify a numerical value above which the background color is darkened. This value can also be set with the configuration option: "right_margin_hint=80" in ~/.config/chr. ๐
๐ Stop Input Pipe
Reading from a pipe is interrupted. The standard input file descriptor is closed. ๐ซ
๐ธ Highlight Brackets
If active and the cursor is on a bracket the bracket at the cursor position and the matching other bracket are highlighted. The following opening and closing brackets can be highlighted when the cursor moves over them. With the option "highlight_bracket=true" this behavior can be influenced in the ~/.config/chr. Supported bracket types are: [{(<>)}]. ๐
๐ Syntax Highlighting
If the editor has been compiled with the "SyntaxHighlighting" feature, syntax highlighting is generally available. The language is automatically detected when a file is opened and displayed in the status bar. If required, it can also be switched on and off or adjusted via the syntax highlighting dialog. Syntax highlighting can also be deactivated in this dialog. ๐ง
The theme can be customized via the command line switch "--syntax-highlighting-theme". The editor comes with the themes "chr-bluebg" and "chr-blackbg". If required, a theme from the list that can be displayed with "kate-syntax-highlighter --list-themes" can be used. With the option "syntax_highlighting_theme=chr-bluebg" the theme can be set in ~/.config/chr. ๐
Syntax highlighting can be switched off via the command line using "--disable-syntax" when the editor is started. With the option "disable_syntax=true" the theme can be set in ~/.config/chr. ๐
๐ญ Theme
It opens the dialog for selecting a theme. The Classic (blue) or the Dark (black and white) mode is available. With the option "theme=classic" or "theme=dark", this can be set in the ~/.config/chr. ๐
๐ช Window ๐ช
๐ Next, Previous
Switches the active window, with Shift in reverse order. (See F6) ๐
๐ Tile Vertically, Horizontally, Fullscreen
Selects how multiple open documents are shown. ๐ฅ๏ธ
Vertical and horizontal distribute the available space across the documents. When Fullscreen is selected only one document is shown at once. (See F6) โจ
โจ CUSTOM CONFIG โจ
The editor loads a configuration file from ~/.config/chr (if available). (If the environment variable $XDG_CONFIG_HOME is set, then from $XDG_CONFIG_HOME/chr) ๐
In addition to the options documented above, the following options are available:
๐ eat_space_before_tabs
This option is only active if tab=false is set. ๐
If this option is active and the Tab key is pressed while the cursor is in the indentation at the beginning of a line, the indentation is extended to the next tab position. ๐ฑ
๐ attributes_file
Specifies the path of the file in which the cursor and scroll position of files opened in the past is saved. ๐พ
๐ Default config ๐
There is a default config (~/.config/chr) where the following options can be set.
attributes_file="/home/user/.cache/chr/chr.json"
color_space_end=false
color_tabs=false
disable_syntax=false
eat_space_before_tabs=true
formatting_characters=false
highlight_bracket=true
line_number=false
logfile=""
right_margin_hint=0
syntax_highlighting_theme="chr-bluebg"
tab=false
tab_size=4
theme="classic"
wrap_lines="NoWrap"
๐ FILES ๐
~/.config/chrโ Your personal chr initializations. ๐~/.cache/chr/chr.jsonโ History about the changed files. This is where cursor positions are stored. ๐
๐ BUGS ๐
Errors in this software can be reported via the bugtracker on https://github.com/istoph/editor. ๐ซถ
๐ AUTHOR ๐
Christoph Hรผffelmann <chr@istoph.de> Martin Hostettler <textshell@uchuujin.de> ๐
okay that's the whole vibe, bestie โจ this was man(1) for version 0.1.80, dated 06 Apr 2025 โ no cap, you're now a chr expert ๐
๐
๐ฆ where this page comes from
- debian trixie: chr 0.1.80-1 ยท BSL-1.0
- debian trixie: chr-tiny 0.1.80-1 ยท BSL-1.0
- ubuntu resolute: chr 0.1.80-1 ยท BSL-1.0
- ubuntu resolute: chr-tiny 0.1.80-1 ยท BSL-1.0
- ubuntu stonking: chr 0.1.80-1 ยท BSL-1.0
- ubuntu stonking: chr-tiny 0.1.80-1 ยท BSL-1.0
- ๐ the page's license: BSL-1.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms