Files and navigation
The file tree, the file finder, the command palette, tabs, and panes.
Rip keeps the file tree on the left, tabs on top, and one editor in each pane. Everything on this page works from the keyboard.
The file tree#
The sidebar lists the open folder. It shows the files that .gitignore names in a dimmer color and reads each folder when you expand it. BCtrl+B hides and shows the sidebar. ECtrl+Shift+E selects the current file in the tree.
In the tree, ↑↑ and ↓↓ move the selection. →→ expands a folder and ←← collapses it. ↩Enter opens the selected file. ⎋Esc returns to the editor.
CCtrl+C copies the full path of the selection, and CCtrl+Alt+C copies the path from the folder root. RCtrl+Alt+R shows the file in the system file manager.
Colors show git state. Added, modified, and ignored files each have their own color. A dot marks a file that changed on disk while you looked elsewhere. Working with agents explains that dot.
Find a file#
Press PCtrl+P and type part of a name. The list narrows as you type. The finder lists the indexed files, so it skips files that Git or a .ignore file ignores. It also skips the .git, target, and node_modules folders, and symbolic links. A finder opened while Rip still builds the index shows only the files indexed so far. Close it and open it again to see the rest. The index covers up to 200,000 files. ↩Enter opens the selected file, and ↩Ctrl+Enter opens it in a new pane.
Run a command#
Press PCtrl+Shift+P and type part of a command name. The palette lists the editor's commands, with their keys when they have one. ↩Enter runs the selected command.
Tabs#
Each file opens in a tab. WCtrl+W closes the tab. A tab with unsaved edits asks first. Press it again within six seconds to close the tab and drop the edits. TCtrl+Shift+T reopens the last file closed in the current pane. ⇥Ctrl+Tab and ⇥Ctrl+Shift+Tab cycle through the tabs. 1Ctrl+1 to 8Ctrl+8 jump to a tab by position, and 9Ctrl+9 jumps to the last tab.
Panes#
\Ctrl+\ splits the editor to the right, and \Ctrl+Alt+\ splits it down. KCtrl+K and then an arrow key splits in that direction. K →Ctrl+K Ctrl+→ moves the focus to the pane on the right, and the other arrows work the same way.
The same file in two panes shares its text and its unsaved state. K MCtrl+K Ctrl+M moves the current tab to the next pane. K ↩Ctrl+K Shift+Enter zooms the pane to fill the window. Press it again to restore the layout. K WCtrl+K W closes the pane when none of its tabs has unsaved edits. When it is the only pane, it stays open and closes its tabs instead.
Layouts arrange every pane at once. 1Ctrl+Alt+1 to 4Ctrl+Alt+4 make one to four columns. 5Ctrl+Alt+5 makes a grid. 8Ctrl+Alt+8 and 9Ctrl+Alt+9 make two or three rows. Drag a divider to resize a pane.
Focus and zoom#
On macOS, 0Ctrl+0 focuses the sidebar and 1Ctrl+1 the editor. On Linux, the keys are 0Alt+0 and 1Alt+1. =Ctrl+= and -Ctrl+- zoom the text in and out, and 0Ctrl+0 restores the size.
Keys#
| Keys | What happens |
|---|---|
| PCtrl+P | Find a file by name. |
| PCtrl+Shift+P | Run a command by name. |
| BCtrl+B | Hide or show the sidebar. |
| ECtrl+Shift+E | Select the current file in the tree. |
| \Ctrl+\ | Split the editor to the right. |
| K ↩Ctrl+K Shift+Enter | Zoom the pane, or restore the layout. |
| TCtrl+Shift+T | Reopen the last file closed in this pane. |
Settings#
| Key | What it changes |
|---|---|
show-sidebar |
Whether a new window shows the sidebar. |
sidebar-width |
The width of the sidebar in pixels. |