Skip to main content

คำสั่ง Codex App

ใช้คำสั่งและ keyboard shortcuts เหล่านี้เพื่อ navigate ใน Codex App

Keyboard shortcuts

ทั่วไป

การกระทำShortcut
Command menuCmd + Shift + P หรือ Cmd + K
SettingsCmd + ,
Keyboard shortcutsCmd + /
Open folderCmd + O
Navigate backCmd + [
Navigate forwardCmd + ]
Increase font sizeCmd + + หรือ Cmd + =
Decrease font sizeCmd + - หรือ Cmd + _
Toggle sidebarCmd + B
Toggle diff panelCmd + Option + B
Toggle terminalCmd + J
Clear the terminalCtrl + L

Thread

การกระทำShortcut
New threadCmd + N หรือ Cmd + Shift + O
Search threadsCmd + G
Find in threadCmd + F
Previous threadCmd + Shift + [
Next threadCmd + Shift + ]
DictationCtrl + M

เพื่อค้นหา, ปรับแต่งหรือ reset shortcuts ให้เปิด Settings > Keyboard Shortcuts

ค้นหา thread ที่ผ่านมา

ใช้ thread search (Cmd/Ctrl + G) เพื่อเปิด conversation ที่ผ่านมาอีกครั้ง เมื่อ expanded matching พร้อมใช้งาน สามารถค้นหา content และ Git branch names ได้ด้วย

ใช้ Find in thread (Cmd + F) หลังจากเปิด thread เพื่อค้นหาข้อความภายใน conversation นั้น ไม่ค้นหาข้ามเธรดอื่น

Slash commands

Slash commands ให้คุณควบคุม Codex โดยไม่ต้องออกจาก thread composer

วิธีใช้ slash command

  1. พิมพ์ / ใน thread composer
  2. เลือก command จากรายการ หรือพิมพ์ต่อเพื่อกรอง (เช่น /status)

คุณยังสามารถเรียก skills โดยตรงได้โดยพิมพ์ $ ใน thread composer

Slash commands ที่ใช้ได้

Commandคำอธิบาย
/feedbackเปิด feedback dialog เพื่อส่ง feedback พร้อม logs
/goalตั้ง goal ถาวรให้ Codex ทำงานไปสู่ ใช้ /plan ก่อนเพื่อรูปร่าง goal
/initสร้าง AGENTS.md scaffold สำหรับโปรเจกต์ปัจจุบัน
/mcpเปิด MCP status เพื่อดู connected servers
/planToggle plan mode สำหรับการวางแผน multi-step
/reviewเริ่ม code review mode เพื่อรีวิว uncommitted changes
/statusแสดง thread ID, context usage และ rate limits

ตั้งค่าหรือจัดการ goal ด้วย /goal

ใช้ /goal ใน app composer เพื่อเริ่ม Goal mode goal คือ objective ที่ถาวรซึ่ง Codex ทำงานไปสู่จนเสร็จ, หยุด หรือต้องการ input เพิ่มเติม

หากต้องการเปิดใช้ /goal ให้เพิ่มใน config.toml:

[features]
goals = true

หรือรัน:

codex features enable goals

Codex App ลงทะเบียน URL scheme codex:// เพื่อให้ links สามารถเปิดส่วนต่างๆ ของแอปได้โดยตรง

Linkคำอธิบาย
codex://threads/newThread local ใหม่
codex://new?<query>Thread local ใหม่พร้อม query parameters
codex://threads/<thread-id>Thread local ที่มีอยู่
codex://settingsSettings
codex://skillsSkills
codex://automationsAutomations พร้อม create flow เปิด
codex://plugins/install/<plugin-name>?marketplace=<marketplace-name>Install flow สำหรับ plugin
codex://plugins/<plugin-id>Plugin detail page

Query parameters สำหรับ threads

สำหรับ codex://threads/new หรือ codex://new สามารถเพิ่ม query parameters:

Parameterคำอธิบาย
prompt=<text>ตั้งข้อความ composer เริ่มต้น
path=<absolute-path>เปิด thread ใหม่ใน workspace local (ต้องเป็น absolute path)
originUrl=<git-remote-url>จับคู่กับ workspace root โดย Git remote URL
Linkคำอธิบาย
codex://settingsหน้า Settings หลัก
codex://settings/browser-useBrowser settings
codex://settings/computer-use/google-chromeGoogle Chrome settings
codex://settings/connectionsRemote connections settings

ดูเพิ่มเติม

  • Features
  • Settings