Overview
Rode provides a comprehensive set of keyboard shortcuts for common editor operations. All keybindings are currently hardcoded in the application and use platform-aware modifiers (Cmd on macOS, Ctrl on Linux/Windows).Custom keybindings are not yet supported. The shortcuts listed below are the default (and only) keybindings available in the current version.
Modifier Keys
Rode uses platform-aware modifier keys:- Command (Cmd ⌘) on macOS
- Control (Ctrl) on Linux and Windows
Cmd to represent the platform-specific command modifier.
Source: src/app.rs:1023 (modifiers.command())
File Operations
Open FolderOpens a folder dialog to select a workspace directory.Source:
src/app.rs:1040Save FileSaves the currently active file to disk.Source:
src/app.rs:1042New FileCreates a new untitled file in a new tab.Source:
src/app.rs:1046Close TabCloses the currently active tab.Source:
src/app.rs:1041Navigation & UI
Toggle SidebarShows or hides the file tree sidebar.Source:
src/app.rs:1038Toggle Sidebar (alternate)Alternative keybinding for toggling the sidebar.Source:
src/app.rs:1039File FinderOpens the fuzzy file finder for quick file navigation.Source:
src/app.rs:1043Toggle TerminalShows or hides the integrated terminal panel.Source:
src/app.rs:1044Search & Replace
Find & ReplaceOpens the find and replace panel.Source:
src/app.rs:1045Command Palette & Tools
Command PaletteOpens the command palette for quick access to editor commands.Source:
src/app.rs:1032Fuzzy FinderOpens the fuzzy finder for searching across files.Source:
src/app.rs:1031SettingsOpens the settings panel.Source:
src/app.rs:1033Preview MarkdownRenders the current Markdown file in preview mode.Source:
src/app.rs:1030Window Management
Toggle FullscreenToggles fullscreen mode for the editor window.Source:
src/app.rs:1025This requires both Command and Control modifiers to be pressed simultaneously.
Universal Keys
Close OverlaysCloses any open overlay panels (find, command palette, fuzzy finder, etc.).Source:
src/app.rs:1005-1006Navigate UpNavigates up in fuzzy finder, command palette, and other list views.Source:
src/app.rs:1007-1009Navigate DownNavigates down in fuzzy finder, command palette, and other list views.Source:
src/app.rs:1010-1012Select ItemSelects the currently highlighted item in fuzzy finder or command palette.Source:
src/app.rs:1013-1014Text Editing
Standard text editing shortcuts (cut, copy, paste, undo, redo, select all) are handled by the underlying text editor component and may vary by platform.
Keybinding Implementation
Keybindings are implemented in thesubscription method of the App struct, which listens for keyboard events:
Full Keybinding Handler
Full Keybinding Handler
src/app.rs:999-1052Quick Reference
File Management
File Management
| Shortcut | Action |
|---|---|
Cmd+N | New File |
Cmd+O | Open Folder |
Cmd+S | Save File |
Cmd+W | Close Tab |
Navigation
Navigation
Search & Tools
Search & Tools
| Shortcut | Action |
|---|---|
Cmd+F | Find & Replace |
Cmd+Shift+F | Fuzzy Finder |
Cmd+Shift+P | Command Palette |
Cmd+Shift+S | Settings |
View & Preview
View & Preview
| Shortcut | Action |
|---|---|
Cmd+Shift+V | Preview Markdown |
Cmd+Ctrl+F | Toggle Fullscreen |
Platform Differences
Thecommand() modifier automatically maps to the correct key on each platform:
- macOS: Command (⌘) key
- Linux: Control (Ctrl) key
- Windows: Control (Ctrl) key
Future Support
Related
Preferences
Configure tab size, indentation, and theme
Themes
Customize editor colors and syntax highlighting