Skip to content

Feature request: configure tab width in rendered Codex CLI/TUI content #36017

Description

@cowwoc

Summary

Add a user-configurable tab width for content rendered by the Codex CLI/TUI.

Current behavior

Tabs in rendered code, pasted text, and tool output appear to be displayed with a width of 8 spaces. The terminal tab-stop configuration does not seem to affect this rendering.

For example, in WSL, configuring the terminal with two-column tab stops before launching Codex does not change the apparent rendered tab width.

Requested behavior

Add a config.toml setting to control the display width of tab characters, for example:

[tui]
tab_width = 2

The setting could default to 8 for compatibility, while allowing values such as 2 or 4.

This should affect rendering only. It should not modify the underlying text, convert tabs to spaces, or change files being displayed.

Environment

  • Codex CLI/TUI
  • WSL

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayconfigIssues involving config.toml, config keys, config merging, or config updatesenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions