-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
add indent/outdentBlocks
commands
#2331
Comments
I think there are quite a few different approaches people take to denote indentation. Those I've guessed are the most used:
Default behaviour of this command wouldn't be able to handle all of these but support for them would be nice somehow. Maybe we could make a plugin which you could configure for your use case? (If it doesn't already exist such plugin?) |
Nice, thanks @Dundercover! I think the I think it's a good question though to ask whether the default behavior should exist at all, or whether it should be be standardizing the "indent/outdent" command intent names for people to use in all cases. |
As of #3093 (which was just merged), I believe this issue is no longer applicable, because a lot has changed. I'm going through and closing out any potential issues that are not out of date with the overhaul. Thanks for understanding. |
Do you want to request a feature or report a bug?
Feature.
What's the expected behavior?
There are lots of use cases that make use of "indenting" and "outdenting". The native
beforeinput
events even tap into them too. I think it would be good to standardizechange.indentBlocks
andchange.outdentBlocks
, so that other plugins can build on them. For example, a quote behavior plugin could listen for'indentBlocks'
and do quote-specific behaviors.By default, I think it should look for the top-level blocks and double nest them. Such that this:
Would turn into:
The text was updated successfully, but these errors were encountered: