mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[PR #4319] [MERGED] feat: support aligning the text block using shortcuts #6194
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#6194
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/4319
Author: @Jayaprakash-dev
Created: 1/6/2024
Status: ✅ Merged
Merged: 1/9/2024
Merged by: @LucasXu0
Base:
main← Head:feat_text_align_shortcut📝 Commits (6)
fb1f63afeat: support doc text alignment shortcut keys1b3a346test: adds test for text alignment shortcut1ccc57frefactor: replaced inline string literals with constants74b7a6drefactor: Combine redundant code functions into a single, cohesive functiona1f5cbdstyle: Fix spelling in code for consistency325bbf9refactor: Remove unnecessary IIFE async wrapper function📊 Changes
4 files changed (+133 additions, -6 deletions)
View changed files
📝
frontend/appflowy_flutter/integration_test/document/document_alignment_test.dart(+49 -0)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart(+3 -0)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/align_toolbar_item/align_toolbar_item.dart(+10 -6)➕
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/align_toolbar_item/custom_text_align_command.dart(+71 -0)📄 Description
This fix is related to the feature request issue:
Added a feature that addresses the requirements of the issue, allowing users to align text in the document using shortcut keys. The implemented keyboard shortcuts are:
Ctrl+Shift+L: Align leftCtrl+Shift+E: Align centerCtrl+Shift+R: Align rightAdditionally, included tests to ensure the functionality works as expected.

https://github.com/AppFlowy-IO/AppFlowy/assets/68953739/2de99899-5e58-4f9d-915a-c30efe73ca53
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.