Skip to content

[Feature Requst] File Name for Code Block #675

Open

Description

@UnoYakshi

What

Current UI has quite a chunk of free space in code blocks.

Image

How about to optionally put a file name there? As it's almost begging to be there.

Image

Why

We've recently started to use Docmost for pet project's internal documentation ― and we found ourselves struggling to name our code blocks. (We use a basic text block with inline code function for now, but it's unsatisfying to work with.)

Activity

  1. Scrub000 commented on Feb 10, 2025

    @Scrub000

    It would be good to be able to download the code block with the file name as well.

  2. UnoYakshi commented on Feb 13, 2025

    @UnoYakshi
    Author

    It would be good to be able to download the code block with the file name as well.

    I'm not so sure about that. At most I'd just want to copy-paste the whole block. Why'd you want a name in your clipboard, too?

  3. andreasmolnardev commented on Feb 24, 2025

    @andreasmolnardev

    That would for example help to mark a file as docker-compose.

  4. UnoYakshi commented on Apr 5, 2025

    @UnoYakshi
    Author

    @Philipinho, have you got a chance to consider the feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions