Skip to content

feat: attachment URIs in viewer when image preview is disabled #210

Description

@raymon-roos

Problem

Currently, with inline image preview disabled (disable_image_preview = true) there is no way to manually open an image or attachment for viewing. The message and the attachment viewer both show the attachment file name:

Image Image

If instead of just the file name, it showed the CDN URI to the uploaded attachment, it could be clicked (or extracted from the terminal buffer with some other tool) to open in a browser or other appropriate application.
(For example kitty terminal's hinting mode)

Proposed solution

If instead of a file name, it showed the URI to where the file is stored:

https://cdn.discordapp.com/attachments/1409999999999999741/1599999999999999922/rn_image_picker_lib_temp_2cd2d4e3-xxxx-xxxx-xxxx-xxxxxxxxxxxx.jpg?etc..

the user could decide to use that to view the file.

Alternatives considered

Enabling image preview, but that clutters the chats and costs system resources.

Additional context

Thanks for your awesome work!

Confirmations

  • I searched existing issues and discussions for the same idea.
  • This request does not involve self-bot automation, mass actions, or scraping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions