@@ -9,24 +9,24 @@ provider collaborators.
99
1010## Command Mapping
1111
12- | User Command | Entry Function | Primary Path |
13- | ------------------------------- | -------------------------------- | ----------------------------------------------------- |
14- | ` :Codex ` | ` codex.toggle() ` | Toggle active terminal or open a focused session |
15- | ` :Codex! ` | ` codex.open(true) ` | Force-open and focus terminal |
16- | ` :CodexFocus ` | ` codex.focus() ` | Focus active session or open one |
17- | ` :CodexClose ` | ` codex.close() ` | Close active session and reset queue |
18- | ` :CodexClearInput ` | ` codex.clear_input() ` | Send ` <C-c> ` to active session |
19- | ` :CodexSend ` | ` codex.send_selection(opts) ` | Collect selection, format, send via queue |
20- | ` :CodexMentionFile [path] ` | ` codex.mention_file(path) ` | Build ` /mention ` payload for file and submit |
21- | ` :CodexMentionDirectory [path] ` | ` codex.mention_directory(path) ` | Build ` /mention ` payload for directory and submit |
22- | ` :CodexResume ` | ` codex.resume({ last = false }) ` | In-process ` /resume ` or launch ` codex resume ` |
23- | ` :CodexResume! ` | ` codex.resume({ last = true }) ` | Launch ` codex resume --last ` when opening new process |
24- | ` :CodexModel ` | ` codex.set_model() ` | Slash command wrapper (` /model ` ) |
25- | ` :CodexStatus ` | ` codex.show_status() ` | Slash command wrapper (` /status ` ) |
26- | ` :CodexPermissions ` | ` codex.show_permissions() ` | Slash command wrapper (` /permissions ` ) |
27- | ` :CodexCompact ` | ` codex.compact() ` | Slash command wrapper (` /compact ` ) |
28- | ` :CodexReview [instructions] ` | ` codex.review(instructions) ` | Slash command wrapper (` /review ... ` ) |
29- | ` :CodexDiff ` | ` codex.show_diff() ` | Slash command wrapper (` /diff ` ) |
12+ | User Command | Entry Function | Primary Path |
13+ | ------------------------------- | -------------------------------- | ------------------------------------------------------------------------------------ |
14+ | ` :Codex ` | ` codex.toggle() ` | Toggle active terminal or open a focused session |
15+ | ` :Codex! ` | ` codex.open(true) ` | Force-open and focus terminal |
16+ | ` :CodexFocus ` | ` codex.focus() ` | Focus active session or open one |
17+ | ` :CodexClose ` | ` codex.close() ` | Close active session and reset queue |
18+ | ` :CodexClearInput ` | ` codex.clear_input() ` | Send ` <C-c> ` to active session |
19+ | ` :CodexSend ` | ` codex.send_selection(opts) ` | Collect selection, format, send via queue |
20+ | ` :CodexMentionFile [path] ` | ` codex.mention_file(path) ` | Build ` /mention ` payload for relative file and submit |
21+ | ` :CodexMentionDirectory [path] ` | ` codex.mention_directory(path) ` | Build ` /mention ` payload for relative directory (with trailing separator) and submit |
22+ | ` :CodexResume ` | ` codex.resume({ last = false }) ` | In-process ` /resume ` or launch ` codex resume ` |
23+ | ` :CodexResume! ` | ` codex.resume({ last = true }) ` | Launch ` codex resume --last ` when opening new process |
24+ | ` :CodexModel ` | ` codex.set_model() ` | Slash command wrapper (` /model ` ) |
25+ | ` :CodexStatus ` | ` codex.show_status() ` | Slash command wrapper (` /status ` ) |
26+ | ` :CodexPermissions ` | ` codex.show_permissions() ` | Slash command wrapper (` /permissions ` ) |
27+ | ` :CodexCompact ` | ` codex.compact() ` | Slash command wrapper (` /compact ` ) |
28+ | ` :CodexReview [instructions] ` | ` codex.review(instructions) ` | Slash command wrapper (` /review ... ` ) |
29+ | ` :CodexDiff ` | ` codex.show_diff() ` | Slash command wrapper (` /diff ` ) |
3030
3131## Setup Registration Flow
3232
@@ -164,6 +164,7 @@ init.lua mention_file(path) / mention_directory(path) -> mention module
164164 |- resolve path (arg or current buffer path via %:p / %:p:h)
165165 |- [missing path] -> log + return false, "current buffer has no file/directory path"
166166 |- path.to_relative(...)
167+ |- [directory only] path.ensure_dir_trailing_separator(...)
167168 \- mention.dispatch(relative_path)
168169 |- formatter.format_mention(relative_path)
169170 |- [active + alive] provider.focus(handle) before prompt capture
0 commit comments