Ripcord Dev Logo Ripcord Development — View Ticket Login or Create Account
Ticket UUID: c631cf3f6bb8a594271bd276b9d7209dc98fae6a
Title: Inline previews of text-file attachments
Status: Open Type: Feature_Request
Severity: Priority:
Subsystem: Slack Resolution:
Last Modified: 2020-06-01 11:42:17
Version Found In: 0.4.25
Avaq2020-06-01 11:42:17

The official Slack clients display previews of attached text files.

  • The Slack for Desktop and Web clients display the first five lines of a text-file attachment, with a button that allows expanding the in-line preview to the full length of the file. When there are many such files in a channel, the clients becomes nearly unresponsive and hogs a huge amount of resources.
  • The Slack for Mobile client displays the first line of a text-file attachment, which when clicked opens the full length text file in a separate view. When there are many such files in a channel, performance is not affected.

However, Ripcord only displays the name of the file, which when clicked opens the raw attachment in a browser. My request is to include a preview of at least the first line of an attached text-file under the message that contains the attachment, ideally without a noticeable impact on performance. :)

Use-case

At my work we use a monitoring tool that sends stderr output from our running services to Slack as file attachments, allowing us to be on top of service failures as they happen. The file previews allow us to see at a glance whether the text points to a real issue. The ability to do this is the number one thing I miss after switching to Ripcord.

Nice to Have

There was a lot to add to this feature request, so I tried to bring the main request down to a bare minimum, and moved all bells and whistles down here. They're listed in order of relevance as determined by desirability, expected ease of implementation, and expected likelihood of implementation.

  • More than a single line of preview, maybe a few lines, like the Slack Web client.
  • Opening files in a more appropriate program than the web browser (https://dev.cancel.fm/tktview?name=36d9f6d8f5)
  • Expanding a file preview to its full contents without exiting Ripcord, either in a separate view, like Slack for Mobile, or even inline, like Slack for Web. This "file content view" could also be integrated into the "Files" modal, which currently only shows metadata.
  • Code coloring of file previews and/or full file contents (https://dev.cancel.fm/tktview?name=eeb7d0075e)