Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion codex-rs/tui/src/bottom_pane/list_selection_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,14 @@ impl ListSelectionView {
""
};
let name_with_marker = format!("{name}{marker}");
let is_disabled = item.is_disabled || item.disabled_reason.is_some();
let n = visible_idx + 1;
let wrap_prefix = if self.is_searchable {
// The number keys don't work when search is enabled (since we let the
// numbers be used for the search query).
format!("{prefix} ")
} else if is_disabled {
format!("{prefix} {}", " ".repeat(n.to_string().len() + 2))
} else {
format!("{prefix} {n}. ")
};
Expand All @@ -388,7 +391,6 @@ impl ListSelectionView {
.flatten()
.or_else(|| item.description.clone());
let wrap_indent = description.is_none().then_some(wrap_prefix_width);
let is_disabled = item.is_disabled || item.disabled_reason.is_some();
GenericDisplayRow {
name: name_with_marker,
name_prefix_spans,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ expression: before
Apps
Loading installed and available apps...

1. Loading apps... This updates when the full list is ready.
Loading apps... This updates when the full list is ready.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ expression: popup

› 1. Back to plugins Return to the plugin list.
2. Install plugin Install this plugin now.
3. Skills design-review, extract-copy
4. Apps Figma, Slack
5. MCP Servers figma-mcp, docs-mcp
Skills design-review, extract-copy
Apps Figma, Slack
MCP Servers figma-mcp, docs-mcp

Press esc to close.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ expression: popup
Loading available plugins...
This first pass shows the ChatGPT marketplace only.

1. Loading plugins... This updates when the marketplace list is ready.
Loading plugins... This updates when the marketplace list is ready.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ expression: popup

1. System default Use your operating system
default device.
2. Unavailable: Studio Mic (current) (disabled) Configured device is not
Unavailable: Studio Mic (current) (disabled) Configured device is not
currently available.
(disabled: Reconnect the
device or choose another
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,14 @@ impl ListSelectionView {
""
};
let name_with_marker = format!("{name}{marker}");
let is_disabled = item.is_disabled || item.disabled_reason.is_some();
let n = visible_idx + 1;
let wrap_prefix = if self.is_searchable {
// The number keys don't work when search is enabled (since we let the
// numbers be used for the search query).
format!("{prefix} ")
} else if is_disabled {
format!("{prefix} {}", " ".repeat(n.to_string().len() + 2))
} else {
format!("{prefix} {n}. ")
};
Expand All @@ -388,7 +391,6 @@ impl ListSelectionView {
.flatten()
.or_else(|| item.description.clone());
let wrap_indent = description.is_none().then_some(wrap_prefix_width);
let is_disabled = item.is_disabled || item.disabled_reason.is_some();
GenericDisplayRow {
name: name_with_marker,
name_prefix_spans,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ expression: before
Apps
Loading installed and available apps...

1. Loading apps... This updates when the full list is ready.
Loading apps... This updates when the full list is ready.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ expression: popup

› 1. Back to plugins Return to the plugin list.
2. Install plugin Install this plugin now.
3. Skills design-review, extract-copy
4. Apps Figma, Slack
5. MCP Servers figma-mcp, docs-mcp
Skills design-review, extract-copy
Apps Figma, Slack
MCP Servers figma-mcp, docs-mcp

Press esc to close.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ expression: popup
Loading available plugins...
This first pass shows the ChatGPT marketplace only.

1. Loading plugins... This updates when the marketplace list is ready.
Loading plugins... This updates when the marketplace list is ready.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ expression: popup

1. System default Use your operating system
default device.
2. Unavailable: Studio Mic (current) (disabled) Configured device is not
Unavailable: Studio Mic (current) (disabled) Configured device is not
currently available.
(disabled: Reconnect the
device or choose another
Expand Down
Loading