Add support for slash commands in markdown input fields #13024

Open
opened 2025-11-02 10:27:59 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @BlenderDefender on GitHub (May 24, 2024).

Feature Description

I think it would be great if Gitea had slash commands similar to GitHub, where for example saved replies or more complex markdown syntax like tables could be added easily. I've attached a screenshot of GitHubs implementation, but using GitHub, I have the following issues:

  1. There's no way to navigate back, for example, if I choose "Table", I get to choose, how many columns I want (see second screenshot). From there, I can't go back to the main menu.
  2. Pressing escape cancels the menu entirely, and there's no way to get it back. A shortcut like ctrl + space (which is the shortcut for autocomplete in VS Code) would be really helpful.

This feature request seems to be related to #17483 and #22787.

Screenshots

grafik
grafik

Originally created by @BlenderDefender on GitHub (May 24, 2024). ### Feature Description I think it would be great if Gitea had slash commands similar to GitHub, where for example saved replies or more complex markdown syntax like tables could be added easily. I've attached a screenshot of GitHubs implementation, but using GitHub, I have the following issues: 1. There's no way to navigate back, for example, if I choose "Table", I get to choose, how many columns I want (see second screenshot). From there, I can't go back to the main menu. 2. Pressing `escape` cancels the menu entirely, and there's no way to get it back. A shortcut like `ctrl` + `space` (which is the shortcut for autocomplete in VS Code) would be really helpful. This feature request seems to be related to #17483 and #22787. ### Screenshots ![grafik](https://github.com/go-gitea/gitea/assets/61777131/5e172c82-e282-45e2-8ed9-d252d6b63dd7) ![grafik](https://github.com/go-gitea/gitea/assets/61777131/2424b3e7-e6a2-41ae-962b-2b35d64d2b62)
GiteaMirror added the type/proposal label 2025-11-02 10:27:59 -06:00
Author
Owner

@lunny commented on GitHub (May 24, 2024):

I think this one is not the same as #17483 which should be a global pop up input box like Alfred. But this one is in the edit box.

@lunny commented on GitHub (May 24, 2024): I think this one is not the same as #17483 which should be a global pop up input box like Alfred. But this one is in the edit box.
Author
Owner

@BlenderDefender commented on GitHub (May 24, 2024):

I'm sorry, I've expressed myself in a misleading way I guess... I know that this one isn't the same as the other feature requests I've listed, but I've mentioned them because I think they're in some sense related to this feature request, so when working on this, it might be a good idea to take all of them into account for a more polished result.

@BlenderDefender commented on GitHub (May 24, 2024): I'm sorry, I've expressed myself in a misleading way I guess... I know that this one isn't the same as the other feature requests I've listed, but I've mentioned them because I think they're in some sense related to this feature request, so when working on this, it might be a good idea to take all of them into account for a more polished result.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13024