# Zepto Tutorial A quick walkthrough of the essentials. ## Opening Files From the command line: zepto myfile.txt zepto file1.txt file2.txt zepto . # open a directory Or from inside the editor, press `Ctrl+O` to open the file picker. ## Saving and Quitting - `Ctrl+S` - Save - `Ctrl+W` - Close tab - `Ctrl+Q` - Quit If a file has never been saved, you'll be prompted for a filename. ## Basic Navigation - **Arrow keys** - move cursor - **Home / End** - start / end of line - **Ctrl+Home / Ctrl+End** - start / end of file - **Page Up / Page Down** - scroll by page - **Ctrl+G** - go to a specific line number - **Mouse click** - place cursor anywhere - **Mouse scroll** - scroll the document ## Editing - Just type - text is inserted at the cursor - **Ctrl+Z** - Undo - **Ctrl+Y** - Redo - **Ctrl+X / Ctrl+C / Ctrl+V** - Cut, Copy, Paste - **Ctrl+D** - Select next occurrence (multi-cursor) - **Alt+Up / Alt+Down** - Move line up/down - **Ctrl+U** - Duplicate line - **Ctrl+/** - Toggle comment ## Selection - **Shift+Arrow keys** - select text - **Ctrl+A** - Select all - **Click and drag** - select with mouse - **Double-click** - select word - **Triple-click** - select line ## Command Palette Press `Ctrl+Space` to open the command palette. Start typing to filter. This is the fastest way to discover everything Zepto can do. ## Things to Try - **Find and Replace** - `Ctrl+F` to find, then toggle replace mode from the palette. Supports regex. - **Find in Files** - `Ctrl+Shift+F` to search across all project files. - **Diff View** - `Alt+D` to see git changes inline. - **Transform via Shell** - Select text, press `Alt+T`, and pipe it through any shell command (sort, awk, jq, etc.). - **Column Editing** - `Alt+C` to toggle column selection mode. Select a rectangle of text and edit it. - **File Tree** - `Ctrl+B` to toggle the sidebar file tree. - **Theme** - `Ctrl+T` to switch between dark and light themes. - **Word Wrap** - `Alt+Z` to toggle word wrap. - **Minimap** - `Alt+M` to toggle the document minimap. - **Recent Files** - `Ctrl+E` to quickly switch between recent files. - **Multi-cursor** - `Ctrl+D` to select the next occurrence of the current word and edit all at once.