-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[lexical-react] Feature: Merge TabIndentionPlugin and ListMaxIndentLevelPlugin plugins #7018
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
this one might be flaky, will re-run failures |
@etrepum we didn't expose |
Sorry, you're right, I didn't look carefully when I was making that change. Don't have time for a full review right now, but was doing a quick fix up according to the template |
One possible issue - it appears we're now coupling these two functionalities. So you can't set a max indent without also enabled tab indents. Usually this probably won't matter, but I did want to point out the change. |
I think there might be some subtle issue with collab here? I haven't been able to get a fully clean test run yet, the last two had this failure in common:
Currently it's on attempt 13 https://github.com/facebook/lexical/actions/runs/12636094981/job/35283390649?pr=7018 |
I guess it's just unlucky, this time it had a different failure
|
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.
The logic looks fine, per @acywatson's point I think if someone really wanted to do max indent without tab they could just resurrect the old plug-in or intercept KEY_TAB_COMMAND
I think this could've been a separate plugin, but then I revisited popular editors and didn't see any of it using indent support without tab key (indent via UI controls only). I'll go ahead with merged version, and let's see if there's any feedback to have it as a standalone one |
Moved max indent logic to
TabIndentionPlugin
and updated it to work on non-list elements too