[PR #4437] [CLOSED] feat: shortcut for inserting code block #6252

Closed
opened 2026-03-23 22:22:24 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/4437
Author: @Xazin
Created: 1/22/2024
Status: Closed

Base: mainHead: feat/insert-code-block-shortcut


📝 Commits (1)

  • 20f8928 feat: shortcut for inserting code block

📊 Changes

1 file changed (+77 additions, -0 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_shortcut_event.dart (+77 -0)

📄 Description

There are some issues that I need to address, some might be on the editor repo:

  • After hot-restart / changing view, the code block is in wrong position
  • Impossible to manually type ``` - Seems it gets turned into highlight code, also seems like the editor struggles with this

PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/4437 **Author:** [@Xazin](https://github.com/Xazin) **Created:** 1/22/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/insert-code-block-shortcut` --- ### 📝 Commits (1) - [`20f8928`](https://github.com/AppFlowy-IO/AppFlowy/commit/20f89289772b088e820ba7142748646e90d34268) feat: shortcut for inserting code block ### 📊 Changes **1 file changed** (+77 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_shortcut_event.dart` (+77 -0) </details> ### 📄 Description There are some issues that I need to address, some might be on the editor repo: - [ ] After hot-restart / changing view, the code block is in wrong position - [ ] Impossible to manually type `\`` - Seems it gets turned into highlight code, also seems like the editor struggles with this #### PR Checklist - [x] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [ ] I've listed at least one issue that this PR fixes in the description above. - [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:22:24 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#6252
No description provided.