mirror of
https://github.com/openai/codex.git
synced 2026-11-02 19:43:24 +00:00
tui: let slash help grow with terminal
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
co-authored by
Codex
parent
6a278e943f
commit
528e3df3f6
@@ -19,7 +19,6 @@ use crate::slash_command::built_in_slash_commands;
|
||||
use crate::wrapping::RtOptions;
|
||||
use crate::wrapping::word_wrap_lines;
|
||||
|
||||
const HELP_VIEW_MAX_HEIGHT: u16 = 28;
|
||||
const HELP_VIEW_MIN_BODY_ROWS: u16 = 6;
|
||||
|
||||
pub(crate) struct SlashHelpView {
|
||||
@@ -203,6 +202,6 @@ impl crate::render::renderable::Renderable for SlashHelpView {
|
||||
|
||||
fn desired_height(&self, width: u16) -> u16 {
|
||||
let content_rows = Self::build_lines(width.saturating_sub(4)).len() as u16;
|
||||
content_rows.clamp(HELP_VIEW_MIN_BODY_ROWS + 3, HELP_VIEW_MAX_HEIGHT)
|
||||
content_rows.max(HELP_VIEW_MIN_BODY_ROWS + 3)
|
||||
}
|
||||
}
|
||||
|
||||
+213
@@ -27,4 +27,217 @@ expression: popup
|
||||
|
||||
/approvals
|
||||
choose what Codex is allowed to do
|
||||
Usage:
|
||||
/approvals
|
||||
/approvals <read-only|auto|full-access> [--confirm-full-access] [--remember-full-access]
|
||||
[--confirm-world-writable] [--remember-world-writable] [--enable-windows-
|
||||
sandbox=elevated|legacy]
|
||||
|
||||
/permissions
|
||||
choose what Codex is allowed to do
|
||||
Usage:
|
||||
/permissions
|
||||
/permissions <read-only|auto|full-access> [--confirm-full-access] [--remember-full-access]
|
||||
[--confirm-world-writable] [--remember-world-writable] [--enable-windows-
|
||||
sandbox=elevated|legacy]
|
||||
|
||||
/setup-default-sandbox
|
||||
set up elevated agent sandbox
|
||||
Usage:
|
||||
/setup-default-sandbox
|
||||
|
||||
/experimental
|
||||
toggle experimental features
|
||||
Usage:
|
||||
/experimental
|
||||
/experimental <feature-key>=on|off ...
|
||||
|
||||
/skills
|
||||
use skills to improve how Codex performs specific tasks
|
||||
Usage:
|
||||
/skills
|
||||
/skills <list|manage>
|
||||
|
||||
/review
|
||||
review my current changes and find issues
|
||||
Usage:
|
||||
/review
|
||||
/review uncommitted
|
||||
/review branch <name>
|
||||
/review commit <sha> [title]
|
||||
/review <instructions>
|
||||
|
||||
/rename
|
||||
rename the current thread
|
||||
Usage:
|
||||
/rename
|
||||
/rename <title...>
|
||||
|
||||
/new
|
||||
start a new chat during a conversation
|
||||
Usage:
|
||||
/new
|
||||
|
||||
/resume
|
||||
resume a saved chat
|
||||
Usage:
|
||||
/resume
|
||||
/resume <thread-id>
|
||||
|
||||
/fork
|
||||
fork the current chat
|
||||
Usage:
|
||||
/fork
|
||||
|
||||
/init
|
||||
create an AGENTS.md file with instructions for Codex
|
||||
Usage:
|
||||
/init
|
||||
|
||||
/compact
|
||||
summarize conversation to prevent hitting the context limit
|
||||
Usage:
|
||||
/compact
|
||||
|
||||
/plan
|
||||
switch to Plan mode
|
||||
Usage:
|
||||
/plan
|
||||
/plan <prompt...>
|
||||
|
||||
/collab
|
||||
change collaboration mode (experimental)
|
||||
Usage:
|
||||
/collab
|
||||
/collab <default|plan>
|
||||
|
||||
/agent
|
||||
switch the active agent thread
|
||||
Usage:
|
||||
/agent
|
||||
/agent <thread-id>
|
||||
|
||||
/diff
|
||||
show git diff (including untracked files)
|
||||
Usage:
|
||||
/diff
|
||||
|
||||
/copy
|
||||
copy the latest Codex output to your clipboard
|
||||
Usage:
|
||||
/copy
|
||||
|
||||
/mention
|
||||
mention a file
|
||||
Usage:
|
||||
/mention
|
||||
|
||||
/status
|
||||
show current session configuration and token usage
|
||||
Usage:
|
||||
/status
|
||||
|
||||
/debug-config
|
||||
show config layers and requirement sources for debugging
|
||||
Usage:
|
||||
/debug-config
|
||||
|
||||
/statusline
|
||||
configure which items appear in the status line
|
||||
Usage:
|
||||
/statusline
|
||||
/statusline <item-id>...
|
||||
/statusline none
|
||||
|
||||
/theme
|
||||
choose a syntax highlighting theme
|
||||
Usage:
|
||||
/theme
|
||||
/theme <theme-name>
|
||||
|
||||
/mcp
|
||||
list configured MCP tools
|
||||
Usage:
|
||||
/mcp
|
||||
|
||||
/apps
|
||||
manage apps
|
||||
Usage:
|
||||
/apps
|
||||
|
||||
/logout
|
||||
log out of Codex
|
||||
Usage:
|
||||
/logout
|
||||
|
||||
/quit
|
||||
exit Codex
|
||||
Usage:
|
||||
/quit
|
||||
|
||||
/exit
|
||||
exit Codex
|
||||
Usage:
|
||||
/exit
|
||||
|
||||
/feedback
|
||||
send logs to maintainers
|
||||
Usage:
|
||||
/feedback
|
||||
/feedback <bug|bad-result|good-result|safety-check|other>
|
||||
|
||||
/rollout
|
||||
print the rollout file path
|
||||
Usage:
|
||||
/rollout
|
||||
|
||||
/ps
|
||||
list background terminals
|
||||
Usage:
|
||||
/ps
|
||||
|
||||
/clean
|
||||
stop all background terminals
|
||||
Usage:
|
||||
/clean
|
||||
|
||||
/clear
|
||||
clear the terminal and start a new chat
|
||||
Usage:
|
||||
/clear
|
||||
|
||||
/personality
|
||||
choose a communication style for Codex
|
||||
Usage:
|
||||
/personality
|
||||
/personality <none|friendly|pragmatic>
|
||||
|
||||
/realtime
|
||||
toggle realtime voice mode (experimental)
|
||||
Usage:
|
||||
/realtime
|
||||
|
||||
/settings
|
||||
configure realtime microphone/speaker
|
||||
Usage:
|
||||
/settings
|
||||
/settings <microphone|speaker> [default|<device-name>]
|
||||
|
||||
/test-approval
|
||||
test approval request
|
||||
Usage:
|
||||
/test-approval
|
||||
|
||||
/multi-agents
|
||||
switch the active agent thread
|
||||
Usage:
|
||||
/multi-agents
|
||||
/multi-agents <thread-id>
|
||||
|
||||
/debug-m-drop
|
||||
DO NOT USE
|
||||
Usage:
|
||||
/debug-m-drop
|
||||
|
||||
/debug-m-update
|
||||
Scroll with ↑/↓ or pgup/pgdn, close with esc.
|
||||
|
||||
Reference in New Issue
Block a user