Skip to content

CLI output auto-wraps at 76 chars breaking native file path linking #1201

@ChillyBots

Description

@ChillyBots

Describe the bug
In VSCode, typically when a file path is logged to the console, you can ctrl+click it and open it. However, Betterer (or the underlying commander package) is forcefully breaking lines rather than using all available terminal line space and letting the terminal wrap it naturally. This breaks any file path links. Notice how only the first section is underlined on ctrl+hover:

To Reproduce
ctrl+click any file path in betterer cli output

Expected behavior
should open file correctly

Screenshots
image

Versions (please complete the following information):

  • OS: Win11 / WSL 2 / ZSH 5.8.1
  • Betterer Version [e.g. 4.*] ^5.4.0
  • Node Version [e.g. 14.*] v20.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions