[PR #7401] [MERGED] fix: add shortcut to create Inline Math Equation #7866

Closed
opened 2026-03-23 23:21:32 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7401
Author: @asjqkkkk
Created: 2/20/2025
Status: Merged
Merged: 2/26/2025
Merged by: @LucasXu0

Base: mainHead: issue/7331


📝 Commits (2)

📊 Changes

8 files changed (+142 additions, -6 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/document/document_alignment_test.dart (+1 -1)
📝 frontend/appflowy_flutter/integration_test/desktop/document/document_with_inline_math_equation_test.dart (+51 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/align_toolbar_item/custom_text_align_command.dart (+4 -5)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/math_equation/math_equation_shortcut.dart (+74 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/shortcuts/command_shortcuts.dart (+2 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart (+4 -0)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_shortcuts_view.dart (+5 -0)
📝 frontend/resources/translations/en.json (+1 -0)

📄 Description

To fix #7331

  • Insert inline math eqaution : ctrl + shift + e
  • Align text center: ctrl + shift + e -> ctrl + shift + c

Feature Preview


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/7401 **Author:** [@asjqkkkk](https://github.com/asjqkkkk) **Created:** 2/20/2025 **Status:** ✅ Merged **Merged:** 2/26/2025 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `issue/7331` --- ### 📝 Commits (2) - [`ac3b7de`](https://github.com/AppFlowy-IO/AppFlowy/commit/ac3b7de37d89ae86d5c568feb31bd99e17c0780c) fix: add shortcut to create Math Equation(#7331) - [`4871e09`](https://github.com/AppFlowy-IO/AppFlowy/commit/4871e093fce0a588bfab524766bf336d11d93569) chore: update code ### 📊 Changes **8 files changed** (+142 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_alignment_test.dart` (+1 -1) 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_with_inline_math_equation_test.dart` (+51 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/align_toolbar_item/custom_text_align_command.dart` (+4 -5) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/math_equation/math_equation_shortcut.dart` (+74 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/shortcuts/command_shortcuts.dart` (+2 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart` (+4 -0) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_shortcuts_view.dart` (+5 -0) 📝 `frontend/resources/translations/en.json` (+1 -0) </details> ### 📄 Description To fix #7331 - Insert inline math eqaution : ctrl + shift + e - Align text center: ctrl + shift + e -> ctrl + shift + c ### Feature Preview <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [x] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [x] I've listed at least one issue that this PR fixes in the description above. - [x] 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 23:21:32 +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#7866
No description provided.