deepseek-ai / deepseek-ai/DeepSeek-V2
Display filename between language tag and copy button in code blocks, keep the same
- Dominant language
- No language data
- Stars
- 5k
- Forks
- 550
- PR merge metrics
- No merged PRs in 30d
Description
Description:
When displaying code in the chat interface, the top-left corner of the code block shows the language (e.g., "HTML"), and on the right — the "Copy" button. However, there is no information about which file the code belongs to. This makes it difficult to understand, especially when multiple files are shown in sequence or when a file is longer than one screen page.
Proposed solution:
Add the filename between the language tag and the copy button. For example:
HTML (index.html) on the left and the "Copy" button on the right.
Alternatively, display the filename as a separate label or tooltip.
Benefits:
Increases clarity and organization when demonstrating multiple files.
Allows users to quickly find the right file for copying or reference.
A small change that significantly improves readability.
Thank you for considering this suggestion!
Russian
Тема: Предложение по улучшению интерфейса: отображать имя файла между тегом языка и кнопкой копирования, сохранить.
Описание:
При отображении кода в чате в левом верхнем углу блока показывается язык (например, «HTML»), а справа — кнопка «Копировать». Однако нет информации о том, к какому файлу относится код. Это затрудняет понимание, особенно когда приводится несколько файлов подряд или длинна файла более одной экранной страницы.
Предлагаемое решение:
Добавить имя файла между тегом языка и кнопкой копирования. Например:
HTML (index.html) слева и кнопка «Копировать» справа.
Либо отображать имя файла отдельной меткой или всплывающей подсказкой.
Преимущества:
Повышает ясность и организованность при демонстрации нескольких файлов.
Позволяет пользователям быстро находить нужный файл для копирования или справки.
Небольшое изменение, значительно улучшающее возможность прочитать текст.
Спасибо за рассмотрение этого предложения!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.