Skip to content

More terse display of @some/path/to/image in input prompt #4669

@jacob314

Description

@jacob314

What would you like to be added?

Show images inserted in the prompt with terse syntax instead of the full @some/path/to/foo.png].

For example [Image foo.png] or [screenshot 1] with proper color coding could be sufficiently clear and a better user experience.

text-buffer.ts and InputPrompt would need to be updated to support this. Updating text-buffer.ts is required so that keyboard navigation and wrapping respects the real rendered size rather than the raw text.
InputPrompt needs to be updated to support the color coding of InputPrompt.

Why is this needed?

Currently including images makes the input prompt harder to read with long @some/path/to/image particularly for cases such as pasting an image into the terminal where the image path is to a temporary directory.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreCore functionality of the CLIkind/bugSomething isn't workingkind/enhancementNew feature or requestpriority/p2Important but can be addressed in a future release.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions