Skip to content

Keyboard Shortcuts

Master the keyboard shortcuts to double your Mantra productivity. This page lists all available shortcuts, organized by function for easy reference.

Platform Differences

In this documentation, Cmd refers to macOS and Ctrl refers to Windows/Linux. For example, Cmd/Ctrl + K means press Cmd + K on macOS or Ctrl + K on Windows/Linux.

General Shortcuts

These shortcuts work anywhere in Mantra.

ShortcutFunctionDescription
Cmd/Ctrl + KGlobal SearchQuickly search projects, messages, and files
Cmd/Ctrl + /Open HelpShow help documentation and shortcut hints
Cmd/Ctrl + ,Open SettingsAccess Mantra settings
Cmd/Ctrl + QQuit AppClose Mantra
Cmd/Ctrl + RRefresh ViewReload current view
Cmd/Ctrl + WClose TabClose current tab

Use these shortcuts when browsing conversations and messages.

Message Navigation

ShortcutFunctionDescription
J or Next MessageJump to next message
K or Previous MessageJump to previous message
Cmd/Ctrl + JQuick NextJump to next message (from anywhere)
Cmd/Ctrl + Shift + JNext User MessageJump to next message sent by user
Cmd/Ctrl + Shift + KPrevious User MessageJump to previous message sent by user
ShortcutFunctionDescription
G GGo to TopQuickly jump to conversation start
Shift + GGo to BottomQuickly jump to conversation end
SpacePage DownScroll down one screen
Shift + SpacePage UpScroll up one screen
HomePage TopScroll to page top
EndPage BottomScroll to page bottom

Panel Switching

ShortcutFunctionDescription
Cmd/Ctrl + 1Conversation PanelSwitch to conversation list panel
Cmd/Ctrl + 2Message PanelSwitch to message details panel
Cmd/Ctrl + 3Code PanelSwitch to code snapshot panel
Cmd/Ctrl + BToggle SidebarShow/hide left sidebar
Cmd/Ctrl + \\Toggle File TreeShow/hide file tree panel

Time Travel Shortcuts

Browse code history in Time Travel mode.

Timeline Control

ShortcutFunctionDescription
Previous PointStep backward on timeline
Next PointStep forward on timeline
[Jump to StartJump to timeline beginning
]Jump to EndJump to timeline end
PPlay/PauseAuto-play timeline

Code View

ShortcutFunctionDescription
DDiff ViewSwitch to code diff comparison view
SSource ViewSwitch to full source view
Cmd/Ctrl + GGo to LineJump to specific line number
Cmd/Ctrl + FSearch in FileSearch within current file

File Tree Navigation

ShortcutFunctionDescription
EnterOpen FileOpen selected file
Collapse DirectoryCollapse current directory
Expand DirectoryExpand current directory
Cmd/Ctrl + Shift + EFocus File TreeMove focus to file tree

Message Filtering Shortcuts

Quickly filter and search messages.

ShortcutFunctionDescription
/Start SearchOpen message search box
Cmd/Ctrl + FAdvanced SearchOpen advanced search panel
EnterConfirm SearchExecute search
Cmd/Ctrl + EnterSearch & HighlightSearch and highlight all matches

Filter Toggle

ShortcutFunctionDescription
F UUser Messages OnlyShow only user-sent messages
F AAI Messages OnlyShow only AI responses
F TTool Calls OnlyShow only messages with tool calls
F CCode OnlyShow only messages with code
F EErrors OnlyShow only messages with errors

Clear Filters

ShortcutFunctionDescription
EscClear FilterClear all current filter conditions
Cmd/Ctrl + Shift + FReset FiltersReset all filters to default state

Editing Shortcuts

Copy and select content.

Copy

ShortcutFunctionDescription
Cmd/Ctrl + CCopy SelectionCopy selected text
Cmd/Ctrl + Shift + CCopy Code BlockCopy entire code block content
Cmd/Ctrl + Alt + CCopy MessageCopy complete message content

Selection

ShortcutFunctionDescription
Cmd/Ctrl + ASelect AllSelect all content in current area
Cmd/Ctrl + Shift + ASelect MessageSelect entire message
Double-clickSelect WordSelect word at cursor
Triple-clickSelect ParagraphSelect paragraph at cursor

Customizing Shortcuts

You can customize shortcuts according to your preferences.

Viewing and Modifying Shortcuts

  1. Open Settings (Cmd/Ctrl + ,)
  2. Select the "Shortcuts" tab
  3. Find the function you want to modify
  4. Click the shortcut input field and press your new key combination
  5. Click "Save" to confirm changes

Shortcut Conflicts

If your shortcut conflicts with system or other application shortcuts, Mantra will display a warning. We recommend avoiding system-level shortcuts.

Restoring Defaults

To restore default shortcuts after modifications:

  1. Open Settings (Cmd/Ctrl + ,)
  2. Select the "Shortcuts" tab
  3. Click "Restore Defaults" button
  4. Confirm the restore operation

Export Shortcut Configuration

You can export your current shortcut configuration in settings, making it easy to sync the same shortcuts across different devices.

Quick Reference

Here's a quick reference for the most commonly used shortcuts:

CategoryShortcutFunction
GeneralCmd/Ctrl + KGlobal Search
GeneralCmd/Ctrl + ,Open Settings
NavigationJ / KSwitch Messages
NavigationG GGo to Top
Time Travel / Timeline Navigation
Filter/Start Search
FilterEscClear Filter
EditCmd/Ctrl + CCopy

Next Steps