Guide · Docs for v0.4

Editing

Cursors, selections, movement, find and replace, and what happens on save.

Rip is a plain text editor with the moves you expect, plus a few that come from its syntax tree. secondary means ⌘ on macOS and Ctrl on Linux.

Multiple cursors#

CommandDCtrl+D selects the word under the cursor. Press it again to add the next match. CommandK CommandDCtrl+K Ctrl+D skips the current match and takes the next one. CommandShiftLCtrl+Shift+L selects every match at once.

CommandOptionCtrl+Alt+↑ and CommandOptionCtrl+Alt+↓ add a cursor on the line above or below. OptionShiftIAlt+Shift+I turns one selection into a cursor at the end of each of its lines. Hold altalt and click to add a cursor anywhere. Esc returns to one cursor.

Selection#

CommandLCtrl+L selects the line, and CommandACtrl+A selects the whole file. OptionAlt+↑ grows the selection to the enclosing syntax node: a word, then an expression, then a block. OptionAlt+↓ shrinks it again. shiftshift with any movement key extends the selection.

Movement#

Keys Moves
OptionAlt+← / OptionAlt+→ By word.
CommandCtrl+← / CommandCtrl+→ To the start or the end of the line.
CommandCtrl+↑ / CommandCtrl+↓ To the start or the end of the file.
PgUpPgUp / PgDnPgDn By one screen.
Option]Alt+] / Option[Alt+[ To the next or the previous changed hunk.
ControlGCtrl+G To a line number.

To move the current line up or down, press ControlCommandCtrl+Ctrl+↑ or ControlCommandCtrl+Ctrl+↓ on macOS. On Linux, press ControlShiftCtrl+Shift+↑ or ControlShiftCtrl+Shift+↓.

Change text#

Keys What happens
CommandZCtrl+Z / CommandShiftZCtrl+Shift+Z Undo and redo.
CommandShiftDCtrl+Shift+D Duplicate the line.
CommandShiftKCtrl+Shift+K Delete the line.
ControlJCtrl+J Join the line with the next one.
Command/Ctrl+/ Comment or uncomment the selection.
Command]Ctrl+] / Command[Ctrl+[ Indent or outdent.
CommandCtrl+Enter / CommandShiftCtrl+Shift+Enter Start a new line below or above.
OptionAlt+Backspace / OptionAlt+Delete Delete to the start or the end of the word.
CommandCtrl+Backspace / CommandCtrl+Delete Delete to the start or the end of the line.
OptionZAlt+Z Turn soft wrap on or off for this file.

Find and replace#

CommandFCtrl+F opens the search bar. Type, and Rip highlights every match. Enter goes to the next match and ShiftShift+Enter to the previous one. CommandGCtrl+G and CommandShiftGCtrl+Shift+G do the same from the editor. Esc closes the bar.

CommandOptionFCtrl+Alt+F opens the replace field. CommandCtrl+Enter replaces the current match, and CommandOptionCtrl+Alt+Enter replaces every match. To search every file in the folder, see Search and traces.

Save#

CommandSCtrl+S saves the file, CommandShiftSCtrl+Shift+S saves it under a new name, and CommandOptionSCtrl+Alt+S saves every open file. On save, Rip removes trailing whitespace and adds a final newline when the settings below say so.

A file can change on disk while you edit it. Rip merges the two versions and never writes over the change on disk. Working with agents explains the merge and the keys for a conflict.

Settings#

Key What it changes
tab-size The width of a tab, and the size of one indent.
indent Whether Tab inserts spaces or a tab.
soft-wrap Whether long lines wrap at the window edge.
line-numbers Whether the gutter shows line numbers.
relative-line-numbers Whether line numbers count from the cursor.
cursor-blink Whether the cursor blinks.
show-whitespace When to draw spaces and tabs: never, always, or in a selection.
indent-guides Whether indent levels get a guide line.
trim-trailing-whitespace-on-save Remove spaces at the end of each line on save.
ensure-final-newline-on-save End the file with a newline on save.
© 2026 Xip KitFeaturesFAQsChangelogDocsPrivacy