คำสั่ง Codex App
ใช้คำสั่งและ keyboard shortcuts เหล่านี้เพื่อ navigate ใน Codex App
Keyboard shortcuts
ทั่วไป
| การกระทำ | Shortcut |
|---|---|
| Command menu | Cmd + Shift + P หรือ Cmd + K |
| Settings | Cmd + , |
| Keyboard shortcuts | Cmd + / |
| Open folder | Cmd + O |
| Navigate back | Cmd + [ |
| Navigate forward | Cmd + ] |
| Increase font size | Cmd + + หรือ Cmd + = |
| Decrease font size | Cmd + - หรือ Cmd + _ |
| Toggle sidebar | Cmd + B |
| Toggle diff panel | Cmd + Option + B |
| Toggle terminal | Cmd + J |
| Clear the terminal | Ctrl + L |
Thread
| การกระทำ | Shortcut |
|---|---|
| New thread | Cmd + N หรือ Cmd + Shift + O |
| Search threads | Cmd + G |
| Find in thread | Cmd + F |
| Previous thread | Cmd + Shift + [ |
| Next thread | Cmd + Shift + ] |
| Dictation | Ctrl + 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
- พิมพ์
/ใน thread composer - เลือก 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 |
/plan | Toggle 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
Deep links
Codex App ลงทะเบียน URL scheme codex:// เพื่อให้ links สามารถเปิดส่วนต่างๆ ของแอปได้โดยตรง
Links ที่รองรับ
| Link | คำอธิบาย |
|---|---|
codex://threads/new | Thread local ใหม่ |
codex://new?<query> | Thread local ใหม่พร้อม query parameters |
codex://threads/<thread-id> | Thread local ที่มีอยู่ |
codex://settings | Settings |
codex://skills | Skills |
codex://automations | Automations พร้อม 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 |
Settings links
| Link | คำอธิบาย |
|---|---|
codex://settings | หน้า Settings หลัก |
codex://settings/browser-use | Browser settings |
codex://settings/computer-use/google-chrome | Google Chrome settings |
codex://settings/connections | Remote connections settings |
ดูเพิ่มเติม
- Features
- Settings