add ability to create and store snippets for comments #14723

Open
opened 2025-11-02 11:21:14 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @printfdebugging on GitHub (Jul 8, 2025).

Feature Description

comments often share a lot of structure, things like custom html for embedding something in the comment, things like codeblocks and it would be great if we have some way of storing the commonly used snippets so that one can just type "<s" and insert a codeblock, or any other way... or we can show a dropdown list of snippets.

it might be a niche use case but i think it's worth discussing.

Screenshots

No response

Originally created by @printfdebugging on GitHub (Jul 8, 2025). ### Feature Description comments often share a lot of structure, things like custom html for embedding something in the comment, things like codeblocks and it would be great if we have some way of storing the commonly used snippets so that one can just type "<s<space>" and insert a codeblock, or any other way... or we can show a dropdown list of snippets. it might be a niche use case but i think it's worth discussing. ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 11:21:14 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Jul 8, 2025):

-> Saved replies to issues and PRs (Canned/Templated Responses) #22787

@wxiaoguang commented on GitHub (Jul 8, 2025): -> Saved replies to issues and PRs (Canned/Templated Responses) #22787
Author
Owner

@printfdebugging commented on GitHub (Jul 8, 2025):

this would do, but it has to be accessible/auto-completeable from the editbox like # for the issues and PRs, maybe % would do?

@printfdebugging commented on GitHub (Jul 8, 2025): this would do, but it has to be accessible/auto-completeable from the editbox like # for the issues and PRs, maybe % would do?
Author
Owner

@wxiaoguang commented on GitHub (Jul 8, 2025):

this would do, but it has to be accessible/auto-completeable from the editbox like # for the issues and PRs, maybe % would do?

Maybe this -> Add support for slash commands in markdown input fields #31073

@wxiaoguang commented on GitHub (Jul 8, 2025): > this would do, but it has to be accessible/auto-completeable from the editbox like # for the issues and PRs, maybe % would do? Maybe this -> Add support for slash commands in markdown input fields #31073
Author
Owner

@printfdebugging commented on GitHub (Jul 8, 2025):

ah, that is exactly what i want, down to the usecase. see i use gitea issues for documenting my thoughts in a timeline and the project to organize the issues based on various things, and labels as well. and i wanted to add the codeblock as details as it's taking up quite some space. so i wanted a quick way of inserting the codeblock inside details without having to retype everything over and over.

Image
@printfdebugging commented on GitHub (Jul 8, 2025): ah, that is exactly what i want, down to the usecase. see i use gitea issues for documenting my thoughts in a timeline and the project to organize the issues based on various things, and labels as well. and i wanted to add the codeblock as details as it's taking up quite some space. so i wanted a quick way of inserting the codeblock inside details without having to retype everything over and over. <img width="1397" height="952" alt="Image" src="https://github.com/user-attachments/assets/ba806edb-b018-4edc-a292-f63c95baf6de" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14723