-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Multi list indentation at once #903
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #903 +/- ##
==========================================
+ Coverage 71.89% 72.06% +0.17%
==========================================
Files 319 318 -1
Lines 14959 14986 +27
==========================================
+ Hits 10755 10800 +45
+ Misses 4204 4186 -18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
lib/src/editor/block_component/base_component/indent_command.dart
Outdated
Show resolved
Hide resolved
@Ahad-patel There's one more case that should be considered. The And please add more tests to cover this case. Update: I added a commit: 91753eb |
@LucasXu0 ok i'll fix the outdent command then will create test cases |
Hey @LucasXu0, I have updated outdent_command file according to your changes, I have also added tests cases for indent_command and outdent_command. I noticed that the outdent_command test file was named "outdent_handler_test.dart" ,since other test files were named according to their file name, so I renamed it to "outdent_command_test.dart". I also removed isAllOnSameLevel because we are ignoring child nodes, so the isAllOnSameLevel method will always be true. Are there any more remaining tasks in this PR? |
Good catch.
I'm checking the newly added code and will comment on the PR. |
(tester) async { | ||
const text = 'Welcome to Appflowy 😁'; | ||
final editor = tester.editor | ||
// final editor = tester.editor..addNode(paraNode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
(tester) async { | ||
const text = 'Welcome to Appflowy 😁'; | ||
final editor = tester.editor | ||
// final editor = tester.editor..addNode(paraNode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Hey @LucasXu0, I have updated the changes you suggested. While testing I also noted one more thing, but I am unsure if it is a bug or it is working as intended. There is a selection before and after the line when this is in selection editorState.getNodesInSelection will give both the nodes. Screen.Recording.2024-10-03.at.1.52.08.PM.mov |
Should I make an new Issue and new PR for this ? |
Normally if you have the cursor before the last character, and you use |
I have created a new issue for this AppFlowy-IO/AppFlowy#6500 |
Closes : AppFlowy-IO/AppFlowy#6255
This PR solves the issue of mulitple indentation of array lists at once.
Screen.Recording.2024-09-26.at.4.51.40.PM.mov