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 hides the files that .gitignore names 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.
NCtrl+N creates a file next to the selection, and NCtrl+Shift+N creates a folder. F2F2 renames the selection, and ⌫Ctrl+Backspace moves it to the trash. CCtrl+C copies the full path, and CCtrl+Alt+C copies the path from the folder root.
Colors show git state. Added, modified, deleted, 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. ↩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. Every action appears here with its keys. ↩Enter runs the selected command.
Tabs#
Each file opens in a tab. WCtrl+W closes the tab, TCtrl+Shift+T reopens the last closed tab, and WCtrl+Alt+W closes the other tabs. ⇥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#
secondary-</kbd> splits the editor to the right, and secondary-alt-</kbd> 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, its undo history, 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.
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. |
| secondary-</kbd> | Split the editor to the right. |
| K ↩Ctrl+K Shift+Enter | Zoom the pane, or restore the layout. |
| TCtrl+Shift+T | Reopen the last closed tab. |
Settings#
| Key | What it changes |
|---|---|
show-sidebar |
Whether a new window shows the sidebar. |
sidebar-width |
The width of the sidebar in pixels. |